[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #RLV-485661]: Problem with loadBundle in Jython shell

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [IDV #RLV-485661]: Problem with loadBundle in Jython shell
  • Date: Thu, 21 Feb 2008 14:42:09 -0700

> Using last night's svn code, when I bring up the Jython shell and do:
> 
> loadBundle("nam.xidv"), I get:
> 
> Error: Traceback (innermost last): File " ", line 1, in ? File " ",
> line 41, in loadBundle NameError: interp
> 
> 
Hi Tom,
The isl.py script runs in the context of the  isl interpreter. The loadBundle 
procedure calls
the loadBundle method in the interp:
  interp.loadBundle(bundleFile,setFiles);


When you are running in the Jython Shell there  isn't an Isl interpreter 
available.

That said I've now changed the JythonShell to include the isl interpreter as 
the global:
islInterpreter
I've also changed isl.py to reference use islInterpeter instead of the old 
"interp"

-Jeff


Ticket Details
===================
Ticket ID: RLV-485661
Department: Support IDV
Priority: Normal
Status: Closed