Problems with OS X 10.5.6 and Python 2.5 and GDAL 1.6
Philip Semanchuk
philip at semanchuk.com
Tue Feb 17 15:30:52 EST 2009
On Feb 16, 2009, at 8:35 PM, Helly John J. wrote:
> Hi.
>
> I'm a newbie to python and am running:
>
> OS X 10.5.6
> Python 2.5.4
Hi John,
Are you using the system Python or have you installed another version?
Cheers
Philip
>
>
> and have run easy_install for gdal like this:
>
> /Library/Python/2.5/site-packages>sudo easy_install GDAL
> Password:
> Searching for GDAL
> Best match: GDAL 1.6.0
> Processing GDAL-1.6.0-py2.5-macosx-10.5-i386.egg
> GDAL 1.6.0 is already the active version in easy-install.pth
>
> Using /Library/Python/2.5/site-packages/GDAL-1.6.0-py2.5-macosx-10.5-
> i386.egg
> Processing dependencies for GDAL
> Finished processing dependencies for GDAL
>
> However, when I run python and try to import gdal, this is what
> happens:
>
> Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27)
> [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gdal
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named gdal
> >>>
>
> Clearly, it's not being found but I don't understand how to debug
> this any further. I have the *.egg in the site-packages directory
> but don't understand if there is something else I have to do to make
> it usable. Any help would be much appreciated.
> Cheers.
> --------------
> John Helly, University of California, San Diego
> San Diego Supercomputer Center, Mail Code 0527
> Scripps Institution of Oceanography, Climate, Atmospheric Science,
> and Physical Oceanography, Mail Code 0224
> 9500 Gilman Dr., La Jolla CA 92093
> +01 760 840 8660 mobile / stonesteps (Skype) / stonesteps7 (iChat) /
> URL (http://www.sdsc.edu/~hellyj)
>
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list