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

Ouverte
#101,331 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
À clarifier
Activité
Calme
Stack technique
python
Domaine
build-system

Piste de recherche

Commencez par lib/python3.11/compileall.py et le bloc du build-script qui l’invoque avec -j0 pendant l’installation Linux. Reproduisez le build 3.10 ou 3.11 signalé et cherchez pourquoi les six sous-processus ne se terminent pas. C’est terminé lorsque l’installation s’achève sans commenter le bloc et que l’interpréteur obtenu peut importer readline sans l’erreur de démarrage signalée concernant une bibliothèque manquante.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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'
>>> 
Langage dominant
Python
Étoiles
77.2k
Forks
36k
Merge moyen
1 j 9 h
PR mergées (30 j)
558

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de python/cpython

Toutes les issues de python/cpython

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.