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

Hatch install bug on Windows when filtering environment variables #1598

Open
Midnighter opened this issue Jul 4, 2024 · 3 comments
Open

Comments

@Midnighter
Copy link
Contributor

When you filter the environment variables, then hatch fails to install into environments on Windows, please see my MRE and in particular the last Actions run. Please note that on Python <=3.10 the error is:

Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python

And on Python >3.10:

OSError: [WinError 10106] The requested service provider could not be loaded or initialized

I did some digging and found this issue python/cpython#120836. My best guess is that when filtering environment variables, hatch does not maintain variables that are critical to subprocess' functioning on Windows as mentioned in the linked issue.

@ofek
Copy link
Sponsor Collaborator

ofek commented Jul 4, 2024

Thanks, feel free to open a PR if you have time!

@Midnighter
Copy link
Contributor Author

I'm afraid I don't have the mindspace to learn hatch internals at the moment.

@ofek
Copy link
Sponsor Collaborator

ofek commented Jul 11, 2024

This will be fixed in the next release.

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

2 participants