Can't get privy to work #1364
-
|
Hi there! I'm having some trouble getting I was following the docs on how to handle secrets. So as per instructions, I went: uv init
uv add privy
pyinfra -y inventory.py deploy.pyBut when importing Not sure if I'm doing something wrong here or if I'm just too python-iliterate, either way any help would be great! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
When you installed pyinfra with |
Beta Was this translation helpful? Give feedback.
When you installed pyinfra with
uv tool install pyinfra, it runs in an isolated environment separate from your project where privy is installed. Install pyinfra in your project withuv add pyinfra, then runuv run pyinfra -y inventory.py deploy.pyinstead ofpyinfra -y .... Theuv runprefix ensures pyinfra uses your project's environment where privy is available.