asdf-community / asdf-community/asdf-python
Module search path incorrectly includes system python installation
- Vorherrschende Sprache
- Shell
- Sterne
- 729
- Forks
- 65
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
```
$ 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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, shell
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100