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

John Hauf j at hauf.org
Fri Aug 20 03:56:57 PDT 2010


Thank you. I didn't knew that python_select exists.

With python select it's far way easier.

John

On 8/20/10 12:35 PM, Vincent Habchi wrote:
> Le 20 août 2010 à 11:58, John Hauf a écrit :
> 
>> Hello,
>>
>> I did this:
>>
>> 1. Edit "/opt/local/etc/macports/macports.conf": Set "portautoclean" to "no"
>> 2. Install "sudo port install gdal +python26 +sqlite3"
>> 3. Make some softlinks in /opt/local/bin: "ln -s python2.6 python", "ln
>> -s python2.6-config python-config", "ln -s easy_install-2.6 easy_install"
> 
> This is unnecessary. You should install python_select instead and use it. It does a cleaner job.
> 
> As for gdal, you're right: the current Portfile does not activate the swig glue, so nothing gets installed in site-packages. I'll see what's going on. Meanwhile, I've successfully updated to 1.7.2, which requires only bumping the version and the related checksums.
> 
> Cheers
> Vincent
> 
> 
> 


More information about the macports-users mailing list