OSR Tools - error adding plugin


#1

Hi,

I’m using QGIS 3.0.1. Not sure if this is a QGIS version issue but when I try to add in the OSR Tools plugin, I get the following error:

Couldn’t load plugin ‘ORStools’ due to an error when calling its classFactory() method

ModuleNotFoundError: No module named ‘qgscollapsiblegroupbox’

Traceback (most recent call last):
File “C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python\qgis\utils.py”, line 336, in startPlugin
plugins[packageName] = package.classFactory(iface)
File “C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools_init_.py”, line 43, in classFactory
from .ORStoolsPlugin import ORStools
File “C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python\qgis\utils.py”, line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File “C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\ORStoolsPlugin.py”, line 32, in
from .gui import ORStoolsDialog
File “C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python\qgis\utils.py”, line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File “C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\gui\ORStoolsDialog.py”, line 60, in
from .ORStoolsDialogUI import Ui_ORStoolsDialogBase
File “C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python\qgis\utils.py”, line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File “C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\gui\ORStoolsDialogUI.py”, line 510, in
from qgscollapsiblegroupbox import QgsCollapsibleGroupBox
File “C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python\qgis\utils.py”, line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named ‘qgscollapsiblegroupbox’

Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS version: 3.0.1-Girona Girona, a86bec25eb

Python Path:

  • C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python
  • C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
  • C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins
  • C:\Program Files\QGIS 3.0\bin\python36.zip
  • C:\PROGRA~1\QGIS3~1.0\apps\Python36\DLLs
  • C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib
  • C:\Program Files\QGIS 3.0\bin
  • C:\PROGRA~1\QGIS3~1.0\apps\Python36
  • C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib\site-packages
  • C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python
  • C:\Users\USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mmqgis/forms
  • .
  • C:\Users\USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\vector_tiles_reader\ext-libs
  • C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web
  • C:\Users\USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
  • C:/Users/USER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\isochrones
  • C:\Users\USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
  • C:\Users\USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\isochrones\iso\utilities

#2

Hm, that sounds weird. I happen to have a brandnew QGIS version on a brandnew Arch Linux installation and I don’t see that error.

Are you on 3.0.1 or 3.10.1? In any case: does e.g. “QuickOSM” work for you? That’s another plugin utilizing similar elements. So it shouldn’t work.

To me it seems like the QGIS extension for Qt GUI elements is not working on your machine. The easiest is to do a full reinstallation, esp on Windows. Or you can try your luck on stack overflow.

EDIT: just seeing that your log says 3.0.1. Can’t test that, but my last statement holds regardless of the QGIS version.


#3

QuickOSM seems to work but I’ll try a reinstall/upgrade to a newer version.