Samsonboadi / StreetSmart

GNU General Public License v3.0
0 stars 1 forks source link

plugin cannot initialize #9

Open wepecko opened 10 months ago

wepecko commented 10 months ago

Hello, is python 39 supported? we have a problem to start the plugin, no matter what we try (qgis versions, pip cefpython manually) version 2 used to work without this problem

Plugin fail to initialize upon activation

ImportError: cannot import name 'Logger' from 'logger' (C:\OSGeo4W\apps\Python39\lib\site-packages\logger__init.py) Traceback (most recent call last): File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\cone_handler.py", line 14, in from .geometry_utils import (transform_coordinate) File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\geometry_utils.py", line 3, in from shapely.geometry import (shape, mapping) File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python39\lib\site-packages\shapely\init__.py", line 13, in from shapely.lib import GEOSException # NOQA File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'shapely.lib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\qgis_command_handler.py", line 6, in from .cone_handler import ConeHandler File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\cone_handler.py", line 18, in from settings import Settings File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'settings'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 448, in startPlugin plugins[packageName].initGui() File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\street_smart.py", line 665, in initGui self.install_commands() File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\street_smart.py", line 757, in install_commands self.add_actions(modules) File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\logger.py", line 59, in fn_wrapper return_value = func(*args, **kwargs) File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\street_smart.py", line 732, in add_actions from .qgis_command_handler import QGISCommandHandler File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\StreetSmart\qgis_command_handler.py", line 12, in from logger import Logger ImportError: cannot import name 'Logger' from 'logger' (C:\OSGeo4W\apps\Python39\lib\site-packages\logger__init__.py)

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] QGIS version: 3.32.1-Lima Lima, 4a078ecf63

Python Path: C:/OSGeo4W/apps/qgis/./python C:/Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/OSGeo4W/apps/qgis/./python/plugins C:\OSGeo4W\bin\python39.zip C:\OSGeo4W\apps\Python39\DLLs C:\OSGeo4W\apps\Python39\lib C:\OSGeo4W\bin C:\OSGeo4W\apps\Python39 C:\OSGeo4W\apps\Python39\lib\site-packages C:\OSGeo4W\apps\Python39\lib\site-packages\win32 C:\OSGeo4W\apps\Python39\lib\site-packages\win32\lib C:\OSGeo4W\apps\Python39\lib\site-packages\Pythonwin C:/Users/petr.base.YUNGO/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users\petr.base.YUNGO\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\HCMGIS/forms