Public bug reported: Importing nevow into python 2.6 causes the following deprecation errors to be reported:
""" Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3] on linux2 import nevow /usr/lib/python2.6/dist-packages/formless/annotate.py:730: DeprecationWarning: object.__new__() takes no parameters rv = cls = InterfaceClass.__new__(cls, name, bases, dct) /usr/lib/python2.6/dist-packages/nevow/testutil.py:7: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module. from popen2 import Popen3 /usr/lib/python2.6/dist-packages/nevow/guard.py:15: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 """ The computer is running Jaunty 9.04 Ubuntu Desktop (Gnome) AMD-64, upgraded from Intrepid AMD-64 desktop. Synaptic reports that the current installed version of python-nevow is 0.9.31-4ubuntu2 If python 2.5 is used instead of 2.6, no warnings are issued. The second and third deprecation warnings are due to simple changes in the layout of the standard Python library which happened between 2.5 and 2.6. I'm not sure (in detail) what is causing the first warning. Both python 2.5 and 2.6 symlink these files to "/usr/share/pyshared/nevow". That won't work because versions 2.5 and 2.6 need slightly different versions. This will likely be a problem with Python 3.0 as well (I haven't installed or tested it though) as it also uses the new library layout. ** Affects: nevow (Ubuntu) Importance: Undecided Status: New -- Deprecation errors when importing Nevow into Python 2.6 https://bugs.launchpad.net/bugs/369731 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs