I keep getting warning for the deprecated md5 library in python 2.6.
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycuda-0.93beta-py2.6-macosx-10.5-i386.egg/pycuda/compiler.py:23:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
I lifted a patch off another site. if you change line 23+ in
compiler.py to the following, you can get rid of the warnings (sorry
for not generating a diff). I compiled and tested. It seems to work
fine.
# import md5
# checksum = md5.new()
try:
import hashlib
checksum = hashlib.md5()
except ImportError:
# for Python << 2.5
import md5
checksum = md5.new()
PyCuda 0.93 (~ 1 week old from git),
boost 1.38
python 2.6.1
OSX 10.5.6
--
Dr. Michael A. Freitas
Research Assistant Professor
Ohio State University Medical Center
906 Biomedical Research Tower
460 West 12th Avenue
Columbus, OH 43210
email (OSU): [email protected]
phone: 614-688-8432
fax: 614-688-8675
_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net