[Gdal-dev] Beginner problem - can't load DLL
amills at frogtech.com.au
Sun Mar 12 20:47:50 EST 2006
I'm trying to write a fairly simple program that will extract the data from
an Erdas Imagine file into an ASCII file. Normally I'd use the Arc software
for something like this but in this case I have to make a standalone program
that can be handed around freely. After some searching I found GDAL which I
can use to read the Imagine format.
My first problem struck when I began looking at the supported languages.
I'm mainly familiar with VB .NET and Java - but the former seems to be
unsupported and the latter has no documentation. I looked at the tutorial
and it seemed that learning a bit of Python would be the simplest solution.
I've installed the ActivePython IDE and FWTools so I should have all I
need. I changed the registry setting for the PythonPath to include
c:\Program Files\FWTools1.0.0a7\pymod so it should have access to the Python
However, when I give it this command:
I get the following error:
Traceback (most recent call last):
line 310, in RunScript
exec codeObject in __main__.__dict__
File "C:\Frogtech\testScript.py", line 1, in ?
File "C:\Python24\lib\gdal.py", line 191, in ?
ImportError: DLL load failed: The specified module could not be found.
The _gdal.dll file is in the same directory as gdal.py so I'm not sure why
it can't load it. I'm a beginner when it comes to Python and GDAL so I might
have missed a step when setting up or something. Any ideas?
Alternately, if someone can give me some pointers on how to run GDAL from
Java I'd be very appreciative.
View this message in context: http://www.nabble.com/Beginner-problem---can%27t-load-DLL-t1270110.html#a3371071
Sent from the GDAL - Dev forum at Nabble.com.
More information about the Gdal-dev