Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`burr` fails to start when the Python path has a space in it

Aperta Adatta ai principianti
#964 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

@enekoreto ci sta già lavorando.

Dal 15/10/2026.

  • #965 di @enekoreto — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Il problema deriva da _run_server in burr/cli/__main__.py, che costruisce il comando uvicorn come un'unica stringa che inizia con sys.executable, e da _command, che divide quella stringa in base agli spazi. Per riprodurlo, crea un venv in una directory con uno spazio nel nome ed esegui burr --no-open. È completato quando il server si avvia da quel percorso e il comando viene passato come lista di argomenti invece di essere diviso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status/needs-triage

burr crashes on startup if the venv's path contains a space. Regression since 0.42.0: with an activated venv it works on 0.40.2 and fails on 0.43.0.

Current behavior

My venv is under ~/Documents/Apache burr/, and burr fails before the server starts.

Stack Traces

FileNotFoundError: [Errno 2] No such file or directory: '/Users/enekoretolazaardanaz/Documents/Apache'

Steps to replicate behavior

  1. mkdir "/tmp/dir with space" && cd "/tmp/dir with space"
  2. python -m venv .venv && .venv/bin/pip install "apache-burr[start]"
  3. .venv/bin/burr --no-open

Library & System Information

apache-burr 0.43.0, Python 3.13, macOS

Expected behavior

The server starts, same as from a path without spaces.

Additional context

_run_server in burr/cli/__main__.py builds the uvicorn command as a string starting with sys.executable, and _command splits it on spaces, so the path gets cut. It started with #745, which switched from plain uvicorn to sys.executable -m uvicorn (so it can work without activating the venv).

I have a fix and can open a PR.

Lingua principale
Python
Stelle
2.6k
Fork
209
Merge medio
5g 21h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/burr

Tutte le issue di apache/burr

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.