asdf-community / asdf-community/asdf-python
bug: asdf-python intercepts mlx_lm.server installation and sets an old python version
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 730
- Fork
- 65
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Provide environment information
I'm pretty confused by how asdf python works. I thought it was just working with python versions, but when I look at all the things in ~/.asdf basically every python command is there from nbdime or mlx_lm.server
I'm confused how I change these version. `asdf set python 3.12` In the new 0.16 does set it properly, but then nbdime then complains since it only has
asdf shimversion nbdime
python 3.12.7
python 3.11.8
So it gives the error
No version is set for command nbdime
Consider adding one of the following versions in your config file at /Users/rich/.asdf/shims/.tool-versions
Do I would have thought that an asdf reship with the python set to another would fix this, but the version seems to never change. How do you now reship these?
To Reproduce
pip install nbdime
asdf shimversion nbdime
python 3.12.7
python 3.11.8
asdf set python 3.12.8
asdf reship
But
asdf shim versions nbdime
Doe snot change it looks like these shims just run "asdf exec nbdime"
Describe the Bug
The reship does not use the latest version of python. So I'm not clear how I fix this, where is the directory of all the python executables controlled by asdf-python, that's probably where to start :-)
Expected Behaviour
Well it would be nice to know how to reship with just a single python command. I've tried
asdf reship nbdime 3.12.8
but this doesn't work obviously
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện hành vi được báo cáo với pip install nbdime, asdf shimversion nbdime, asdf set python 3.12.8 và asdf reship. Đọc phần xử lý shim và các phiên bản Python được chọn của asdf-python, sau đó xác minh xem asdf shimversion nbdime có phản ánh phiên bản đã chọn sau khi tạo lại shim hay không. Được xem là hoàn tất khi hành vi phiên bản được sửa hoặc workflow reship được hỗ trợ được thiết lập rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python, shell
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100