ImportError: No module named optparse in jython

receiving

Traceback (last call last): File "C: \ projects \ myproject \ convert.py", line 139, in import optparse ImportError: No module named optparse.

when executing it with jython. The same module works fine when I execute it through python.

I am using windows7 operating system. The same module works fine on a Windows XP machine using both python and Jython.

+2


a source to share


1 answer


I assume you are using Jython 2.2, which according to the FAQ :

Jython 2.2 does not implement any of the features added to CPython in version 2.3 or later.



Where optparse

added in Python 2.3 .

The newest version of Jython is 2.5.1, so you probably want to go ahead and download it .

+1


a source







All Articles