[Gdal-dev] Where's the _gdal module?
Roger André
randre at gmail.com
Mon Apr 9 11:18:01 EDT 2007
Ahh, well that may be the crux of the problem. I ran ./configure with no
options, since I was unsure of what to set. From the message that came up
during the compile process, it appears I have png, geotiff, jpg and OGR
support as is. In the future I might look into JPEG2000 support, but for
now, this appeared sufficient.
Regarding Python support, I don't know what the difference is between SWIG
and traditional Python support. I would like to be able to run the
utilities that come with GDAL, such as "gdal_merge.py". It appears that in
orger to do this I need to be able to import the gdal module. More than
that I'm afraid I don't know.
I did find yesterday that there has been some discussion about how Cygwin
doesn't use shared libraries the way other Unix distros do, and that there
is a cygMakefile in the gdal/pymod directory. However, it appears to be old
(refers to Python 2.1), and I have no idea how to use it as part of the
compile process.
Sorry I can't answer better, if you can point me to specific things to look
for, I'll be glad to do so.
Thanks for the help,
Roger
--
On 4/9/07, Mateusz Loskot <mateusz at loskot.net> wrote:
>
> Roger André wrote:
> > I just finished compiling and installing gdal from source in
> Cygwin. The
> > utilities like "gdal_translate" and "gdalinfo" seem to be working fne,
> but
> > I'm, having trouble with the Python API. For example, when I try to run
> > "gdal_merge.py", I get the following error:
> >
> > $ gdal_merge.py
> > Traceback (most recent call last):
> > File "/usr/local/bin/gdal_merge.py", line 110, in <module>
> > import gdal
> > File "/usr/lib/python2.5/site-packages/gdal.py", line 191, in <module>
> > import _gdal
> > ImportError: No module named _gdal
> >
> > When I trace this a bit further online, I see references to needing a "
> > gdal.so", but I don't know where it should be, or how to get it.
> >
> > Can someone advise me?
>
> Roger,
>
> Could you tell us how did you configured GDAL and what Python bindings do
> you want to use: traditional or SWIG-based?
> Simply, paste the ./configure command with all options you used.
>
> Cheers
> --
> Mateusz Loskot
> http://mateusz.loskot.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070409/064c9cb3/attachment.html
More information about the Gdal-dev
mailing list