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 3.4 Unable to load 'processing' plug-in due to an error calling your classFactory () method #28165

Closed
qgib opened this issue Nov 2, 2018 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Nov 2, 2018

Author Name: Pedro Muñoz (Pedro Muñoz)
Original Redmine Issue: 20344
Affected QGIS version: 3.4.0
Redmine category:processing/core


No se pudo cargar el complemento 'processing' debido a un error al llamar a su método classFactory()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 37: invalid continuation byte
Traceback (most recent call last):
File "C:/PROGRA1/QGIS31.4/apps/qgis/./python\qgis\utils.py", line 335, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/PROGRA1/QGIS31.4/apps/qgis/./python/plugins\processing_init_.py", line 37, in classFactory
return ProcessingPlugin(iface)
File "C:/PROGRA1/QGIS31.4/apps/qgis/./python/plugins\processing\ProcessingPlugin.py", line 178, in init
Processing.initialize()
File "C:/PROGRA1/QGIS31.4/apps/qgis/./python/plugins\processing\core\Processing.py", line 105, in initialize
RenderingStyles.loadStyles()
File "C:/PROGRA1/QGIS31.4/apps/qgis/./python/plugins\processing\gui\RenderingStyles.py", line 50, in loadStyles
line = lines.readline().strip('\n')
File "C:\PROGRA1\QGIS31.4\apps\Python37\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 37: invalid continuation byte

Versión de Python: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
Versión de QGIS: 3.4.0-Madeira Madeira, 4a4b62e

Ruta de Python:
C:/PROGRA1/QGIS31.4/apps/qgis/./python
C:/Users/pjman/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/pjman/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA1/QGIS31.4/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.4\bin\python37.zip
C:\PROGRA1\QGIS31.4\apps\Python37\DLLs
C:\PROGRA1\QGIS31.4\apps\Python37\lib
C:\Program Files\QGIS 3.4\bin
C:\PROGRA1\QGIS31.4\apps\Python37
C:\PROGRA1\QGIS31.4\apps\Python37\lib\site-packages
C:\PROGRA1\QGIS31.4\apps\Python37\lib\site-packages\win32
C:\PROGRA1\QGIS31.4\apps\Python37\lib\site-packages\win32\lib
C:\PROGRA1\QGIS31.4\apps\Python37\lib\site-packages\Pythonwin
C:/Users/pjman/AppData/Roaming/QGIS/QGIS3\profiles\default/python

@qgib
Copy link
Contributor Author

qgib commented Nov 3, 2018

Author Name: Giovanni Manghi (@gioman)


Try with a clean/new profile.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2018

Author Name: Adrien VAN HAMME (Adrien VAN HAMME)


Giovanni Manghi wrote:

Try with a clean/new profile.

Hi !
I noticed the same error w/ 3.4.0 and 3.4.1.
Could you explain what did you mean by "clean/new profile" ?
Thanks !

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2018

Author Name: Giovanni Manghi (@gioman)


Adrien VAN HAMME wrote:

Giovanni Manghi wrote:

Try with a clean/new profile.

Hi !
I noticed the same error w/ 3.4.0 and 3.4.1.
Could you explain what did you mean by "clean/new profile" ?
Thanks !

settings > user profiles > new profile

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2018

Author Name: Adrien VAN HAMME (Adrien VAN HAMME)


Giovanni Manghi wrote:

settings > user profiles > new profile

Thanks. I created a new profile, then copy all of its content into the default profile directory and delete the new profile directory.
During the launching of QGIS, it asked me for import of QGIS2 settings but i answered no and i hadn't a processing error anymore.

Otherwise, if you don't want to play with profiles, there is an easy way to fix it : deactivate and reactivate (checkbox) the processing extension.

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2018

Author Name: Adrien VAN HAMME (Adrien VAN HAMME)


I'm sorry but, after the cleaning of the default profile and a after a few clean lauchings with this profile, I have noticed the error again...

@qgib
Copy link
Contributor Author

qgib commented Dec 11, 2018

Author Name: Friede Goral (Friede Goral)


I have the same problem in version 3.4.2. with any plugin I want to load:

Konnte Erweiterung 'quick_map_services' nicht laden aufgrund eines Fehlers beim Aufruf der classFactory() Methode 

TypeError: 'QVariant' object is not subscriptable 
Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 335, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/fgoral/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\__init__.py", line 35, in classFactory
    return QuickMapServices(iface)
  File "C:/Users/fgoral/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\quick_map_services.py", line 72, in __init__
    self.locale = Locale.get_locale()
  File "C:/Users/fgoral/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\plugin_locale.py", line 30, in get_locale
    return QSettings().value('locale/userLocale')[0:2]
TypeError: 'QVariant' object is not subscriptable


Python-Version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
QGIS-Version: 3.4.2-Madeira Madeira, 22034aa070 

Python-Pfad:
C:/OSGEO4~1/apps/qgis/./python
C:/Users/fgoral/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/fgoral/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGEO4~1/apps/qgis/./python/plugins
C:\OSGeo4W64\bin\python37.zip
C:\OSGEO4~1\apps\Python37\DLLs
C:\OSGEO4~1\apps\Python37\lib
C:\OSGeo4W64\bin
C:\OSGEO4~1\apps\Python37
C:\OSGEO4~1\apps\Python37\lib\site-packages
C:\OSGEO4~1\apps\Python37\lib\site-packages\win32
C:\OSGEO4~1\apps\Python37\lib\site-packages\win32\lib
C:\OSGEO4~1\apps\Python37\lib\site-packages\Pythonwin

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2019

Author Name: Alexander Bruy (@alexbruy)


Works fine in master. Please reopen if necessary


  • resolution was changed from to worksforme
  • status_id was changed from Feedback to Closed
  • operating_system was changed from WIN 10 to

@qgib qgib closed this as completed Jan 30, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels 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! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant