Replies: 4 comments
-
Hi @mikedufty Thanks for your feedback. According to my test, QGIS 3.40 does not have this issue. This issue is related to QGIS API change. I will fix it soon. |
Beta Was this translation helpful? Give feedback.
-
Ah yes, it's a different error on 3.40 `Couldn't load plugin 'Geo-SAM' ModuleNotFoundError: No module named 'Geo-SAM.docs' Python version: 3.12.8 (main, Dec 20 2024, 15:21:15) [MSC v.1938 64 bit (AMD64)] Python Path: |
Beta Was this translation helpful? Give feedback.
-
Did you download the |
Beta Was this translation helpful? Give feedback.
-
Thanks, that was it. I did read the instructions, but for some reason still just downloaded the top file instead of the one I was supposed to. |
Beta Was this translation helpful? Give feedback.
-
I've tried to follow the installation instructions, but getting the failure message below when I try to activate the plugin.
Any ideas what I might be doing wrong?
Tried on Windows 10 and 11, QGIS 3.34.14 (LTR) and 3.40 (Latest)
`Couldn't load plugin 'Geo-SAM'
TypeError: QgsField(): arguments did not match any overloaded call: overload 1: argument 2 has unexpected type 'Type' overload 2: argument 1 has unexpected type 'str'
Traceback (most recent call last):
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 401, in loadPlugin
import(packageName)
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/mdufty/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM_init.py", line 7, in
from .geo_sam_tool import Geo_SAM
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/mdufty/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\geo_sam_tool.py", line 10, in
from .tools.widgetTool import Selector, EncoderCopilot
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/mdufty/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\widgetTool.py", line 32, in
from .canvasTool import (
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/mdufty/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\canvasTool.py", line 58, in
QgsField("group_ulid", QMetaType.QString),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: QgsField(): arguments did not match any overloaded call:
overload 1: argument 2 has unexpected type 'Type'
overload 2: argument 1 has unexpected type 'str'
Python version: 3.12.8 (main, Dec 20 2024, 15:21:15) [MSC v.1938 64 bit (AMD64)]
QGIS version: 3.34.14-Prizren Prizren, 0cdaf6d9
Python Path:
C:/OSGeo4W/apps/qgis-ltr/./python
C:/Users/mdufty/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/mdufty/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGeo4W/apps/qgis-ltr/./python/plugins
C:\OSGeo4W\apps\grass\grass84\etc\python
C:\Users\mdufty\OneDrive - MBS Environmental\Documents
C:\OSGeo4W\bin\python312.zip
C:\OSGeo4W\apps\Python312\DLLs
C:\OSGeo4W\apps\Python312\Lib
C:\OSGeo4W\bin
C:\OSGeo4W\apps\Python312
C:\OSGeo4W\apps\Python312\Lib\site-packages
C:\OSGeo4W\apps\Python312\Lib\site-packages\win32
C:\OSGeo4W\apps\Python312\Lib\site-packages\win32\lib
C:\OSGeo4W\apps\Python312\Lib\site-packages\Pythonwin
C:/Users/mdufty/AppData/Roaming/QGIS/QGIS3\profiles\default/python
.`
Beta Was this translation helpful? Give feedback.
All reactions