New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curses library in python 2.4.3 broken #43155
Comments
My python programs using curses library do not work |
Logged In: YES What do you mean by "do not work"? What operating system and |
Logged In: YES Sorry my original post was incomplete. I am running |
Logged In: YES I confirm the problem. Every program using curses library ...
import curses # directory /usr/share/python2.4/curses
import curses # precompiled from
/usr/share/python2.4/curses/__init__.pyc
dlopen("/usr/lib/python2.4/lib-dynload/_curses.so", 2);
import _curses # dynamically loaded from
/usr/lib/python2.4/lib-dynload/_curses.so
import curses.wrapper # precompiled from
/usr/share/python2.4/curses/wrapper.pyc
import curses.panel # precompiled from
/usr/share/python2.4/curses/panel.pyc
dlopen("/usr/lib/python2.4/lib-dynload/_curses_panel.so", 2);
import _curses_panel # dynamically loaded from
/usr/lib/python2.4/lib-dynload/_curses_panel.so
Traceback (most recent call last):
File "ncurses.py", line 273, in ?
curses.wrapper(demo_panels)
File "/usr/share/python2.4/curses/wrapper.py", line 49, in
wrapper
_curses.error: nocbreak() returned ERR I'm running Linux (PLD) with Python 2.4.3 and ncurses 5.5. |
Logged In: YES I can't reproduce any of this on Debian;
|
Logged In: YES Cannot reproduce on Gentoo. All the files in the Demo/curses |
Logged In: YES $ ldd /usr/lib/python2.4/lib-dynload/_curses.so
libncursesw.so.5 => /usr/lib/libncursesw.so.5
(0x7004c000)
libpthread.so.0 => /lib/libpthread.so.0 (0x70080000)
libc.so.6 => /lib/libc.so.6 (0x700e4000)
libdl.so.2 => /lib/libdl.so.2 (0x70228000)
libtinfow.so.5 => /usr/lib/libtinfow.so.5 (0x7023c000)
/lib/ld-linux.so.2 (0x70000000) ... It seems that only programs using panel library cause loewis: I'm not sure I understand second point. What excatly |
Logged In: YES The buildbot boxes don't show this problem. You might need to rebuild a Python with -g and unstripped to |
Logged In: YES More complete backtrace, I hope it will help: |
Logged In: YES atler_: around line 427, you find
Replace that with
(i.e. dropping the ncursesw part), and rebuild. |
Logged In: YES loewis: removing lines refering to ncursesw solves the What is actual problem then? Something with ncursesw or Anyway, Thanks for your help. |
Logged In: YES That's hard to tell. Somebody would have to debug ncurses to |
Logged In: YES Removing 'ncursesw' (there are two references to it in |
Logged In: YES Ah, ok. vnainar, atler_: What terminal had you been using to |
Logged In: YES Well , it is the linux console (in VGA mode ). |
Logged In: YES I couldn't reproduce the problem on a Linux console |
Logged In: YES Half day of debugging and it seems that I found an answer... When curses module is linked against ncursesw it seems that |
Logged In: YES Good spotting! Can everybody please confirm that the |
Logged In: YES /me confirms |
Logged In: YES I have a similar problem on OS/2. When running any script
that uses curses I get:
[U:\dev\Python-2.4.3\PC\os2emx]python test_curses.py
Traceback (most recent call last):
File "test_curses.py", line 242, in ?
curses.wrapper(main)
File "U:/DEV/PYTHON-2.4.3/Lib/curses/wrapper.py", line 49,
in wrapper
curses.nocbreak()
_curses.error: nocbreak() returned ERR If I remove the reference to nocbreak() from wrapper.py, I For example, from the demo folder, all work exceptlife.py & Seems certain curses functions are working correctly, others The patch in this bug does NOT make any difference here. |
Logged In: YES Andrew, could you apply this after the freeze is over? |
Logged In: YES Sure. |
Logged In: YES Committed to the trunk in rev. 51134. |
Logged In: YES Committed to 2.4 branch in rev.51136. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: