Can't import GDAL into Python (2.5 or 2.6)
jpglutting at gmail.com
Fri Aug 20 04:03:02 PDT 2010
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
On Aug 20, 2010, at 12:35 PM, Vincent Habchi wrote:
> Le 20 août 2010 à 11:58, John Hauf a écrit :
>> 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.
More information about the macports-users