Here's a patch for an SRU to Jaunty. I'll update the bug description in a moment.
I have builds with this patch in my PPA (https://launchpad.net/~broder/+archive/ubuntu-tests), and the patch seems to work on my Jaunty machine. ** Attachment added: "python2.5_2.5.4-1ubuntu4.1.debdiff" http://launchpadlibrarian.net/30833073/python2.5_2.5.4-1ubuntu4.1.debdiff ** Summary changed: - Python2.5.4 curses.initscr() fails + [Jaunty SRU] Python2.5.4 curses.initscr() fails ** Description changed: Binary package hint: python2.5 + + IMPACT: debian/patches/curses_init.dpatch is a packport of a patch from + Python 2.6, but it is incomplete. In curses.initscr(), it uses of _os + and _sys without importing those modules. This causes curses.initscr to + immediately raise an exception. + + DEVELOPMENT: Fixed in Karmic using the same patch to curses_init.dpatch + as is being suggested for Jaunty. + + PATCH: + http://launchpadlibrarian.net/30833073/python2.5_2.5.4-1ubuntu4.1.debdiff + + REPRODUCE: python2.5 -c 'import curses; curses.initscr()' + + REGRESSION: Minimal. This debdiff only affects one module, and it only + adds imports for modules which were previously unimported. + + ============ + Original bug description: --------test.py---------- import curses curses.initscr() --------------------------- $>python2.5 test.py Traceback (most recent call last): File "test.py", line 2, in <module> curses.initscr() File "/usr/lib/python2.5/curses/__init__.py", line 32, in initscr setupterm(term=_os.environ.get("TERM", "unknown"), NameError: global name '_os' is not defined FIX: add import os as _os import sys as _sys to /usr/lib/python2.5/curses/__init__.py ProblemType: Bug Architecture: i386 DistroRelease: Ubuntu 9.04 Package: python2.5 2.5.4-1ubuntu4 [modified: usr/lib/python2.5/curses/__init__.py] ProcEnviron: LC_TIME=sl_SI.utf8 LANGUAGE= PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: python2.5 Uname: Linux 2.6.28-11-generic i686 -- [Jaunty SRU] Python2.5.4 curses.initscr() fails https://bugs.launchpad.net/bugs/369203 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
