python / python/cpython

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

Aperta
#92,140 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

OS-windows type-bug
Lingua principale
Python
Stelle
77.2k
Fork
36k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il comportamento Permission Denied su Windows 11 con Microsoft Store Python nel terminale git-bash di VS Code, inclusi l'estensione mypy e gli strumenti installati tramite pip. L'issue non indica file o test di CPython; per considerare il lavoro completato sarebbe necessario identificare un miglioramento concreto e convalidato dell'interoperabilità oppure documentare che è necessario coordinarsi con gli strumenti interessati o con Microsoft.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
bash, git, python, vscode
Ambito
developer-experience, tooling
Tipo di issue
Bug
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.