qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.35k stars 2.98k forks source link

Installation of an experimental plugin (LecoS) crashes the plugin manager #17091

Closed qgib closed 5 years ago

qgib commented 11 years ago

Author Name: Asier Sarasua (@asiersarasua) Original Redmine Issue: 8295 Affected QGIS version: master Redmine category:plugin_manager Assignee: Borys Jurgiel


Steps:

  1. Open QGIS
  2. Go to "Plugins -> Manage and Install Plugins"
  3. Mark "Show also experimental plugins" in "Settings"
  4. Search for "LecoS" in "Get more"
  5. Install plugin
  6. A warning appears: "Please install scipy (http://scipy.org/) in your QGIS Python path."
  7. An error message appears, related to pyplugin_installer.instance().installPlugin('LecoS'), see "LecoS installation error 1.txt"
  8. The GUI apparently freezes, but I am able to close QGIS
  9. Open QGIS
  10. The scipy warning again
  11. Another error related this time to pyplugin_installer.initPluginInstaller(), see see "LecoS installation error 2.txt"
  12. A third error related to pyplugin_installer.instance().showPluginManagerWhenReady()
  13. Go to "Plugins -> Manage and Install Plugins". The plugin manager doesn't open.

Workaround to get the plugin manager again: remove the "LecoS" folder in ".qgis2\python\plugins"


qgib commented 11 years ago

Author Name: Asier Sarasua (@asiersarasua)


OS: Windows XP

qgib commented 11 years ago

Author Name: Asier Sarasua (@asiersarasua)


Sorry, the steps 12 an 13 are in the wrong order:

  1. Go to "Plugins -> Manage and Install Plugins". The plugin manager doesn't open.
  2. A third error related to pyplugin_installer.instance().showPluginManagerWhenReady()
qgib commented 11 years ago

Author Name: Giovanni Manghi (@gioman)


Does this issue affects any plugin with a missing dependency or it is Lecos specific?


qgib commented 11 years ago

Author Name: Asier Sarasua (@asiersarasua)


I have installed the rest of the plugins (also the experimental ones) offered by the official plugin repository. The only issue has been with Multitemporal Analyzer, which has warned me it is only compatible with QGIS 1.x, but I have accepted the installation and now I have it in a new section of the plugin manager called "Invalid". That doesn's affect the behaviour of the plugin manager window, like LecoS does.

qgib commented 11 years ago

Author Name: Martin Jung (Martin Jung)


It might have sth. to do with the mandatory dependency scipy, which definitely has to be installed in your QGIS path.

To see if it is available just go to @Plugins@ -> @Python Console@ and enter

import scipy
scipy.version.version

This should give you an output of the version number without issues or import errors, otherwise you need to install scipy again.

I don't know however, why the QGIS plugin manager doesn't open anymore. This behavior didn't occur with the old plugin configuration dialog.

EDIT: When looking into the second error file i found that the sys.exit(0) command is raised. This happens because of this check-routine at the start of the plugin.

try:
    import scipy
except ImportError:
    QMessageBox.critical(QDialog(),"LecoS: Warning","Please install scipy (http://scipy.org/) in your QGIS python path.")
    sys.exit(0)

You need to install scipy.

qgib commented 11 years ago

Author Name: Borys Jurgiel (@borysiasty)


Fixed in changeset "7a7e5427061037dc15381f7b78ea4b47045cf96c".


qgib commented 11 years ago

Author Name: Borys Jurgiel (@borysiasty)


Thanks a lot for the investigation. The installer wasn't prepared to intercept raw exits from plugins. Now it should be safe. Btw. I've opened a ticket for Multitemporal Analyzer.

qgib commented 11 years ago

Author Name: Borys Jurgiel (@borysiasty)


qgib commented 11 years ago

Author Name: Asier Sarasua (@asiersarasua)


Thank you Boris.

qgib commented 11 years ago

Author Name: Asier Sarasua (@asiersarasua)


Sorry, Borys. ;)