Opened 16 years ago
Closed 16 years ago
#1928 closed defect (worksforme)
Can not import ogr/gdal on Mac OS + eggs
Reported by: | Mateusz Łoskot | Owned by: | Mateusz Łoskot |
---|---|---|---|
Priority: | normal | Milestone: | 1.4.5 |
Component: | PythonBindings | Version: | svn-trunk |
Severity: | normal | Keywords: | python bindings |
Cc: |
Description
When trying to import ogr or gdal from NG bindings using egg on Mac OS X, I'm getting following error:
~/dev/gdal/_svn/trunk/gdal $ python Python 2.3.5 (#1, Dec 7 2006, 14:50:51) [GCC 4.0.1 (Apple Computer, Inc. build 5363) (+4864187)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import ogr Traceback (most recent call last): File "<stdin>", line 1, in ? File "build/bdist.darwin-8.10.1-i386/egg/ogr.py", line 2, in ? File "build/bdist.darwin-8.10.1-i386/egg/osgeo/gdal.py", line 7, in ? File "build/bdist.darwin-8.10.1-i386/egg/osgeo/_gdal.py", line 7, in ? File "build/bdist.darwin-8.10.1-i386/egg/osgeo/_gdal.py", line 6, in __bootstrap__ ImportError: dlopen(/Users/mloskot/.python-eggs/GDAL_OGR-1.5.0-py2.3-macosx-10.4-i386.egg-tmp/osgeo/_gdal.so, 2): Library not loaded: /usr/local/lib/libgdal.1.dylib Referenced from: /Users/mloskot/.python-eggs/GDAL_OGR-1.5.0-py2.3-macosx-10.4-i386.egg-tmp/osgeo/_gdal.so Reason: Incompatible library version: _gdal.so requires version 13.0.0 or later, but libgdal.1.dylib provides version 0.0.0 >>>
I tried to build with and without libtool. I have set PYTHONPATH pointing to the egg file as well as correctly set DYLD_LIBRARY_PATH.
Change History (4)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Hobu,
Once again, I tested building and using egg on Mac OS X 10.4 and I confirm everything works well:
$ pwd /Users/mloskot/dev/gdal/_svn/trunk/gdal $ ./configure $ make clean $ make $ cd swig/python $ python setup.py bdist_egg $ export PYTHONPATH=/Users/mloskot/dev/gdal/_svn/trunk/gdal/swig/python/dist/GDAL-1.5.0.a.dev-py2.3-macosx-10.4-i386.egg $ cd ../../../autotest $ ./run_all.py ... Succeeded: 696 Failed: 0 (0 blew exceptions) Skipped: 168
I'm closing this ticket.
comment:3 by , 16 years ago
Milestone: | → 1.4.5 |
---|
comment:4 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Mateusz,
Is this one invalid now?
Howard