make DataSource() gives error

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

make DataSource() gives error

Post by hproe »

Hi -

I have been running successfully Gansham's code given in test.py in the email thread "adding background image" started by me on 22 July. Wit the Win7 64-bit build of 2013-07-25 17:08 I suddenly get an error at the line

Code: Select all

ds=makeDataSource(filename)

The error message is:
...
File "", line 212, in addImage (line given above)
File "C:\Program Files\McIDAS-V-System\idv.jar\ucar\unidata\idv\resources\python\shell.py", line 101, in makeDataSource NameError: global name 'idv' is not defined

I have used the same file as before when it worked.

HP
User avatar
Jon
Posts: 192
Joined: Fri Jan 09, 2009 8:44 pm
Location: Madison, WI

Re: make DataSource() gives error

Post by Jon »

Hi HP,

Apologies--I'm to blame for this one. Regardless, I've already committed the fix and will begin building new installers shortly.
User avatar
Jon
Posts: 192
Joined: Fri Jan 09, 2009 8:44 pm
Location: Madison, WI

Re: make DataSource() gives error

Post by Jon »

Okay…grabbing the newest "nightly" build should fix things for everyone. Apologies for the mistake!
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

Re: make DataSource() gives error

Post by hproe »

okay again, thanks Jon.
HP
Post Reply