Hi Garrick,<br><br>My python script depends on another framework that is implemented in python.<br>The error is originating from the framework code note my script and I cannot change the framework.<br><br>Also, it works on other machines. So my guess is that I have no choice I need to install the 'py25-hashlib' on my current box.<br>
Any idea?<br>   <br><br><div class="gmail_quote">On Thu, Oct 29, 2009 at 3:59 PM, Falcolas <span dir="ltr"><<a href="mailto:garrickp@gmail.com">garrickp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Oct 29, 9:13 am, user7304 <<a href="mailto:wadie...@gmail.com">wadie...@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am trying to run a python script and got this error.<br>
><br>
> >>import _md5<br>
> >>ImportError: No module named _md5<br>
><br>
> Googling the problem suggested that I install the 'py25-hashlib'.<br>
><br>
> the following does not work for me 'sudo port install py25-hashlib' ,<br>
> trying to install MacPorts raised many problems.<br>
><br>
> My question is: any idea on how to install it using yum?<br>
> I am running python 2.6.2 on a centos machine.<br>
><br>
> Many thanks for your help.<br>
<br>
</div></div>Try using hashlib.md5. From the docs:<br>
<br>
>>> import hashlib<br>
>>> m = hashlib.md5()<br>
>>> m.update("Nobody inspects")<br>
>>> m.update(" the spammish repetition")<br>
>>> m.digest()<br>
'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'<br>
<br>
<a href="http://www.python.org/doc/2.5.2/lib/module-hashlib.html" target="_blank">http://www.python.org/doc/2.5.2/lib/module-hashlib.html</a><br>
<br>
Garrick<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Wadienil.<br>