Gedit LaTeX plugin bug: rubber uses deprecated md5 module

This post complements another post that introduces LaTeX plugin for Gedit. It treats a bug found in the first latex compilation after enable Latex Plugin in Gedit on Ubuntu 9.10. The turnaround is as follows:

sudo sed -i "s/import md5/import hashlib/g" /usr/share/rubber/rubber/util.py
sudo sed -i "s/md5.new/hashlib.md5/g" /usr/share/rubber/rubber/util.py

After it you should restart gedit to apply changes.

See ya

Advertisements