[Gdal-dev] newbie: Python issues with gdal-1.4.0/VC8/Python24

Didrik Pinte dpinte at itae.be
Wed Jan 10 03:38:14 EST 2007

Le mardi 09 janvier 2007 à 15:57 -0800, Gregory, Matthew a écrit :
> I'm trying to compile GDAL with Python support on Windows using Visual C++ 8 (2005) and am banging my head against the wall.
> In the nmake.opt file, I have set the following variables:
> GDAL_HOME = C:\gdal-1.4.0
> PY_INST_DIR = $(GDAL_HOME)\pymod
> PYDIR = C:\Python24
> VCDIR = C:\Program Files\Microsoft Visual Studio 8\VC
> When I build, everything goes fine and I get what I would expect in the pymod directory (_gdal.dll, _gdal.exp, _gdal.lib).  I then include C:\Python24 in my PATH and C:\gdal-1.4.0\pymod in my PYTHONPATH.
> When I try to run a sample Python script (e.g. "python rgb2pct.py"), I get the error message:
>   Traceback (most recent call last):
>     File "rgb2pct.py", line 50, in ?
>       import gdal
>     File "C:\gdal-1.4.0\pymod\gdal.py", line 191, in ?
>       import _gdal
>   ImportError: DLL load failed: The specified module could not be found.

I guess you have to add the C:\gdal-1.4.0\pymod to your PATH too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070110/6c590034/attachment-0001.bin

More information about the Gdal-dev mailing list