python-poetry / python-poetry/install.python-poetry.org
"FileNotFoundError" exception raised on Windows
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 255
- Forks
- 65
- Ø Merge
- 2 Std. 48 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne in install-poetry.py bei get_windows_path_var, das von display_post_message_windows aufgerufen wird, und reproduziere das Installationsprogramm unter Windows ohne Administratorrechte. Untersuche den gemeldeten FileNotFoundError von winreg.QueryValueEx; fertig ist die Aufgabe, wenn die Installation abgeschlossen wird und die Nachricht nach der Installation ohne diese Ausnahme angezeigt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100