zionhigt / android-python27

Automatically exported from code.google.com/p/android-python27
0 stars 0 forks source link

Can not import md5, sha1 #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create .apk, install on the phone
2.Run Python command line
3.import md5,
4.import sha1

What do you see instead?
File "<stdin>", line 1, in <module>
  File "/home/tony/Desktop/xcross/android-python27/python-build/build/lib/python2.7/md5.py", line 10, in <module>
ImportError: cannot import name md5

What version of the product are you using? On what operating system?
1. Moto Spice, Adroid 2.1

Please provide any additional information below.

Original issue reported on code.google.com by mike...@gmail.com on 21 Jul 2012 at 12:08

GoogleCodeExporter commented 8 years ago
md5 module is deprecated, you need to use hashlib: 
http://docs.python.org/library/hashlib.html

Original comment by anthony....@gmail.com on 21 Jul 2012 at 5:15