Closed sjib closed 1 month ago
Check python version in OSGEO4W Shell: python --version
Check sqlalchemy version in OSGEO4W Shell: pip show sqlalchemy
(see https://blog.finxter.com/how-to-check-sqlalchemy-package-version-in-python/)
Name: SQLAlchemy
Version: 1.3.24
Summary: Database Abstraction Library
Home-page: http://www.sqlalchemy.org
Author: Mike Bayer
Author-email: mike_mp@zzzcomputing.com
License: MIT
Location: C:\Users\Stefan\AppData\Roaming\Python\Python312\site-packages
Requires:
Required-by: GeoAlchemy2
It looks like session.get was introduced with version 1.4: https://docs.sqlalchemy.org/en/20/orm/session_api.html#sqlalchemy.orm.Session.get
Updating sqlalchemy: pip3 install --upgrade sqlachemy
Now I have:
C:\Program Files\QGIS 3.34.8>pip show sqlalchemy
Name: SQLAlchemy
Version: 2.0.35
Summary: Database Abstraction Library
Home-page: https://www.sqlalchemy.org
Author: Mike Bayer
Author-email: mike_mp@zzzcomputing.com
License: MIT
Location: C:\Users\Stefan\AppData\Roaming\Python\Python312\site-packages
Requires: greenlet, typing-extensions
Required-by: GeoAlchemy2
@domi4484 / @ponceta So we should set this as minimal requirement on tww. Can you add these to the plugin code and check for it? Are there other minimal requirements?
Else it is very difficult to find out what these kind of error messages are about.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Exact steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen. No such error warning on import. Check if sqlalchemy has required minimum version before importing / exporting (or even installing the plugin)
Screenshots / data If applicable, add screenshots or data to help explain your problem.```
Ein Fehler trat bei der Ausführung von Python-Code auf:
Desktop (please complete the following information):
Additional context Add any other context about the problem here.