`burr` fails to start when the Python path has a space in it
メンテナーはふだん 5 日以内に返信
評価
調査の方向性
障害の原因は _run_server(burr/cli/__main__.py 内)にあります。ここでは sys.executable から始まる一つの文字列として uvicorn のコマンドを組み立てており、さらに _command がその文字列をスペースで分割しています。再現手順: スペースを含むディレクトリの下に venv を作成し、burr --no-open を実行します。サーバーがそのパスから起動し、コマンドが分割されるのではなく引数リストとして渡されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 2.6k
- フォーク
- 203
- 平均マージ
- 5日 21時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/burr のほかの issue
-
status/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 5 日以内に返信
-
Streaming Event type, type hint, should support union type対応中かも @mvanhorn が 191 日前に担当しました。 オープンarea/streaming area/typing good first issue help wanted kind/bug priority/high
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 5 日以内に返信
-
area/storage area/ui help wanted kind/documentation priority/low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 5 日以内に返信
-
Add documentation on how to run the Burr UI server再び着手できるかも @iamSerafinnn が 130 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンarea/ui good first issue kind/documentation priority/low
難易度 2/5 半日 初心者へのやさしさ 68/100
メンテナーはふだん 5 日以内に返信
-
pandas serde overwrites same-shape DataFrames, earlier state loads later data対応中かも @digit50 が 1 日前に担当しました。 オープンstatus/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
メンテナーはふだん 5 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
aws-samples/sample-per-model-bedrock#261 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
pwncollege/dojo#1188 ·
メンテナーはふだん 1 日以内に返信
-
bug launcher packaging
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
tenstorrent/tt-studio#1426 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
python-attrs/cattrs#796 ·
メンテナーはふだん 1 日以内に返信