Won't start on [OSGeo4W] 3.14.15

Issue #11 closed
Former user created an issue

Thanks for a great plugin. Has worked fine for me in QGIS version 3.14.1, but in the (normal release, not dev etc) latest 3.14.15 it won't start. Python error log:

2020-08-27T12:45:29     CRITICAL    Traceback (most recent call last):
              File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 312, in loadPlugin
              __import__(packageName)
              File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 743, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:/Users/MyUserName/AppData/Roaming/QGIS/QGIS3\profiles\MyUserName/python/plugins\rasterdataplotting\__init__.py", line 2, in 
              from .rasterdataplotting.plugin import RdpPlugin
              File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 743, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:/Users/MyUserName/AppData/Roaming/QGIS/QGIS3\profiles\MyUserName/python/plugins\rasterdataplotting\rasterdataplotting\plugin.py", line 4, in 
              from .core.rdpinterface import RdpInterface
              File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 743, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:/Users/MyUserName/AppData/Roaming/QGIS/QGIS3\profiles\MyUserName/python/plugins\rasterdataplotting\rasterdataplotting\core\rdpinterface.py", line 14, in 
              from ..gui.rdpdockwidget import RdpDockWidget
              File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 743, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:/Users/MyUserName/AppData/Roaming/QGIS/QGIS3\profiles\MyUserName/python/plugins\rasterdataplotting\rasterdataplotting\gui\rdpdockwidget.py", line 8, in 
              from .rdpscatterplotwidget import RdpScatterPlotWidget
              File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 743, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:/Users/MyUserName/AppData/Roaming/QGIS/QGIS3\profiles\MyUserName/python/plugins\rasterdataplotting\rasterdataplotting\gui\rdpscatterplotwidget.py", line 6, in 
              from scipy.stats import binned_statistic_2d, pearsonr
              File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 743, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\OSGEO4~1\apps\Python37\lib\site-packages\scipy\__init__.py", line 136, in 
              from . import _distributor_init
              File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 743, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\OSGEO4~1\apps\Python37\lib\site-packages\scipy\_distributor_init.py", line 61, in 
              WinDLL(os.path.abspath(filename))
              File "C:\OSGEO4~1\apps\Python37\lib\ctypes\__init__.py", line 356, in __init__
              self._handle = _dlopen(self._name, mode)
             OSError: [WinError 126] The specified module could not be found

Any suggestions? Reverting back to 3.14.1 makes it work again. Thanks!

Comments (3)

  1. Andreas Janz repo owner

    I can reproduce the error. In fact it is a problem with QGIS and Scipy. This is the problematic line of code:

    from scipy.stats import binned_statistic_2d, pearsonr

    As you suggested, reverting back to 3.14.1 is working:

  2. Log in to comment