1

I developed my first plugin to Qgis and I wanna upload it, but... to do this I have to change information about plugin (like description/add code repo link and bug tracker link) and that's where my problem comes in. I update my metadata.txt file, but doing so I cause an error. In plugins repository: "This plugin is broken. Error reading metadata." When I reload plugin:

Traceback (most recent call last):
  File "D:/Programy/QGIS/apps/qgis/./python\qgis\utils.py", line 364, in unloadPlugin
    _unloadPluginModules(packageName)
  File "D:/Programy/QGIS/apps/qgis/./python\qgis\utils.py", line 375, in _unloadPluginModules
    mods = _plugin_modules[packageName]
KeyError: u'<my_folder_cointains_plugin>'

but the weirdest thing is that plugin is working perfectly.

Maybe there is a better way to update info about plugin instead of modify metadata.txt file?

  • Make sure you follow the requirements for the plugin metadata. – Joseph Aug 30 '16 at 9:59
  • No, I don't think that is a problem, but I don't know what might be either. I found workaround and for now it's good. – DIV Aug 30 '16 at 10:35
1

For those, who have the same issue.

So, I didn't solve the problem itself, but found a workaround.

  1. Make another one plugin (I use "Plugin Builder").
  2. Make sure you put the same data as your main plugin has in "Class name" and "module name" fields. The rest fields is up to you.
  3. Copy all files from main plugin to the new one (I did not include "resources.py" - not sure is that necessary). Then go to OSGeo4W shell and navigate to your new plugin folder. Then type:

pyrcc4 -o resources.py resources.qrc

And that's it. Thanks anyway guys.

0

I had a similar problem with my plugin, my problem was that I've written my changelog on several rows instead of one after the " = "

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.