Open Vyison opened 1 month ago
Hi Vyison Sadly I have no solution, but the same issue. I'm using QGIS Version 3.38.3 Grenoble, Python 3 with all packages updated.
2024-10-15T19:20:14 CRITICAL Traceback (most recent call last):
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 426, in _startPlugin
plugins[packageName] = package.classFactory(iface)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\__init__.py", line 34, in classFactory
from .hotspot_analysis import HotspotAnalysis
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 38, in
import pysal
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\pysal\__init__.py", line 2, in
from . import lib
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\pysal\lib\__init__.py", line 27, in
from . import cg
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\pysal\lib\cg\__init__.py", line 7, in
from .kdtree import *
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Python\Python312\site-packages\pysal\lib\cg\kdtree.py", line 9, in
from scipy import inf
ImportError: cannot import name 'inf' from 'scipy' (C:\OSGeo4W\apps\Python312\Lib\site-packages\scipy\__init__.py)
Hello,
unfortunately, I also have a problem right at the start of the plugin. The steps from the video link and multiple installaition&deinstallation have not fixed the error. Unfortunately I can't say what the problem is and I can't find it. Is it due to my installation? The error occurs directly after installing the plugin.
Couldn't load plugin 'HotspotAnalysis' due to an error when calling its classFactory() method
ImportError: cannot import name 'inf' from 'scipy' (C:\PROGRA~1\QGIS33~1.3\apps\Python312\Lib\site-packages\scipy__init__.py)
Best regards