python / cpython

The Python programming language
https://www.python.org
Other
63.5k stars 30.42k forks source link

_ curses module is not installed #90523

Closed 62462c96-89da-4518-a5a7-1bc53faede46 closed 2 years ago

62462c96-89da-4518-a5a7-1bc53faede46 commented 2 years ago
BPO 46365
Nosy @tiran, @stevendaprano, @simon28li

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: ```python assignee = None closed_at = created_at = labels = ['extension-modules', 'build', '3.8'] title = '_ curses module is not installed' updated_at = user = 'https://github.com/simon28li' ``` bugs.python.org fields: ```python activity = actor = 'simon28li' assignee = 'none' closed = True closed_date = closer = 'simon28li' components = ['Extension Modules'] creation = creator = 'simon28li' dependencies = [] files = [] hgrepos = [] issue_num = 46365 keywords = [] message_count = 6.0 messages = ['410473', '410474', '410475', '410476', '410477', '410478'] nosy_count = 3.0 nosy_names = ['christian.heimes', 'steven.daprano', 'simon28li'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'compile error' url = 'https://bugs.python.org/issue46365' versions = ['Python 3.8'] ```

62462c96-89da-4518-a5a7-1bc53faede46 commented 2 years ago

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.

62462c96-89da-4518-a5a7-1bc53faede46 commented 2 years ago

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.

stevendaprano commented 2 years ago

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?

tiran commented 2 years ago

Please post the full output of make sharedmods.

62462c96-89da-4518-a5a7-1bc53faede46 commented 2 years ago

@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.

tiran commented 2 years ago

That does not look like the full output. Did you omit lines?