installation of 3.10 and 3.11 failed on LINUX in the script "compileall.py"

Aperta
#101,331 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
build-system

Direzione di ricerca

Inizia da lib/python3.11/compileall.py e dal blocco del build-script che lo invoca con -j0 durante l’installazione Linux. Riproduci la build 3.10 o 3.11 segnalata e indaga sul motivo per cui i sei sottoprocessi non terminano. Il lavoro è completato quando l’installazione termina senza commentare il blocco e l’interprete risultante può importare readline senza l’errore di avvio segnalato dovuto a una libreria mancante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

topic-installation type-bug

I often installed python but now (for some unknown reason) it failed on LINUX. The problem is the lib/python3.11/compileall.py with 6 sub-fork never end. I stop after 1h30 execution time, I try 3.10 and 3.11.

comment out the block

#       -PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST) -f \
#               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
#               $(DESTDIR)$(LIBDEST)
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST) -f \
#               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
#               $(DESTDIR)$(LIBDEST)
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST) -f \
#               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
#               $(DESTDIR)$(LIBDEST)
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST)/site-packages -f \
#               -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST)/site-packages -f \
#               -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST)/site-packages -f \
#               -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages

helps to install, but the python seems to be broken with startup error on missing parts like.

exec: [1] ;.../bin/python3.11
Could not find platform dependent libraries <exec_prefix>
Python 3.11.1 (main, Jan 25 2023, 23:48:02) [GCC 11.3.1 20221024 [revision bd0c76a2329e7fe6d6612c2259647bbb67f5866a]] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
  File "/etc/pythonstart", line 7, in <module>
    import readline
ModuleNotFoundError: No module named 'readline'
>>> 
Lingua principale
Python
Stelle
77.2k
Fork
36k
Merge medio
1g 9h
PR unite (30g)
558

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di python/cpython

Tutte le issue di python/cpython

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.