What to do if hatch env create hangs?
#655
-
|
I had a case where |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Answering my own question here after a discussion with ofek here. First thing you should do is running in verbose mode, like It might be you have the same problem I had if you see the package installation stopping at a line looking like If you install a package in this way, and have a passphrase protected ssh key, pip would prompt you for a password. Hatch however does not, and will therefore hang. One way of solving this is by storing your ssh passphrase to your local ssh agent with a command like
See https://www.atlassian.com/git/tutorials/git-ssh for a beginner-friendly explanation, and Stack Overflow for related issues. |
Beta Was this translation helpful? Give feedback.
Answering my own question here after a discussion with ofek here.
First thing you should do is running in verbose mode, like
hatch -vvv env createas documented hereIt might be you have the same problem I had if you see the package installation stopping at a line looking like
"PACKAGE_NAME @ git+ssh://git@github.com/REPO/PACKAGE@v1.0"If you install a package in this way, and have a passphrase protected ssh key, pip would prompt you for a password. Hatch however does not, and will therefore hang.
One way of solving this is by storing your ssh passphrase to your local ssh agent with a command like
ssh-add -K /Users/you/.ssh/id_rsaSee https://www.atlassian.com/git/tutorials/git-ssh for a …