This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: _ curses module is not installed
Type: compile error Stage: resolved
Components: Extension Modules Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, simon28li, steven.daprano
Priority: normal Keywords:

Created on 2022-01-13 08:59 by simon28li, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (6)
msg410473 - (view) Author: simon28li (simon28li) Date: 2022-01-13 08:59
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_curses               _curses_panel         _tkinter
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
msg410474 - (view) Author: simon28li (simon28li) Date: 2022-01-13 09:02
My system is Ubuntu 18.04.5
I am sure that nurses dependencies have been installed, and my other systems are normal, including centos, debian, etc.
msg410475 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2022-01-13 09:03
Did you look in setup.py in detect_modules() for the module's name to see what was missing?

How do you know the curses dependencies have been installed? What dependencies did you install?
msg410476 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2022-01-13 09:42
Please post the full output of ``make sharedmods``.
msg410477 - (view) Author: simon28li (simon28li) Date: 2022-01-13 09:44
@christian.heimes
root@ubuntu:/home/all_spack_env/spack_stage/root/spack-stage-python-3.8.8-qznik3f2b7fym4rm52tmsuma5w6jvfqo/spack-src/spack-build# make sharedmods
LD_LIBRARY_PATH=/home/all_spack_env/spack_stage/root/spack-stage-python-3.8.8-qznik3f2b7fym4rm52tmsuma5w6jvfqo/spack-src/spack-build CC='/home/all_spack_env/spack/lib/spack/env/gcc/gcc -pthread' LDSHARED='/home/all_spack_env/spack/lib/spack/env/gcc/gcc -pthread -shared -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/gettext-0.21-pahcwqqpkyw7nnatkmlxoiajupqj63jb/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/readline-8.0-qj3hfcaeej5naqnmbbk25qnit4vg2tsd/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/ncurses-6.2-dq3tdieialpd75zjql4figcxmrexqhtu/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/openssl-1.1.1j-4fz5iri7xivopxihofcabprv7fw3m7oj/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/sqlite-3.34.0-szeguxgzkufj3z2dphuk7yus4dtbbsiv/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/zlib-1.2.11-7ntzewxyqpf6tpe54lsljycqorghrjw6/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/bzip2-1.0.8-abngfcsi54l76apmpbpbbdqn43qne5cx/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/xz-5.2.5-ctwgsoxytykmze3na6ep7mcnsm2lmjh5/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/expat-2.2.10-2cahbh66hrym5n4ksq2qwaejowp3xvm6/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/libffi-3.3-hitdprx44ijjdq2carqkdaao32xw7mb2/lib -L/home/all_spack_env/spack/opt/spack/linux-ubuntu18.04-aarch64/gcc-7.5.0/util-linux-uuid-2.36-3mpwcdafr6bb6vc3pd2asmf554foyake/lib   ' CFLAGS='-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC  '        _TCLTK_INCLUDES='' _TCLTK_LIBS=''       ./python -E /home/all_spack_env/spack_stage/root/spack-stage-python-3.8.8-qznik3f2b7fym4rm52tmsuma5w6jvfqo/spack-src/setup.py   --no-user-cfg build
running build
running build_ext
xxxxxxxxxxxxxx
INFO: Can't locate Tcl/Tk libs and/or headers

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_curses               _curses_panel         _dbm
_gdbm                 _tkinter
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd
time

running build_scripts
copying and adjusting /home/all_spack_env/spack_stage/root/spack-stage-python-3.8.8-qznik3f2b7fym4rm52tmsuma5w6jvfqo/spack-src/Tools/scripts/pydoc3 -> build/scripts-3.8
copying and adjusting /home/all_spack_env/spack_stage/root/spack-stage-python-3.8.8-qznik3f2b7fym4rm52tmsuma5w6jvfqo/spack-src/Tools/scripts/idle3 -> build/scripts-3.8
copying and adjusting /home/all_spack_env/spack_stage/root/spack-stage-python-3.8.8-qznik3f2b7fym4rm52tmsuma5w6jvfqo/spack-src/Tools/scripts/2to3 -> build/scripts-3.8
changing mode of build/scripts-3.8/pydoc3 from 644 to 755
changing mode of build/scripts-3.8/idle3 from 644 to 755
changing mode of build/scripts-3.8/2to3 from 644 to 755
renaming build/scripts-3.8/pydoc3 to build/scripts-3.8/pydoc3.8
renaming build/scripts-3.8/idle3 to build/scripts-3.8/idle3.8
renaming build/scripts-3.8/2to3 to build/scripts-3.8/2to3-3.
msg410478 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2022-01-13 09:48
That does not look like the full output. Did you omit lines?
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90523
2022-01-14 03:02:29simon28lisetstatus: open -> closed
resolution: fixed
stage: resolved
2022-01-13 09:48:29christian.heimessetmessages: + msg410478
2022-01-13 09:44:53simon28lisetmessages: + msg410477
2022-01-13 09:42:17christian.heimessetnosy: + christian.heimes
messages: + msg410476
2022-01-13 09:03:57steven.dapranosetnosy: + steven.daprano
messages: + msg410475
2022-01-13 09:02:12simon28lisetmessages: + msg410474
2022-01-13 08:59:42simon28licreate