Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"FileNotFoundError" exception raised on Windows #106

Open
KelSolaar opened this issue Jan 30, 2023 · 0 comments
Open

"FileNotFoundError" exception raised on Windows #106

KelSolaar opened this issue Jan 30, 2023 · 0 comments

Comments

@KelSolaar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant