installation of 3.10 and 3.11 failed on LINUX in the script "compileall.py"
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Python
- Estrelas
- 77.2k
- Forks
- 36k
- Métricas de merge de PRs
- Métricas de PR pendentes
Descrição
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'
>>>
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece com lib/python3.11/compileall.py e o bloco do build-script que o invoca com -j0 durante a instalação do Linux. Reproduza o build 3.10 ou 3.11 relatado e investigue por que os seis subprocessos não terminam. Está concluído quando a instalação termina sem comentar o bloco e o interpretador resultante consegue importar readline sem o erro de inicialização relatado por falta de biblioteca.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- build-system
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Pouca atividade
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 35/100