You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dev setup failure on Fedora: ImportError: /lib64/libgdal.so.34: undefined symbol: jpeg12_read_scanlines, version LIBJPEG_6.2 and ModuleNotFoundError: No module named '_gdal'#503
Open
matthiasschaub opened this issue
Sep 3, 2024
· 2 comments
After upgrade my OS to fedora 40 and reinstalling the Sketch Map Tool by following the steps outlined in /docs/development-setup.md following error get thrown when I try to start the tool or run pytest:
Error: While importing 'sketch_map_tool.routes', an ImportError was raised:
Traceback (most recent call last):
File "/home/matthias/.cache/pypoetry/virtualenvs/sketch-map-tool-SFkv235P-py3.12/lib64/python3.12/site-packages/osgeo/__init__.py", line 30, in swig_import_helper
return importlib.import_module(mname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 921, in _load_unlocked
File "<frozen importlib._bootstrap>", line 813, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1289, in create_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
ImportError: /lib64/libgdal.so.34: undefined symbol: jpeg12_read_scanlines, version LIBJPEG_6.2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/matthias/.cache/pypoetry/virtualenvs/sketch-map-tool-SFkv235P-py3.12/lib/python3.12/site-packages/flask/cli.py", line 219, in locate_app
__import__(module_name)
File "/home/matthias/work/smt/sketch_map_tool/__init__.py", line 9, in <module>
from sketch_map_tool.database import client_flask as db_client
File "/home/matthias/work/smt/sketch_map_tool/database/client_flask.py", line 19, in <module>
from sketch_map_tool.upload_processing import read_qr_code
File "/home/matthias/work/smt/sketch_map_tool/upload_processing/__init__.py", line 3, in <module>
from .georeference import georeference
File "/home/matthias/work/smt/sketch_map_tool/upload_processing/georeference.py", line 7, in <module>
from osgeo import gdal, osr
File "/home/matthias/.cache/pypoetry/virtualenvs/sketch-map-tool-SFkv235P-py3.12/lib64/python3.12/site-packages/osgeo/__init__.py", line 35, in <module>
_gdal = swig_import_helper()
^^^^^^^^^^^^^^^^^^^^
File "/home/matthias/.cache/pypoetry/virtualenvs/sketch-map-tool-SFkv235P-py3.12/lib64/python3.12/site-packages/osgeo/__init__.py", line 32, in swig_import_helper
return importlib.import_module('_gdal')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_gdal'
The text was updated successfully, but these errors were encountered:
matthiasschaub
changed the title
Dev setup failure: ImportError: /lib64/libgdal.so.34: undefined symbol: jpeg12_read_scanlines, version LIBJPEG_6.2 and ModuleNotFoundError: No module named '_gdal'
Dev setup failure on Fedora: ImportError: /lib64/libgdal.so.34: undefined symbol: jpeg12_read_scanlines, version LIBJPEG_6.2 and ModuleNotFoundError: No module named '_gdal'Sep 3, 2024
After upgrade my OS to fedora 40 and reinstalling the Sketch Map Tool by following the steps outlined in /docs/development-setup.md following error get thrown when I try to start the tool or run
pytest
:On my system, installed are:
The text was updated successfully, but these errors were encountered: