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 test --all
appears not to work on older x86_64 hardware
#1482
Comments
It seems like this may be related to #1258 I also have an older (but totally functional) CPU. I don't mean to be a jerk but it's really unacceptable that a tool should randomly, incomprehensibly fail when used on older hardware... |
Do you know of a way to detect the CPU and correlate that to a specific manufacturing year/line? For now you can set the environment variable as that issue showed or you could install them on your system somehow outside of using Hatch and ensure that they are on PATH. |
It's a "v2" CPU, from 2012, a Core i7-860. It has no AVX instructions, which causes lots of problems with things like TensorFlow (another good reason to consign that horrible software to the dustbin of history). But I really like hatch and want to use it. You can check for the presence of Despite all that I tried to set that environment variable, ran
|
I will try to make a PR... |
The source of my confusion (the "WTF" above where I couldn't for the life of me figure out why it still wasn't working after setting the environment variable is this): Hatch has "global" pythons in Not sure if there's a way that Hatch could be more informative when this happens? Perhaps by giving some more detail of why exactly it "couldn't find" a python version that's clearly there but doesn't work on your CPU? |
This is possible to do. The problem is that the logic is mostly wrapped up in If you can provide a (edit to add: you do not want all of the installed python binaries, only the one corresponding to the requested version, if it exists) I am not sure of the best way to do this though. |
Oh wait, no, it's really easy. Added this to the PR. |
(in eb024e6) |
hatch test --all
doesn't really workhatch test --all
appears not to work on older x86_64 hardware
Fixed by #1484 |
Hatch version:
Python version:
Ran this:
Hmm! It only runs on Python 3.10, but I thought the default matrix had Python 3.8 through 3.12 in it?
What if I try to set the matrix to 3.11 and 3.12:
Now it tells me:
Can I try to create those virtual environments? NO, I cannot!
Have I failed to grasp something in the documentation? This used to work before
hatch test
was a thing...Pardon my language but ... wtf?
The text was updated successfully, but these errors were encountered: