Can't import GDAL into Python (2.5 or 2.6)

JP Glutting jpglutting at gmail.com
Fri Aug 20 04:28:16 PDT 2010


I don't see that line. I do see "Installation directory: /opt/local" but that isn't anything big. 

If I copy the files from the /local/lib/.../site-packages/ directory to the /Library/Frameworks/.../site-packages directory I can import and use GDAL, though.

port location gdal doesn't work because I have two versions installed. Let me try to get rid of one of them.

Cheers,
JP

On Aug 20, 2010, at 1:12 PM, Vincent Habchi wrote:

> Le 20 août 2010 à 13:03, JP Glutting a écrit :
> 
>> Which is odd, because I have a gdal.py file (and an osgeo directory) in my /opt/local/lib/python2.6/site-packages directory. But nothing else. I imagine they were supposed to have been installed in 
>> 
>> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
> 
> Try this:
> 
> sudo port -v configure gdal (with your options) and look, at the end of the output, for this line:
> 
> checking where to install Python modules... 
> 
> What path is printed after?
> 
> In my case, I have:
> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
> 
> which is correct.
> Vincent



More information about the macports-users mailing list