setup_env.py triggers unwanted pip install, causing environment conflicts
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia da setup_env.py, leggendo main() e setup_gguf(), quindi riproduci il comportamento con un ambiente virtuale Python personalizzato eseguendo python setup_env.py. Definisci la gestione scelta per l'installazione di gguf-py e verifica che lo script non esegua più un'installazione incondizionata indesiderata, mantenendo al contempo un percorso chiaro per gli utenti che necessitano della dipendenza.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Summary
The setup_env.py script breaks custom or virtual Python environments due to a forced pip installation. In the main() function, the very first step is to call setup_gguf(), which, in turn, runs:
sys.executable -m pip install 3rdparty/llama.cpp/gguf-py
This unconditional install step clashes with existing venv configurations, often causing dependency/version conflicts and making integration with user-managed Python environments difficult or unstable.
Steps to Reproduce
- Set up a Python virtual environment with desired/compatible package versions.
- Run
python setup_env.py. - Observe that the script performs its own install step, overriding or conflicting with the current environment state.
Expected Behavior
The script should respect the user's Python environment and avoid running recursive or unconditional pip installs. It should either:
- Detect when dependencies are missing and prompt the user,
- Allow the user to opt-in or skip the pip install, or
- Provide clear documentation/instructions for manual installation.
Actual Behavior
- The script forces an install of its dependencies, potentially breaking user setups and overwriting targeted package versions.
Additional Context
This behavior makes it hard to use the script in controlled environments (e.g., CI pipelines, docker, or custom venvs) and introduces risk for version incompatibility bugs.
Suggested Fix:
- Make the install step optional, detectable by a command-line flag (e.g.,
--install-gguf) - Or, remove the call from
main()and only document the install as a manual, one-time user step.
- Lingua principale
- C++
- Stelle
- 40.3k
- Fork
- 3.7k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/BitNet
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
i2_s SIGSEGVs at n_ubatch >= 32: BLAS backend dequantises by a row stride 4x the real packed row Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Tutte le issue di microsoft/BitNet
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ros2/message_filters#338 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
subsurface/subsurface#4984 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
google-ai-edge/LiteRT-LM#3739 ·