installation of 3.10 and 3.11 failed on LINUX in the script "compileall.py"
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 77.2k
- Forks
- 36k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
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'
>>>
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza con lib/python3.11/compileall.py y el bloque del build-script que lo invoca con -j0 durante la instalación de Linux. Reproduce el build 3.10 o 3.11 informado e investiga por qué los seis subprocesos no terminan. Se considera terminado cuando la instalación se completa sin comentar el bloque y el intérprete resultante puede importar readline sin el error de inicio reportado por falta de una biblioteca.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100