Hi,

 

Jython 2.2 currently only supports Jython 2.2 and a little 2.3 stuff. Python 2.5 will be supported when Jython 2.5 is released sometime in the future.

So importing python 2.5 modules into the current Jython more than likely won’t work. I’d recommend using a Java lib. But which one, I don’t know maybe google will help you there.

 

Greg.

 

From: jython-users-bounces@lists.sourceforge.net [mailto:jython-users-bounces@lists.sourceforge.net] On Behalf Of Balbir.Kaur@jeppesen.com
Sent: Friday, June 20, 2008 11:19 AM
To: jython-users@lists.sourceforge.net
Subject: [Jython-users] import error in hashlib
Importance: High

 


Hi,

I am trying to import hashlib in my jython script......and getting error msg

No Module named _md5

Here is traceback result

File C:\Python25\Lib\hashlib.py line 60 in _get_built_constructor

File C:\Python25\Lib\hashlib.py Line 133
no module named -md5

my current directory is c:\grinder-3.0.1

If this is standard problem of importing Python modules in Jython (like parsers, XMLstring)....is there a way to use same Hash sha1 functionality in Jython ..may be using Java ?

can someone please share that recipe.

Thanks

-Balbir


This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.