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

#47 DeprecationWarning: the whrandom module is deprecated

open
nobody
None
5
2006-06-15
2006-06-15
Marc Herbert
No

"DeprecationWarning: the whrandom module is deprecated; please use the random module" (python2.4)

Is there any way those do not pollute my logs?

Discussion

  • Scott Grayban
    Scott Grayban
    2007-04-26

    Logged In: YES
    user_id=108233
    Originator: NO

    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

    Logged In: YES
    user_id=108233
    Originator: NO

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