[Bug 363877] [NEW] Deprecation Warnings when running under Python 2.6

François Marier francois at debian.org
Sun Apr 19 21:26:59 UTC 2009


Public bug reported:

Binary package hint: duplicity

This is what I get everytime I run duplicity:

/var/lib/python-support/python2.6/boto/utils.py:42: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/var/lib/python-support/python2.6/boto/utils.py:45: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import popen2, os, StringIO
/var/lib/python-support/python2.6/boto/s3/key.py:23: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/var/lib/python-support/python2.6/boto/utils.py:42: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/var/lib/python-support/python2.6/boto/utils.py:45: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import popen2, os, StringIO
/var/lib/python-support/python2.6/boto/s3/key.py:23: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/var/lib/python-support/python2.6/boto/utils.py:42: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/var/lib/python-support/python2.6/boto/utils.py:45: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.
  import popen2, os, StringIO
/var/lib/python-support/python2.6/boto/s3/key.py:23: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5

I run duplicity from a cron job, so this is making it very hard for me
to monitor whether or not backup worked. Is there an easy way to filter
out or disable these DeprecationWarnings?

I tried "duplicity ... | grep -v "DeprecationWarning" 2>&1" but that
didn't work...

** Affects: duplicity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Deprecation Warnings when running under Python 2.6
https://bugs.launchpad.net/bugs/363877
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list