You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using direnv .envrc and .tool-versions files in project directories to automatically create and load Python venv virtual environments. I do this by installing direnv and Python with asdf (via the asdf-direnv and asdf-python plugins). I achieved this by following the venv instructions in this direnv Python wiki page. All of this is done through the fish shell. This has worked well for me, until now...
I just installed asdf, direnv, and my desired Python 3.12.1 on a new Rocky Linux 9.3 system with fish shell. I did the following steps, which are identical to how I set things up on previous systems:
Install my desired Python 3.12.1 with asdf.
Install direnv 2.32.3 with asdf.
Run asdf direnv setup --shell fish --version 2.32.3
Navigate to my project directory in fish shell.
Create .tool-versions with one line: python 3.12.1
Create .envrc with one line: layout python
Run the command direnv allow
In the past, I would see that direnv has automatically created the .direnv sub-directory and set up a Python venv virtual environment that is loaded every time I navigate to this folder in fish shell.
However, this time nothing happened.
Can someone please advise on what's wrong or how to troubleshoot this problem? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I've been using direnv
.envrc
and.tool-versions
files in project directories to automatically create and load Python venv virtual environments. I do this by installing direnv and Python with asdf (via the asdf-direnv and asdf-python plugins). I achieved this by following the venv instructions in this direnv Python wiki page. All of this is done through the fish shell. This has worked well for me, until now...I just installed asdf, direnv, and my desired Python 3.12.1 on a new Rocky Linux 9.3 system with fish shell. I did the following steps, which are identical to how I set things up on previous systems:
asdf direnv setup --shell fish --version 2.32.3
.tool-versions
with one line:python 3.12.1
.envrc
with one line:layout python
direnv allow
In the past, I would see that direnv has automatically created the
.direnv
sub-directory and set up a Python venv virtual environment that is loaded every time I navigate to this folder in fish shell.However, this time nothing happened.
Can someone please advise on what's wrong or how to troubleshoot this problem? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions