Replies: 2 comments 6 replies
-
Hi @EddyGC61 This is the same issue as #57 (comment). You can try applying the solution suggested there to see if it resolves the problem. |
Beta Was this translation helpful? Give feedback.
-
Hi @EddyGC61 The issue stems from having multiple GIS software installations, which can result in multiple versions of PROJ being installed and lead to inconsistencies in the
If you manage to resolve the issue, please share your solution with the community to help others facing similar problems. Good luck! |
Beta Was this translation helpful? Give feedback.
-
Hi, I attempted to install Release 1.3.1 RC3 in accordance with the instructions. It all seemed to go very well until I checked on the plugin to activate it in QGis.
I received the error (see screen grab) it could not locate a procedure entry point and the following error description.
I am not a coder, but an end user of QGIS. Could I have missed something in the installation? Any help would be appreciated.
Couldn't load plugin 'Geo-SAM'
rasterio.errors.CRSError: The EPSG code is unknown. PROJ: proj_create_from_database: C:\OSGeo4W\share\proj\proj.db contains DATABASE.LAYOUT.VERSION.MINOR = 3 whereas a number >= 4 is expected. It comes from another PROJ installation.
Traceback (most recent call last):
File "rasterio\crs.pyx", line 592, in rasterio.crs.CRS.from_epsg
File "rasterio\_err.pyx", line 289, in rasterio._err.exc_wrap_int
rasterio._err.CPLE_AppDefinedError: PROJ: proj_create_from_database: C:\OSGeo4W\share\proj\proj.db contains DATABASE.LAYOUT.VERSION.MINOR = 3 whereas a number >= 4 is expected. It comes from another PROJ installation.
During handling of the above exception, another exception occurred:
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/biost/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/biost/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/biost/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Geo-SAM\tools\widgetTool.py", line 21, in
from torchgeo.datasets import BoundingBox
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OSGeo4W\apps\Python312\Lib\site-packages\torchgeo\datasets_init.py", line 6, in
from .advance import ADVANCE
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OSGeo4W\apps\Python312\Lib\site-packages\torchgeo\datasets\advance.py", line 19, in
from .geo import NonGeoDataset
File "C:\OSGeo4W/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\OSGeo4W\apps\Python312\Lib\site-packages\torchgeo\datasets\geo.py", line 47, in
class GeoDataset(Dataset[dict[str, Any]], abc.ABC):
File "C:\OSGeo4W\apps\Python312\Lib\site-packages\torchgeo\datasets\geo.py", line 90, in GeoDataset
_crs = CRS.from_epsg(4326)
^^^^^^^^^^^^^^^^^^^
File "rasterio\crs.pyx", line 596, in rasterio.crs.CRS.from_epsg
rasterio.errors.CRSError: The EPSG code is unknown. PROJ: proj_create_from_database: C:\OSGeo4W\share\proj\proj.db contains DATABASE.LAYOUT.VERSION.MINOR = 3 whereas a number >= 4 is expected. It comes from another PROJ installation.
Python version: 3.12.6 (main, Sep 7 2024, 18:59:42) [MSC v.1938 64 bit (AMD64)]
QGIS version: 3.34.11-Prizren Prizren, 2904bcec
Python Path:
C:/OSGeo4W/apps/qgis-ltr/./python
C:/Users/biost/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/biost/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGeo4W/apps/qgis-ltr/./python/plugins
C:\OSGeo4W\apps\grass\grass84\etc\python
C:\WINDOWS\system32
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/biost/AppData/Roaming/QGIS/QGIS3\profiles\default/python
Beta Was this translation helpful? Give feedback.
All reactions