[reportlab-users] Patch to reportlab with python 2.6

Barthe Guillaume gu_barthe at yahoo.fr
Sat Dec 13 04:35:04 EST 2008


Hello,

I use reportlab 2.2 with python 2.6 and when I launch my soft, I have an error with canvas.py file for pdfgen module.

In fact this file use the md5 module witch is replace by haslib module.

So to resolved the problem, I have just replace "import md5" by "import hashlib" in line 18 and this line "rawName = 'PS' + md5.md5(command).hexdigest()" by "rawName = 'PS' + hashlib.md5(command).hexdigest()" in line 739.

I don't know if this correction is in the svn code but I hope that this little correction can help you.

Bye.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20081213/0a2c7da8/attachment.html>


More information about the reportlab-users mailing list