python-poetry / python-poetry/install.python-poetry.org
"FileNotFoundError" exception raised on Windows
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 255
- Forks
- 65
- Merge medio
- 2 h 48 min
- PR fusionados (30 d)
- 1
Descripción
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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza en install-poetry.py, en get_windows_path_var, que es llamada por display_post_message_windows, y reproduce el instalador en Windows sin derechos de administrador. Investiga el FileNotFoundError informado de winreg.QueryValueEx; se considera terminado cuando la instalación se completa y el mensaje posterior a la instalación se muestra sin esta excepción.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100