Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: type 'typing.TypeVar' is not an acceptable base type #828

Open
krubjorn opened this issue Jul 5, 2024 · 1 comment
Open

TypeError: type 'typing.TypeVar' is not an acceptable base type #828

krubjorn opened this issue Jul 5, 2024 · 1 comment

Comments

@krubjorn
Copy link

krubjorn commented Jul 5, 2024

Tried to install Trends.Earth and run into this error

Couldn't load plugin 'LDMP'

TypeError: type 'typing.TypeVar' is not an acceptable base type
Traceback (most recent call last):
File "C:\PROGRA1/QGIS331.0/apps/qgis/./python\qgis\utils.py", line 404, in loadPlugin
import(packageName)
File "C:\Users/many3911/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init_.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA1/QGIS331.0/apps/qgis/./python\qgis\utils.py", line 923, in import
mod = builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/many3911/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP_init
.py", line 117, in
from . import conf # noqa: autoimport
^^^^^^^^^^^^^^^^^^
File "C:\Users/many3911/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA1/QGIS331.0/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/many3911/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\LDMP\conf.py", line 10, in
from te_schemas.algorithms import ExecutionScript
File "C:\Users/many3911/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA1/QGIS331.0/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\many3911\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\LDMP\ext-libs\te_schemas\algorithms.py", line 6, in
import marshmallow_dataclass
File "C:\Users/many3911/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA1/QGIS331.0/apps/qgis/./python\qgis\utils.py", line 923, in import
mod = builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\many3911\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\LDMP\ext-libs\marshmallow_dataclass_init
.py", line 66, in
import typing_inspect
File "C:\Users/many3911/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA1/QGIS331.0/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\many3911\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\LDMP\ext-libs\typing_inspect.py", line 23, in
from typing_extensions import _TypedDictMeta as TypedDictMeta_TE
File "C:\Users/many3911/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PROGRA1/QGIS331.0/apps/qgis/./python\qgis\utils.py", line 923, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\many3911\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\LDMP\ext-libs\typing_extensions.py", line 1174, in
class TypeVar(typing.TypeVar, _DefaultMixin, _root=True):
TypeError: type 'typing.TypeVar' is not an acceptable base type

Python version: 3.12.4 (main, Jun 10 2024, 12:48:35) [MSC v.1938 64 bit (AMD64)]
QGIS version: 3.38.0-Grenoble Grenoble, 37aa6188bc

@atomes-epar
Copy link

This appears to be an issue with QGIS python. I was successfully able to load the plugin using QGIS version 3.28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants