python / python/cpython

Store python interoperates poorly with common dev tools (vscode+mypy, git-bash, cygwin,)

Aberta
#92,140 3 comentários 1 reação 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

OS-windows type-bug
Linguagem predominante
Python
Estrelas
77.2k
Forks
36k
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

I had a brief chat on twitter with @zooba about this.

Bug report

The MS Store version of Python has something about it (sorry for vagueness - don't know the cause) that means existing software fails to invoke it with a "Permission Denied" error. Stackoverflow and other forums are full of these reports, with folk 'fixing' the problem by uninstalling the store version, or mucking with PATH etc to put the 'normal' installed version ahead on the PATH.

I recognize that this may be caused by something outside cpythons direct control, but there seems to be a cluster of programs with issues, and significant developer friction encountered, so if we can do anything to make the experience better (e.g. fund other projects to deal with the consequences of our choice, or ask MS to allow better interop between store and non-store programs or some such), that would be great.

Specific cases I've encountered:

  • git-bash within vscode, running 'python' or 'pip' etc in the terminal window results in that error. Similarly when invoked from with Makefiles and so on.

  • mypy extension for vscode installed; the mypy extension fails to find dmypy installed via the store python's pip.

  • poetry also fails with the MS store python version but a different error (they have a cluster of bugs - https://github.com/python-poetry/poetry/issues/2746 and similar with attempts to state non-existing files) - I think these are a different but perhaps related problem.

Your environment

Windows 11 up to date, Python 3.9 from the store.

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Direção de pesquisa

Comece reproduzindo o comportamento Permission Denied no Windows 11 com o Microsoft Store Python no terminal git-bash do VS Code, incluindo a extensão mypy e as ferramentas instaladas via pip. A issue não menciona arquivos nem testes do CPython; para considerar o trabalho concluído, seria necessário identificar uma melhoria concreta e validada de interoperabilidade ou documentar que é necessária uma coordenação com as ferramentas afetadas ou com a Microsoft.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
bash, git, python, vscode
Domínio
developer-experience, tooling
Tipo de issue
Bug
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.