hatch icon indicating copy to clipboard operation
hatch copied to clipboard

python version installed via hatch not working

Open ryeleo opened this issue 1 year ago • 1 comments

For some reason, today when I try to use hatch on my new (apple silicon) MacBook, I am seeing that python3.11 seems to 'just not work,' in some ways:

  • hatch shell command seems to hang indefinitely when "checking dependencies"

Strangely, it seems that using "terminal" instead of "VS Code's terminal", hatch shell does appear to finish and maybe kind of work..?

  • hatch run tests quickly returns with return code 247.

Output from using "VS Code Terminal:" (hangs indefinitely during 'checking dependencies')

❯ hatch env create default
Environment `default` already exists
❯ hatch shell
.   Checking dependencies

Output from using "Mac Terminal:"

❯ hatch shell
❯ hatch run tests
❯ $?
zsh: command not found: 247

Probably related, when I try to just use python3.11 as downloaded by hatch, I see zsh: killed python3.11 for some reason...? (This seems like an issue with my shell maybe?)

❯ python3.11
zsh: killed     python3.11
❯ which python3.11
/Users/rleonar7/Library/Application Support/hatch/pythons/3.11/python/bin/python3.11

Thanks!

ryeleo avatar Feb 29 '24 22:02 ryeleo

Sorry about that. Could it be that Hatch is choosing the wrong architecture?

ofek avatar Feb 29 '24 22:02 ofek