test_python_executable failure on macOS 12.7.5
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
Test added in #120006 fails when running in my private buildbots.
Since it passed in CI, I suspect this means it was relying on the machine configuration or the presence of the source tree to get through the tests. The CI machine was running macOS-13.6.7-x86_64-i386-64bit-Mach-O and mine is macOS-12.7.5-x86_64-i386-64bit-Mach-O.
Mine also applies some install_name_tool modifications to the binaries and deploys them to a new machine before running tests, but given every other test passes and the failure here is to locate a Python module rather than a native one, I have to assume that's not impactful.
stderr:
---
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x0000000115121600 (most recent call first):
<no Python frame>
---
I'm not in a position to test or debug, unfortunately. I see that Ned proposed to deprecate this variable entirely in #91057, so I wonder how badly we need this test?
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 o teste test_python_executable adicionado em #120006 e reproduza-o no build do macOS 12.7.5 descrito no relatório. Compare seu comportamento com o ambiente de CI do macOS 13.6.7, incluindo as diferenças relatadas de deployment e install_name_tool. Considera-se concluído quando a causa do módulo encodings ausente for identificada e for estabelecido se o teste ou suas suposições precisam ser alterados.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- macos, python
- Domínio
- operating-systems, testing-qa
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 35/100