[gdal-dev] Path problem with gdal2tiles on Mac
woklist at kyngchaos.com
Sat Sep 12 00:07:37 EDT 2009
On Sep 11, 2009, at 6:27 PM, Christopher Schmidt wrote:
> On Fri, Sep 11, 2009 at 03:57:11PM -0700, Mano Marks wrote:
>> Using gdal2tiles on the mac, I get an ImportError for gdal:
>> Traceback (most recent call last):
>> File "/Library/Frameworks/GDAL.framework/Programs/gdal2tiles.py",
>> line 42, in ?
>> import gdal
>> ImportError: No module named gdal
>> Any suggestions? I tried mucking around with paths, no luck so far.
> Using KyngChaos binaries, on a new laptop I just got today, I can do
> site-packages/" python /Library/Frameworks/GDAL.framework/Programs/
> (This is on Snow Leopard; Tiger and older will need to install
> from python.org.)
Note: the GDAL installer should place a gdal.pth in the site-packages
folder(s) - for the python.org Python on Tiger and Leopard (in the
python framework), and for the system Python on Leopard (/Library/
Python). No need to set PYTHONPATH.
This is for Python 2.5 at this time. On Snow, you should run
python2.5 until I update for Snow. The binary modules are built for
python 2.5 and there may be problems loading them into python 2.6.
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
"We are at war with them. Neither in hatred nor revenge and with no
particular pleasure I shall kill every ___ I can until the war is
over. That is my duty."
"Don't you even hate 'em?"
"What good would it do if I did? If all the many millions of people of
the allied nations devoted an entire year exclusively to hating the
____ it wouldn't kill one ___ nor shorten the war one day."
<Ha, ha> "And it might give 'em all stomach ulcers."
- Tarzan, on war
More information about the gdal-dev