asdf-community / asdf-community/asdf-python

Module search path incorrectly includes system python installation

Đang mở
#147 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
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ả

```
$ asdf install python 3.8.14
python-build 3.8.14 /home/sirianni/.asdf/installs/python/3.8.14
Downloading Python-3.8.14.tar.xz...
-> https://www.python.org/ftp/python/3.8.14/Python-3.8.14.tar.xz
Installing Python-3.8.14...
Installed Python-3.8.14 to /home/sirianni/.asdf/installs/python/3.8.14
```
```
$ /home/sirianni/.asdf/installs/python/3.8.14/bin/python -c 'import sys; print("\n".join(sys.path));'

/home/sirianni/.asdf/installs/python/3.8.14/lib/python38.zip
/home/sirianni/.asdf/installs/python/3.8.14/lib/python3.8
/home/sirianni/.asdf/installs/python/3.8.14/lib/python3.8/lib-dynload
/home/sirianni/.local/lib/python3.8/site-packages
/home/sirianni/.asdf/installs/python/3.8.14/lib/python3.8/site-packages
```

Note that `sys.path` incorrectly includes `/home/sirianni/.local/lib/python3.8/site-packages` which is from the system python installation.

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

Hướng nghiên cứu

Reproduce the reported behavior with the shown asdf install command and Python sys.path check. Trace how the asdf-python plugin configures the installed interpreter and verify the completed change no longer includes /home/sirianni/.local/lib/python3.8/site-packages in sys.path.

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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.