python / python/cpython

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

オープン
#92,140 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

OS-windows type-bug
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、mypy 拡張機能と pip でインストールしたツールを含め、VS Code の git-bash ターミナルで Microsoft Store Python を使用して Windows 11 上の Permission Denied の挙動を再現します。issue では CPython のファイルやテストは指定されていません。完了とするには、具体的で検証済みの相互運用性の改善を特定するか、影響を受けるツールまたは Microsoft との調整が必要であることを記録する必要があります。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
bash, git, python, vscode
領域
developer-experience, tooling
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。