TransWikia.com

Problems with loading Plugins (processing and other plugins)

Geographic Information Systems Asked by Jadwiga Trojak on July 25, 2021

I have the following python errors when starting the QGIS 3.14:

2020-10-21T09:21:57
CRITICAL    Traceback (most recent call last):
  File "C:OSGEO4~1appsPython37libsite-packagesosgeoosr.py", line 14, in swig_import_helper
  return importlib.import_module(mname)
  File "C:OSGEO4~1appsPython37libimportlib__init__.py", line 127, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_import
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 670, in _load_unlocked
  File "", line 583, in module_from_spec
  File "", line 1043, in create_module
  File "", line 219, in _call_with_frames_removed
 ImportError: DLL load failed: Nie można odnaleźć określonej procedury.
 
 During handling of the above exception, another exception occurred:
 
 Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 334, in _startPlugin
  plugins[packageName] = package.classFactory(iface)
  File "C:/Users/jadwi/AppData/Roaming/QGIS/QGIS3profilesJTRO/python/pluginsgo2streetview__init__.py", line 34, in classFactory
  from .go2streetview import go2streetview
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/jadwi/AppData/Roaming/QGIS/QGIS3profilesJTRO/python/pluginsgo2streetviewgo2streetview.py", line 27, in 
  from .snapshot import snapShot
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/jadwi/AppData/Roaming/QGIS/QGIS3profilesJTRO/python/pluginsgo2streetviewsnapshot.py", line 25, in 
  from osgeo import ogr
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:OSGEO4~1appsPython37libsite-packagesosgeoogr.py", line 260, in 
  import osgeo.osr
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:OSGEO4~1appsPython37libsite-packagesosgeoosr.py", line 17, in 
  _osr = swig_import_helper()
  File "C:OSGEO4~1appsPython37libsite-packagesosgeoosr.py", line 16, in swig_import_helper
  return importlib.import_module('_osr')
  File "C:OSGEO4~1appsPython37libimportlib__init__.py", line 127, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
 ModuleNotFoundError: No module named '_osr'
         
     
2020-10-21T09:22:06
CRITICAL    Traceback (most recent call last):
  File "C:OSGEO4~1appsPython37libsite-packagesosgeoosr.py", line 14, in swig_import_helper
  return importlib.import_module(mname)
  File "C:OSGEO4~1appsPython37libimportlib__init__.py", line 127, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_import
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 670, in _load_unlocked
  File "", line 583, in module_from_spec
  File "", line 1043, in create_module
  File "", line 219, in _call_with_frames_removed
 ImportError: DLL load failed: Nie można odnaleźć określonej procedury.
 
 During handling of the above exception, another exception occurred:
 
 Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 312, in loadPlugin
  __import__(packageName)
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis/./python/pluginsprocessing__init__.py", line 35, in 
  from processing.tools.raster import * # NOQA
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis/./python/pluginsprocessingtoolsraster.py", line 26, in 
  from osgeo import gdal
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:OSGEO4~1appsPython37libsite-packagesosgeogdal.py", line 1756, in 
  import osgeo.ogr
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:OSGEO4~1appsPython37libsite-packagesosgeoogr.py", line 260, in 
  import osgeo.osr
  File "C:/OSGEO4~1/apps/qgis/./pythonqgisutils.py", line 792, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:OSGEO4~1appsPython37libsite-packagesosgeoosr.py", line 17, in 
  _osr = swig_import_helper()
  File "C:OSGEO4~1appsPython37libsite-packagesosgeoosr.py", line 16, in swig_import_helper
  return importlib.import_module('_osr')
  File "C:OSGEO4~1appsPython37libimportlib__init__.py", line 127, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
 ModuleNotFoundError: No module named '_osr'

                 

and messages:

2020-10-21T09:21:48     WARNING    Plugin BDOT10k_GML_SHP_Loader : This plugin is disabled because it previously crashed QGIS.
2020-10-21T09:21:57     WARNING    Python error : Couldn't load plugin 'go2streetview' due to an error when calling its classFactory() method See message log (Python Error) for more details.
2020-10-21T09:21:59     WARNING    Python error : Couldn't load plugin 'pobieracz_danych_gugik' due to an error when calling its classFactory() method See message log (Python Error) for more details.
2020-10-21T09:21:59     WARNING    Python error : Couldn't load plugin 'qgis2web' due to an error when calling its classFactory() method See message log (Python Error) for more details.
2020-10-21T09:22:06     WARNING    Python error : Couldn't load plugin 'processing' See message log (Python Error) for more details.

Sample Python warnings:

WARNING warning:C:OSGEO4~1appsPython37libsite-packagesPyQt5uicobjcreator.py:152:DeprecationWarning: 'U' mode is deprecated 

WARNING warning:C:/Users/jadwi/AppData/Roaming/QGIS/QGIS3profilesJTRO/python/pluginsgissupport_pluginmodulesuldkmodulesmap_point_searchmain.py:11: DeprecationWarning: QgsCoordinateReferenceSystem.createFromSrid() is deprecated

WARNING warning:C:/Users/jadwi/AppData/Roaming/QGIS/QGIS3profilesJTRO/python/pluginsgissupport_pluginmodulesuldkmodulespoint_layer_importworker.py:20: DeprecationWarning: QgsCoordinateReferenceSystem.createFromSrid() is deprecated

I tried uninstalling all versions of QGIS and reinstalling it but that didn’t solve the problem. Any ideas?

2 Answers

I faced this same problem today after installing QGIS via OSGeo4W on a new computer. What I did to solve the problem was to remove the QGIS packages through the OSG4W installer and install the standalone version available on the official website.

Answered by leonardofmed on July 25, 2021

Just for comparison, the first file you list in your traceback, for my installation, is located here:

C:Program FilesQGIS 3.14appsPython37libsite-packagesosgeo

In the github incident that got raised, they suggested that the problem is related to 3rd party installed plugins. However im assuming you are just installing from scratch BUT probably, your AppData folder contains previously installed QGIS plugin modules and files, which your new installation is trying to use.

ie: Anything in this folder

"C:/Users/jadwi/AppData/Roaming/QGIS/QGIS3profiles"

Given that that folder is where your new QGIS installation will reference, just try making a backup of that folder from this path level "C:/Users/jadwi/AppData/Roaming/QGIS/" and then just rename it (call it QGIS_old) or something similar). Then run your installer again. This time, your new QGIS installation won't find your old folder and should at least eliminate that as being the problem.

Also just for reference, some instructions on uninstallation of QGIS and plugins

"https://umep-docs.readthedocs.io/en/latest/FAQ.html"

Answered by nr_aus on July 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP