Mike Pechkin wrote:
> OS: Redhat4
> 
> I've download to versions of ActiveState python
> ActivePython-2.5.4.3-linux-x86.tar.gz
> ActivePython-2.6.1.1-linux-x86.tar.gz
> 
> Both version has been successfully installed.
> Simple python code doesn't work on Python 2.5.
> What I've missed or what's wrong with Python 2.5?
> 
> # ./python26/bin/python
> ActivePython 2.6.1.1 (ActiveState Software Inc.) based on
> Python 2.6.1 (r261:67515, Dec  5 2008, 12:22:31) 
> [GCC 3.3.1 (SuSE Linux)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import hashlib
>  >>> hashlib.sha224("Nobody inspects the spammish repetition").hexdigest()
> 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'
>  >>> 
> 
> # ./python25/bin/python
> ActivePython 2.5.4.3 (ActiveState Software Inc.) based on
> Python 2.5.4 (r254:67916, Jan 20 2009, 14:17:32) 
> [GCC 3.3.1 (SuSE Linux)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import hashlib
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/root/python25/lib/python2.5/hashlib.py", line 133, in <module>
>     md5 = __get_builtin_constructor('md5')
>   File "/root/python25/lib/python2.5/hashlib.py", line 60, in 
> __get_builtin_constructor
>     import _md5
> ImportError: No module named _md5
>  >>> hashlib.sha224("Nobody inspects the spammish repetition").hexdigest()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'hashlib' is not defined

I can repro. The previous build of ActivePython 2.5 (2.5.2.2) was fine, 
if you need a workaround for now. I've started this bug for this:

   http://bugs.activestate.com/show_bug.cgi?id=82141

We'll try to get a new release out soon.


Thanks,
Trent

-- 
Trent Mick
trentm at activestate.com
_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to