https://pantsbuild.org/ logo
#general
Title
# general
p

prehistoric-river-46928

10/24/2022, 6:03 PM
Copy code
Exception: Failed to read link "/Users/davidnino/Develop/workera-dev-workspace/src/backend/Users/davidnino/venvs/c3venv/bin/python": Absolute symlink: "/Users/davidnino/Develop/workera-dev-workspace/src/backend/Users/davidnino/venvs/c3venv/bin/python"
s

sparse-lifeguard-95737

10/24/2022, 6:05 PM
this sort of thing usually happens to me if I create a new virtualenv when I’m already inside of a venv
you end up with one symlink pointing to another symlink pointing to a “real” python installation
and the double-link confuses a bunch of tooling
unfortunately all I can recommend is blowing away all your venvs and starting over - that’s what I usually do when it happens to me 😬
though - at least for pants, you shouldn’t “need” a virtualenv set up. all of that is managed internally by pants itself. (unless you’re using the virtualenv setup to install the right version of python for the pants bootstrap process)
1
p

prehistoric-river-46928

10/24/2022, 6:11 PM
Thank you for your answe! However if I run pants without venvs I get the same error 😕
Is that still normal?
s

sparse-lifeguard-95737

10/24/2022, 6:11 PM
hmmm no, not expected
my guess in that case would be that your
PATH
and/or
PYTHONPATH
are somehow corrupted in your shell session
if you start a fresh shell, does it still happen?
p

prehistoric-river-46928

10/24/2022, 6:13 PM
It does 😕
s

sparse-lifeguard-95737

10/24/2022, 6:13 PM
😬
can you try deleting
~/.cache/pants/setup
?
might be a broken link in there
w

witty-crayon-22786

10/24/2022, 6:15 PM
/Users/davidnino/Develop/workera-dev-workspace/src/backend/Users/davidnino/venvs/c3venv/bin/python
is an odd double-length path… assuming that it is located inside of your repository, can delete the entire
/Users/davidnino/Develop/workera-dev-workspace/src/backend/Users
directory?
alternatively, if you have committed your changes, you can run
git clean -fdx
to clean up uncommitted files… just make sure that you have committed your changes first.
p

prehistoric-river-46928

10/24/2022, 6:21 PM
@sparse-lifeguard-95737 it did restart the whole process showing but it gave the same result at the end 😕
🤯 1
@witty-crayon-22786 I checked in my project and I don’t have that folder
/Users/davidnino/Develop/workera-dev-workspace/src/backend/Users/
does not exist
My bad it did exist! I found it and it seems it’s running
Thank you!!
2 Views