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

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

Closed
qgib opened this issue Mar 6, 2016 · 15 comments
Closed

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

qgib opened this issue Mar 6, 2016 · 15 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Mar 6, 2016

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
Copy link
Contributor Author

qgib commented Mar 6, 2016

Author Name: Anita Graser (@anitagraser)


  • category_id was configured as Processing/Core

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2016

Author Name: Alexander Bruy (@alexbruy)


  • category_id was changed from Processing/Core to 120

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2016

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.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 10, 2016

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
Copy link
Contributor Author

qgib commented Mar 12, 2016

Author Name: Anita Graser (@anitagraser)


  • operating_system was changed from to windows

@qgib
Copy link
Contributor Author

qgib commented Mar 25, 2016

Author Name: Alexander Bruy (@alexbruy)


Still can not reproduce on Linux and Windows

@qgib
Copy link
Contributor Author

qgib commented Apr 9, 2016

Author Name: Giovanni Manghi (@gioman)


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


  • resolution was changed from to not reproducable
  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Apr 10, 2016

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:/PROGRA1/QGISES1/apps/qgis/./python\qgis\utils.py", line 315, in startPlugin
plugins[packageName].initGui()
File "C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing\ProcessingPlugin.py", line 57, in initGui
Processing.initialize()
File "C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing\core\Processing.py", line 148, in initialize
Processing.loadFromProviders()
File "C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing\core\Processing.py", line 165, in loadFromProviders
Processing.loadAlgorithms()
File "C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing\core\Processing.py", line 200, in loadAlgorithms
Processing.updateProviders()
File "C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing\core\Processing.py", line 173, in updateProviders
provider.loadAlgorithms()
File "C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing\core\AlgorithmProvider.py", line 54, in loadAlgorithms
self._loadAlgorithms()
File "C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing\algs\otb\OTBAlgorithmProvider.py", line 61, in _loadAlgorithms
version = OTBUtils.getInstalledVersion(True)
File "C:/PROGRA1/QGISES1/apps/qgis/./python/plugins\processing\algs\otb\OTBUtils.py", line 143, in getInstalledVersion
out = executeOtb(commands, progress, False)
File "C:/PROGRA1/QGISES1/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
Copy link
Contributor Author

qgib commented Apr 10, 2016

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
Copy link
Contributor Author

qgib commented Apr 14, 2016

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??


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Apr 19, 2016

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.


  • status_id was changed from Reopened to Closed

@qgib
Copy link
Contributor Author

qgib commented May 1, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented May 1, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented May 1, 2017

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
Copy link
Contributor Author

qgib commented May 1, 2017

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from 120 to Processing/Core

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Crash/Data Corruption labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant