Skip to content
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

Unable to execute environment for previous versions of python #1696

Open
BradHolmes opened this issue Aug 27, 2024 · 1 comment
Open

Unable to execute environment for previous versions of python #1696

BradHolmes opened this issue Aug 27, 2024 · 1 comment

Comments

@BradHolmes
Copy link

Hello,

Great tool and I'm very excited about explore adoption. I'm trying to get testing to work for the two versions of python that we support. I suspect this is some beginners mistake I am making here, but I am stumped.

We are running on linux machines with both py3.11 and py3.9 in $PATH.

python3.11 is /<PATH TO>/bin/python3.11
python3.9 is /<PATH TO>/bin/python3.9

While these work for py3.11

> hatch env run -e hatch-test.py3.11 python -- --version 
Python 3.11.9

> hatch env run -e hatch-test.py3.11 python -- -c 'import sys; print(sys.executable)'
/<PATH TO>/.local/share/hatch/env/virtual/disco-web/XYKvZxWg/hatch-test.py3.11/bin/python

This fails for py3.9

> hatch env find hatch-test.py3.9
/<PATH TO>/.local/share/hatch/env/virtual/disco-web/XYKvZxWg/hatch-test.py3.9

hatch env run -e hatch-test.py3.9 python -- --version
Environment `hatch-test.py3.9` is incompatible: [Errno 13] Permission denied: '/opt/dell/srvadmin/bin'

And indeed, there is no hatch-test.py3.9 directory in /<PATH TO>/.local/share/hatch/env/virtual/disco-web/XYKvZxWg

Where have I gone wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@BradHolmes and others