Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

whrandom warning --- FIX

Help
2007-04-26
2013-06-04
  • Scott Grayban
    Scott Grayban
    2007-04-26

    Error is:

    DeprecationWarning: the whrandom module is deprecated

    Fix is:

    I reported this 2 years ago and he still has never fixed it which in my book is a lazy person even after I gave the bloody fix for it.

    Edit the file -> /usr/lib/ask/askmail.py or where ever askmail.py is at on your box....
    Find -> import whrandom and change to -> import random

    Python deprecated whrandom since python 2.0 so the guy that is coding this program is using a very very old version of python that he should not be using which is being lazy.

     
    • Scott Grayban
      Scott Grayban
      2007-04-26

      Also make sure you delete the askmail.pyc file as well.