Andrew,
check the output of "otool -L
/Users/abell/gdal/build/swig/python/osgeo/_gdal.cpython-313-darwin.so"
to verify that it links against the libgdal.dylib you've built. M y
assumption is that it links against an older version. The SONAME of
libgdal has been bumped to 37 when 3.11beta1 has been cut, 2 weeks ago.
Even
Le 02/05/2025 à 21:21, Andrew Bell via gdal-dev a écrit :
Hi,
I'm trying to get an OSX dev build going against the current master
branch with test support. When I try to run the import as is being
done by the CI script, I get an error. It fails when trying to resolve
_CPLQuietWarningsErrorHandler, which I see is a new function. That
function is contained in the built libgdal.dylib:
(gdal.2) [issue-11533] $ nm libgdal.dylib | grep
_CPLQuietWarningsErrorHandler
00000000000292d0 T _CPLQuietWarningsErrorHandler
Any suggestions on resolution would be appreciated.
Here is the error:
(gdal.2) [issue-11533] $ DYLD_LIBRARY_PATH=/Users/abell/gdal/build
PYTHONPATH=/Users/abell/gdal/build/swig/python python3 -c "from osgeo
import gdal"
Traceback (most recent call last):
File "/Users/abell/gdal/build/swig/python/osgeo/__init__.py", line
30, in swig_import_helper
return importlib.import_module(mname)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File
"/Users/abell/miniconda3/envs/gdal.2/lib/python3.13/importlib/__init__.py",
line 88, 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 1320, in
create_module
File "<frozen importlib._bootstrap>", line 488, in
_call_with_frames_removed
ImportError:
dlopen(/Users/abell/gdal/build/swig/python/osgeo/_gdal.cpython-313-darwin.so
<http://gdal.cpython-313-darwin.so>, 0x0002): symbol not found in flat
namespace '_CPLQuietWarningsErrorHandler'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
from osgeo import gdal
File "/Users/abell/gdal/build/swig/python/osgeo/__init__.py", line
35, in <module>
_gdal = swig_import_helper()
File "/Users/abell/gdal/build/swig/python/osgeo/__init__.py", line
32, in swig_import_helper
return importlib.import_module('_gdal')
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/Users/abell/miniconda3/envs/gdal.2/lib/python3.13/importlib/__init__.py",
line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_gdal'
--
Andrew Bell
andrew.bell...@gmail.com
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev