<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Andrew,</p>
<p>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.<br>
</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 02/05/2025 à 21:21, Andrew Bell via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CACJ51z3k1gvhYGQ4fFROKK4BvWesijEtmTgd4H5WAP56JDBDrw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>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:<br>
<br>
(gdal.2) [issue-11533] $ nm libgdal.dylib | grep
_CPLQuietWarningsErrorHandler<br>
00000000000292d0 T _CPLQuietWarningsErrorHandler<br>
<br>
Any suggestions on resolution would be appreciated.<br>
<br>
Here is the error:<br>
<br>
</div>
<span class="gmail_signature_prefix">(gdal.2) [issue-11533] $
DYLD_LIBRARY_PATH=/Users/abell/gdal/build
PYTHONPATH=/Users/abell/gdal/build/swig/python python3 -c
"from osgeo import gdal"<br>
Traceback (most recent call last):<br>
File
"/Users/abell/gdal/build/swig/python/osgeo/__init__.py", line
30, in swig_import_helper<br>
return importlib.import_module(mname)<br>
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^<br>
File
"/Users/abell/miniconda3/envs/gdal.2/lib/python3.13/importlib/__init__.py",
line 88, in import_module<br>
return _bootstrap._gcd_import(name[level:], package,
level)<br>
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File "<frozen importlib._bootstrap>", line 1387, in
_gcd_import<br>
File "<frozen importlib._bootstrap>", line 1360, in
_find_and_load<br>
File "<frozen importlib._bootstrap>", line 1331, in
_find_and_load_unlocked<br>
File "<frozen importlib._bootstrap>", line 921, in
_load_unlocked<br>
File "<frozen importlib._bootstrap>", line 813, in
module_from_spec<br>
File "<frozen importlib._bootstrap_external>", line
1320, in create_module<br>
File "<frozen importlib._bootstrap>", line 488, in
_call_with_frames_removed<br>
ImportError:
dlopen(/Users/abell/gdal/build/swig/python/osgeo/_<a
href="http://gdal.cpython-313-darwin.so"
moz-do-not-send="true">gdal.cpython-313-darwin.so</a>,
0x0002): symbol not found in flat namespace
'_CPLQuietWarningsErrorHandler'<br>
<br>
During handling of the above exception, another exception
occurred:<br>
<br>
Traceback (most recent call last):<br>
File "<string>", line 1, in <module><br>
from osgeo import gdal<br>
File
"/Users/abell/gdal/build/swig/python/osgeo/__init__.py", line
35, in <module><br>
_gdal = swig_import_helper()<br>
File
"/Users/abell/gdal/build/swig/python/osgeo/__init__.py", line
32, in swig_import_helper<br>
return importlib.import_module('_gdal')<br>
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^<br>
File
"/Users/abell/miniconda3/envs/gdal.2/lib/python3.13/importlib/__init__.py",
line 88, in import_module<br>
return _bootstrap._gcd_import(name[level:], package,
level)<br>
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
ModuleNotFoundError: No module named '_gdal'</span>
<div><span class="gmail_signature_prefix"><br>
</span></div>
<div><span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">andrew.bell.ia@gmail.com</a></div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>