I am running smart --gui from yakuake in xfce on SuSE 11.1. It opens but I get the following error message.
smart --gui
/usr/lib64/python2.6/site-packages/smart/plugins/zyppchannelsync.py:22: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Maybe it was obvious to the smarter crowd, but I didn’t want to mess something up. I backed up the original file, and replaced the md5 with the hashlib. It is all working now.
The fix was just doing what the system said. It just took me a while to understand what it was saying.
What it’s saying it that the Python crowd have changed their API so that md5 is replaced by a more general interface called hashlib but the old interface is still supported with a warning. The Smart crowd are still using the old call perhaps because they want their package to continue to run on old Python platforms.
Perhaps the API changed long ago and Smart crowd are tardy in getting up to date, or perhaps the Python crowd have just started issuing warnings, only some research can tell. Anyway it’s just a warning, and fixing it exactly the way you did gets rid of it.