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

QGIS 2.14 Processing plugin crashes - TypeError: must be string, not None #22411

Closed qgib closed 5 years ago

qgib commented 8 years ago

Author Name: Harel Dan (@hareldunn) Original Redmine Issue: 14432 Affected QGIS version: 2.14.0 Redmine category:processing/core


After successfully installing QGIS 2.14 standalone, upon startup a couple of days later, the processing plugin crashes, and does not load any longer. I've tried reinstalling and downgrading processing version from 2.12.99 to 2.12.3 but that is invalid.

The python error report:

@Couldn't load plugin processing due to an error when calling its initGui() method

TypeError: must be string, not None@


qgib commented 8 years ago

Author Name: Anita Graser (@anitagraser)


qgib commented 8 years ago

Author Name: Alexander Bruy (@alexbruy)


qgib commented 8 years ago

Author Name: Alexander Bruy (@alexbruy)


Not reproducible here. Maybe you have an old Processing plugin in your user plugins folder? Try to start QGIS with clean profile.


qgib commented 8 years ago

Author Name: Harel Dan (@hareldunn)


I've removed all the previous QGIS directories from my machine before installing 2.14 and experiencing this bug

qgib commented 8 years ago

Author Name: Anita Graser (@anitagraser)


qgib commented 8 years ago

Author Name: Alexander Bruy (@alexbruy)


Still can not reproduce on Linux and Windows

qgib commented 8 years ago

Author Name: Giovanni Manghi (@gioman)


closing for lack of feedback and because seems a local issue. Please reopen if necessary.


qgib commented 8 years ago

Author Name: Paulo Cardoso (Paulo Cardoso)


The same for me.

Couldn't load plugin processing due to an error when calling its initGui() method

TypeError: must be string, not None Traceback (most recent call last): File "C:/PROGRA~1/QGISES~1/apps/qgis/./python\qgis\utils.py", line 315, in startPlugin plugins[packageName].initGui() File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\ProcessingPlugin.py", line 57, in initGui Processing.initialize() File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\core\Processing.py", line 148, in initialize Processing.loadFromProviders() File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\core\Processing.py", line 165, in loadFromProviders Processing.loadAlgorithms() File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\core\Processing.py", line 200, in loadAlgorithms Processing.updateProviders() File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\core\Processing.py", line 173, in updateProviders provider.loadAlgorithms() File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\core\AlgorithmProvider.py", line 54, in loadAlgorithms self._loadAlgorithms() File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\algs\otb\OTBAlgorithmProvider.py", line 61, in _loadAlgorithms version = OTBUtils.getInstalledVersion(True) File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\algs\otb\OTBUtils.py", line 143, in getInstalledVersion out = executeOtb(commands, progress, False) File "C:/PROGRA~1/QGISES~1/apps/qgis/./python/plugins\processing\algs\otb\OTBUtils.py", line 169, in executeOtb os.putenv('ITK_AUTOLOAD_PATH', otbLibPath()) TypeError: must be string, not None

Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS version: 2.14.1-Essen Essen, ea85bef

qgib commented 8 years ago

Author Name: Giovanni Manghi (@gioman)


Paulo Cardoso wrote:

The same for me.

please try with a clean configuration by deleting .qgis2 (make a backup first of course) and restarting qgis.

qgib commented 8 years ago

Author Name: Oyvind Hamre (Oyvind Hamre)


I have the same problem as above. I have deleted the .qgis2 folder, but it does not help. Any sugestions??


qgib commented 8 years ago

Author Name: Oyvind Hamre (Oyvind Hamre)


I removed all previous instalations of qgis. In addition to deleting .qgis2 I deleted .qgis-custom. I also had to delete all traces of qgis in HKEY_CURENT_USER (regedit). After restart of the system, a new instalation of qgis was atempted. This seems to have solved the problem.


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


Some providers are being removed from QGIS/Processing (will be available as plugin) and so are their categories in the bug tracker. To not leave them orphaned of a category they are being reassigned to processing/core.

qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)