[Qgis-developer] [Qgis-user] Impossible to upload and share a plugin on QGIS plugin repository

Junior Delaz delazj at gmail.com
Wed Jul 30 11:31:52 PDT 2014

Thanks a lot. You are right!!! I was packaging the contents of my plugin
folder instead of packaging the whole main folder.
It's ok now. all is uploaded.

Thank you!

2014-07-30 18:43 GMT+02:00 Siki Zoltan <siki at agt.bme.hu>:

> Dear Junior,
> in the zip file you have to use the same directory structure as in the
> .qgis2/python/plugins directory. If the name of your plugin is "xxx" then
> in the zip there sould be a xxx directory which contains the __init__.py
> and metadata.txt and the main python file xxx.py, you can use other
> subdirectories too.
> xxx.zip:
>   xxx - __init__.py
>         metadata.txt
>         xxx.py
>         ...
>         help
>         ...
> Try to download a plugin from plugins.qgis.org and check the structure of
> the zip file.
> I hope this helps you.
> Regards,
> Zoltan
> On Wed, 30 Jul 2014, Junior Delaz wrote:
>  Hi all
>> I'm tring to upload and share my first plugin at [1] but encountered an
>> error I don't really understand. It says:
>> *There were errors reading plugin package (please check also your plugin's
>> metadata). Cannot find __init__.py or metadata.txt in the compressed
>> package: this does not seems a valid plugin (I searched for
>> help/__init__.py and help/metadata.txt)*
>> I have __init__.py and metadata.txt files but they are in the main folder
>> (I use Plugin Builder plugin) and none of the plugin folders I looked at
>> has such files in help folder.
>> So, why is it looking for these files in the help folder?
>> What did I make wrong? Is it a bug? and if not, what should contain these
>> files?
>> Some help? Thanks a lot.
>> [1] http://plugins.qgis.org/plugins/add/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140730/190b0581/attachment-0001.html>

More information about the Qgis-developer mailing list