`burr` fails to start when the Python path has a space in it
Los mantenedores suelen responder en 4 días
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
El fallo proviene de _run_server en burr/cli/__main__.py, que construye el comando de uvicorn como una sola cadena que empieza con sys.executable, y de _command, que divide esa cadena por los espacios. Para reproducirlo, crea un venv en un directorio con un espacio en el nombre y ejecuta burr --no-open. Está terminado cuando el servidor arranca desde esa ruta y el comando se pasa como una lista de argumentos en lugar de dividirse.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
mkdir "/tmp/dir with space" && cd "/tmp/dir with space"python -m venv .venv && .venv/bin/pip install "apache-burr[start]".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.
- Lenguaje dominante
- Python
- Estrellas
- 2.6k
- Forks
- 212
- Merge medio
- 5 d 14 h
- PR fusionados (30 d)
- 39
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/burr
-
Notebook UI launcher should use the current Python interpreterPosiblemente ocupada @sivakumar-mahalingam la tomó hace 18 días. Abiertostatus/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 4 días
-
astep() passes unprocessed inputs to pre_run_step hooksPosiblemente ocupada @sivakumar-mahalingam la tomó hace 18 días. Abiertostatus/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 4 días
-
Add more instructions for applying ORM migrations for S3 deploymentPosiblemente ocupada @ShryukGrandhi la tomó hace 5 días. Abiertoarea/storage area/ui help wanted kind/documentation priority/low
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
apache/burr#524 · 11 comentarios ·
Los mantenedores suelen responder en 4 días
-
Add documentation on how to run the Burr UI serverPosiblemente ocupada @enu-emu la tomó hace 140 días. Abiertoarea/ui good first issue kind/documentation priority/low
Dificultad 2/5 Medio día Aptitud para principiantes 68/100
apache/burr#272 · 5 comentarios ·
Los mantenedores suelen responder en 4 días
-
`initialize_from(resume_at_next_action=False)` does not go back to the entrypointPosiblemente ocupada @enekoreto la tomó hace 3 días. Abiertostatus/needs-triage
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
Los mantenedores suelen responder en 4 días
Todos los issues de apache/burr
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FinanceFlash/unvibecode#509 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
FAIRmat-NFDI/nomad-distro-dev#161 ·
-
bug v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
modelcontextprotocol/python-sdk#3821 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug severity:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
Log-odds calibration uses upper middle score instead of median for even candidate setsPosiblemente ocupada @flysheep-ai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día