comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: spawn GDAL???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: spawn GDAL??? [message #80884 is a reply to message #80883] Wed, 18 July 2012 13:38 Go to previous messageGo to previous message
anniebryant@gmail.com is currently offline  anniebryant@gmail.com
Messages: 16
Registered: March 2009
Junior Member
On Wednesday, July 18, 2012 2:27:30 PM UTC-6, Craig Markwardt wrote:
> On Wednesday, July 18, 2012 3:34:32 PM UTC-4, AB wrote:
> > Error Message:
> >
> >
> > Traceback (most recent call last):
> > File "/usr/local/GDAL/usr/bin/gdal_merge.py& quot;, line 31, in ?
> > import gdal
> > File "/usr/local/GDAL/usr/lib64/python2.4/site-packa ges/GDAL-1.8.0-py2.4-linux-x86_64.egg/gdal.py", line 2, in ?
> > from osgeo.gdal import deprecation_warn
> > File "/usr/local/GDAL/usr/lib64/python2.4/site-packa ges/GDAL-1.8.0-py2.4-linux-x86_64.egg/osgeo/__init__.py& amp;quot;, line 24, in ?
> > import _gdal
>
> Sorry, your traceback doesn't show the actual error message.
>
> It looks like a python problem. Divide and conquer; only test one thing at a time. So forget your shell script and forget IDL. Can you call your python script by hand and get the results you expect?
>
> Next, can you create a *simple* 'sh' script which calls your python program - no loops! - and can you make that run and get the results you expect?
>
> The only connection I can see to IDL is that perhaps it calls 'sh' and resets your IDL/sh/python path.
>
> Craig

Hi Craig,

Yes, the python script works like a charm on its own. It also works like a charm called within a shell script. It is when it is called from IDL that there is a problem.

If the path is being reset... is it possible to avoid that?

AB
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Library Updates
Next Topic: IDL Statistical Tests

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 21:48:08 PDT 2025

Total time taken to generate the page: 1.76008 seconds