Python gdal import error

المشرف العام

Administrator
طاقم الإدارة
I installed gdal from source using steps from this answer http://gis.stackexchange.com/a/21739/60378 (ommiting first line sudo apt-get install build-essential python-all-dev as it did not work for me). Everything went without errors. When i try to import osego or gdal it gives me error: undefined symbol: GDALSetRasterUnitType

>>> import gdalTraceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.7/site-packages/GDAL-1.9.0-py2.7-linux-x86_64.egg/gdal.py", line 2, in from osgeo.gdal import deprecation_warn File "/usr/lib64/python2.7/site-packages/GDAL-1.9.0-py2.7-linux-x86_64.egg/osgeo/__init__.py", line 21, in _gdal = swig_import_helper() File "/usr/lib64/python2.7/site-packages/GDAL-1.9.0-py2.7-linux-x86_64.egg/osgeo/__init__.py", line 17, in swig_import_helper _mod = imp.load_module('_gdal', fp, pathname, description)ImportError: /usr/lib64/python2.7/site-packages/GDAL-1.9.0-py2.7-linux-x86_64.egg/osgeo/_gdal.so: undefined symbol: GDALSetRasterUnitTypeServer is using fedora core 14, which I cannot upgrade right now. What could be wrong? Is there any simpler gdal installation method?



أكثر...
 
أعلى