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
ncurses/curses on solaris #38134
Comments
solaris 8 [sparc] I am having trouble with curses support. ncurses 5.3 ** Configuration summary for NCURSES 5.3 20021012:
include directory: /usr/local/include/ncurses ** Include-directory is not in a standard location is not picked up by ./configure. checking for ncurses.h... no Python builds fine but ./python ./Lib/test/test_curses.py -u curses
Traceback (most recent call last):
File "./Lib/test/test_curses.py", line 11, in ?
import curses, sys, tempfile
File
"/usr/local/src/python/Python-2.2.2/Lib/curses/__init__.py",
line 15, in ?
from _curses import *
ImportError: No module named _curses I'm doing something wrong but I'm nor sure what. Do I many thanks iain morrison |
Logged In: YES Your compiler may not be looking in /usr/local/ for headers and libraries. You shouldn't install ncurses over Solaris curses; locally-installed software belongs in /usr/local/, period. When you run the configure script, you can supply environment variables to add compiler flags; run configure --help to see a list. I'd suggest something like 'CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure', and see if it picks up ncurses.h then. |
Logged In: YES Did you expect to use ncurses, or did you mean to use curses? What is the ncurses portion of running setup.py? To eliminate setup.py problems, you can always edit |
Logged In: YES Using setenv CPPFLAGS -I/usr/local/include/ncurses and running ./configure I get checking for ncurses.h... yes However the Makefile is identival to that produced without CPPFLAGS 178 tests OK. ./python ./Lib/test/test_curses.py -u curses
Traceback (most recent call last):
File "./Lib/test/test_curses.py", line 11, in ?
import curses, sys, tempfile
File "/usr/local/src/python/Python-2.2.2-test/Lib/curses/__init__.py",
line 15, in ?
from _curses import *
ImportError: No module named _curses diff configure-output ../Python-2.2.2/configure-output
diff Makefile ../Python-2.2.2/Makefile Anything else I can try iain |
Logged In: YES What is the ncurses portion of running setup.py? |
Logged In: YES No response to query in six months; closing the bug. |
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: