[gdal-dev] Python bindings

Chaitanya kumar CH chaitanya.ch at gmail.com
Sat Oct 10 08:44:57 EDT 2009


Hi,

I am having trouble running GDAL's Python bindings. I compiled the trunk
with the option --with-python. Below is some output from my command line. I
am running this on a newly installed system. It has only 2.6 version of
Python and python-setuptools.

----------------------------------
ubuntu at ubuntu:~/gdal/2270/trunk/gdal$ export PYTHONPATH=/usr/local/
ubuntu at ubuntu:~/gdal/2270/trunk/gdal$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from osgeo import gdal
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File
"/usr/local/lib/python2.6/dist-packages/GDAL-1.6.0-py2.6-linux-x86_64.egg/osgeo/__init__.py",
line 4, in <module>
   import _gdal
ImportError: libgdal.so.1: cannot open shared object file: No such file or
directory
>>> import gdal
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File
"/usr/local/lib/python2.6/dist-packages/GDAL-1.6.0-py2.6-linux-x86_64.egg/gdal.py",
line 2, in <module>
   from osgeo.gdal import deprecation_warn
 File
"/usr/local/lib/python2.6/dist-packages/GDAL-1.6.0-py2.6-linux-x86_64.egg/osgeo/__init__.py",
line 4, in <module>
   import _gdal
ImportError: libgdal.so.1: cannot open shared object file: No such file or
directory
>>>
ubuntu at ubuntu:~/gdal/2270/trunk/gdal$ ls /usr/local/lib/
libgdal.a  libgdal.la  libgdal.so  libgdal.so.1  libgdal.so.1.13.0
python2.6
ubuntu at ubuntu:~/gdal/2270/trunk/gdal$
----------------------------------

Thank you.
-- 
Chaitanya kumar CH.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091010/1934f84e/attachment.html


More information about the gdal-dev mailing list