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

python -V loads indefinitely after setting python system in ~/.tool-versions globally #186

Open
henriquesebastiao opened this issue Apr 23, 2024 · 2 comments

Comments

@henriquesebastiao
Copy link

Provide environment information

OS:
Linux arch 6.8.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 x86_64 GNU/Linux

SHELL:
zsh 5.9 (x86_64-pc-linux-gnu)

BASH VERSION:
5.2.26(1)-release

ASDF VERSION:
v0.14.0-ccdd47d

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/hick/.asdf
ASDF_DIR=/home/hick/.asdf
ASDF_CONFIG_FILE=/home/hick/.asdfrc

ASDF INSTALLED PLUGINS:
python                       https://github.com/danhper/asdf-python.git master 5e277e2

To Reproduce

After installing asdf with the steps described on the official website:

  • git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0

Configure the shell:

  • source "$HOME/.asdf/asdf.sh"
  • echo "source ~/.asdf/asdf.sh" >> ~/.zshrc

Install the python plugin:

  • asdf plugin add python

Configure to use the system version globally, as described on the official website:

  • asdf global python system

After making these settings, running python -V keeps loading indefinitely:

Gravacao.de.tela.de.2024-04-23.07-15-53.webm

Describe the Bug

After setting the python version to system in ~/.tool-versions, running python loads indefinitely.

Expected Behaviour

After setting the python version to system in ~/.tool-versions, after running python -V without a local version having been configured with asdf local python <version> it should return the python version in /bin/python.

@derethil
Copy link

Have you found a workaround for this?

I don't think this is an asdf-python issue as I see the same behavior with Pyenv after setting it up the same way. But this is the only mention of the problem I can find anywhere and it's really impeding my work.

@henriquesebastiao
Copy link
Author

Você encontrou uma solução alternativa para isso?

Eu não acho que isso seja um asdf-pythonproblema, pois vejo o mesmo comportamento com Pyenv depois de configurá-lo da mesma maneira. Mas esta é a única menção ao problema que encontro em qualquer lugar e está realmente atrapalhando meu trabalho.

I couldn't find any timely solution for using asdf to manage my python versions. I have been using pyenv ever since.

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

No branches or pull requests

2 participants