Hey,
First of all, congratulations on the beta release. It is really great to =
see Jython moving forward. Thanks for all of the hard work.
So I am trying to run an existing package that I developed with Jython =
2.1, and I am getting ImportErrors. I know that the semantics of import =
have changed in the 2.2 release, but I am not exactly sure how these =
changes could affect my code. I know that Jython 2.2 has a PEP 302 =
implementation, but I am not exactly sure what those changes mean in the =
context of Jython.
Any hints on how to go about determining if this is (a) a problem with =
my code, or (b) a problem with Jython? I am using some code to =
dynamically add JAR files to the Jython classpath. I suspect that this =
might be the problem, but I am not sure. Does Jython 2.2 support this? =
And if so, how do I access this functionality in my code?
Thanks,
Alan
>>> from SAS.DIServer import MDOContext
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: no module named DIServer
>>> from SAS import *
>>> dir()
['CVS', 'CreditRisk', 'DIServer', 'MAClient', '__doc__', '__name__', =
'support']
>>> from SAS.DIServer import *
>>> dir()
['CVS', 'CreditRisk', 'DIServer', 'Data', 'Jars', 'MAClient', =
'Workflows', '__doc__', '__name__', 'support']
>>> from SAS.DIServer import MDOContext
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: cannot import name MDOContext
|