Results 1 to 4 of 4

Thread: DeprecationWarning when loading smart --gui

  1. #1

    Default DeprecationWarning when loading smart --gui

    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

    how do I correct this?

  2. #2

    Default Re: DeprecationWarning when loading smart --gui

    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.

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: DeprecationWarning when loading smart --gui

    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.

  4. #4

    Default Re: DeprecationWarning when loading smart --gui

    interesting. thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •