Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

"FileNotFoundError" exception raised on Windows

オープン
#106 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
tooling

調査の方向性

install-poetry.py の get_windows_path_var から開始します。これは display_post_message_windows から呼び出されます。管理者権限なしで Windows 上のインストーラーを再現してください。winreg.QueryValueEx から報告された FileNotFoundError を調査します。インストールが完了し、インストール後のメッセージがこの例外なしで表示されれば完了です。

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

説明

Hello,

Trying the installer on Windows (for a user that does not have administrator rights) and the installation fails:

C:\Users\foo-bar>rez-env python -- python C:\Users\foo-bar\Downloads\install-poetry.py
Retrieving Poetry metadata

# Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the `poetry` command to Poetry's bin directory, located at:

C:\Users\foo-bar\AppData\Roaming\Python\Scripts

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.3.2)
Installing Poetry (1.3.2): Creating environment
Installing Poetry (1.3.2): Installing Poetry
Installing Poetry (1.3.2): Creating script
Installing Poetry (1.3.2): Done

Traceback (most recent call last):
  File "C:\Users\foo-bar\Downloads\install-poetry.py", line 940, in <module>
    sys.exit(main())
  File "C:\Users\foo-bar\Downloads\install-poetry.py", line 919, in main
    return installer.run()
  File "C:\Users\foo-bar\Downloads\install-poetry.py", line 557, in run
    self.display_post_message(version)
  File "C:\Users\foo-bar\Downloads\install-poetry.py", line 686, in display_post_message
    return self.display_post_message_windows(version)
  File "C:\Users\foo-bar\Downloads\install-poetry.py", line 694, in display_post_message_windows
    path = self.get_windows_path_var()
  File "C:\Users\foo-bar\Downloads\install-poetry.py", line 718, in get_windows_path_var
    path, _ = winreg.QueryValueEx(key, "PATH")
FileNotFoundError: [WinError 2] The system cannot find the file specified

Cheers,

Thomas

主要言語
Python
スター
255
フォーク
65
平均マージ
2時間 48分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

python-poetry/install.python-poetry.org のほかの issue

python-poetry/install.python-poetry.org の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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