asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
656 stars 56 forks source link

system python not work #79

Closed whoizit closed 3 years ago

whoizit commented 3 years ago
~ $ asdf update
HEAD is now at c6145d0 Update version to 0.8.0
Updated asdf to release v0.8.0

~ $ asdf plugin update --all
Updating python...
Already on 'master'
Your branch is up to date with 'origin/master'.

~ $ asdf --version
v0.8.0-c6145d0

~ $ asdf list python
  3.9.0

~ $ asdf current python
python          system          /home/user/.tool-versions

~ $ asdf reshim

~ $ asdf exec python
adsfafd^C

~ $ python
sfasdf^C

~ $ /usr/bin/python
Python 3.9.0 (default, Oct 10 2020, 14:22:51) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

~ $ asdf uninstall python
~ $ asdf plugin remove python
~ $ asdf reshim
~ $ python
bash: /home/user/.asdf/shims/python: No such file or directory
whoizit commented 3 years ago

after asdf uninstall python and launch new shell it works, but again

~ $ asdf install python latest
Downloading python-build...
Cloning into '/home/user/.asdf/plugins/python/pyenv'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 18370 (delta 3), reused 10 (delta 2), pack-reused 18351
Receiving objects: 100% (18370/18370), 3.70 MiB | 5.75 MiB/s, done.
Resolving deltas: 100% (12507/12507), done.
python-build 3.9.0 /home/user/.asdf/installs/python/3.9.0
Downloading Python-3.9.0.tar.xz...
-> https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz
Installing Python-3.9.0...
Installed Python-3.9.0 to /home/user/.asdf/installs/python/3.9.0

Installing poetry python package... SUCCESS
~ $ python
^C
~ $ ^C
~ $ asdf reshim
~ $ python
^C
whoizit commented 3 years ago

I think it was a conflict with the installed and activated pyenv. After deactivating pyenv looks like all works. My mistake, sorry