Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reloading causes Processing to raise an Error #6

Closed
borysiasty opened this issue Aug 25, 2016 · 4 comments
Closed

Reloading causes Processing to raise an Error #6

borysiasty opened this issue Aug 25, 2016 · 4 comments
Labels

Comments

@borysiasty
Copy link
Owner

Moved from http://hub.qgis.org/issues/10121
Bug report #10121, added by @Martin-Jung, 2014-04-26.

Hi,

I am not sure if this is a bug should be fixed within the Processing Toolbox or the PluginReloader plugin (which I just found and find highly useful).

Iam just developing a new Plugin for QGIS that adds several new functions for the Processing Toolbox. Unfortunately whenever I reload the plugin via the PluginReloader and try to open my new custom ProcessingFunctions it raises the following error (see attached Screenshot). The error disappears if I reload the Processing Providers. This can be done by simply open the Processing Options menu and closing it again.
Maybe a small routine in the PluginReloader tool can be implemented that reloads all ProcessingProviders as well.

Tested on QGIS 2.2, Linux - Debian 64bit

screen

@borysiasty borysiasty added the bug label Aug 25, 2016
@borysiasty
Copy link
Owner Author

Discussion

@borysiasty wrote:

Could you please provide some steps (a sample change in the code) to reproduce this bug?

@Martin-Jung wrote:

Don't know what you mean with code samples, but here is how to reproduce with QGIS 2.2 stable (tested on Debian Jessie)

  1. Download for instance the Animove Plugin or LecoS plugin which has Processing features
  2. Enable the plugin and make sure it is visible and executable in the Processing Toolbox
  3. Select the Plugin in the PluginReloader for Reload
  4. Reload the plugin
  5. Now directly attempt to start the Plugin from the Processing Toolbox. Error shown in the screen- shot should occur.

@borysiasty wrote:

Now I see. Well, reloading Python modules gets complicated when it comes to horizontal dependencies.

In the plugin reloader I could either hardcode some pairs of dependencies (like LecoS->permaclim) or iterate over all plugins
with the 'processing' tag, but it wold be only a tricky workaround. It still won't help at plugin upgrade.

To keep it simple and clear, I believe the full QGIS reload is the best solution for "normal" users. And you can just add utils.reloadPlugin('permaclim') to your copy of plugin reloader.

@borysiasty
Copy link
Owner Author

See also #20.

@kobben
Copy link

kobben commented Mar 22, 2019

[copied here my comment from #20 because that was closed and found no way to re-open it:

Got the same problem of processing plugin not reloading. In a email conversation found that yquenach@itlink.fr concluded the problem apparently occurs if the plugin python file has the same name as its containing folder [which is normally the case, because that's the way that the Plugin Builder delivers its output. Tested and can confirm. If you eg rename the folder holding the processing plugin files from plugin_name to folder_plugin_name , the reloading works fine...

@borysiasty
Copy link
Owner Author

This particular problem seems to be no longer valid. Today's error should be fixed with 36537d3 (soon to be released)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants