[Bug][QDP] Standalone qdp-python environment does not install qumat, so benchmarks fail to import

Aperta
#1,614 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug docs enhancement question
Search before asking
  • I searched the existing issues and found nothing similar.
Mahout component

QDP (Quantum Data Plane, Rust/CUDA)

Versions / environment

0.7.0, uv environment created inside qdp/qdp-python

What happened + what you expected to happen

Since #1594 the qumat-qdp wheel ships only the compiled _qdp extension,
and the Python package lives in qumat as qumat.qdp. The benchmark scripts
now import qumat.qdp.

qdp/qdp-python/pyproject.toml has
[tool.uv.sources] qumat = { path = "../..", editable = true }, but neither
the dev nor the benchmark dependency group lists qumat. A source entry
only tells uv where to find a dependency. It does not install one. The
documented standalone benchmark workflow therefore fails with:

ModuleNotFoundError: No module named 'qumat'

Expected: uv sync --group benchmark inside qdp/qdp-python gives an
environment where the benchmark scripts import.

Reproduction script
cd qdp/qdp-python
uv sync --group benchmark
uv run python -c "import qumat.qdp"
Issue severity

Medium: it is a significant difficulty but I can work around it.

Anything else

Proposed fix:

  • Add qumat to the dev and benchmark groups so the existing source
    mapping takes effect.
  • Add a CI smoke test that builds the standalone environment and imports
    qumat.qdp and benchmark/api.py.
  • Re-check the commands in qdp/qdp-python/README.md and the benchmark docs
    against the result.
Are you willing to submit a PR?
  • Yes, I am willing to submit a PR!
Lingua principale
Rust
Stelle
2.3k
Fork
1k
Merge medio
2g 20h
PR unite (30g)
7

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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/mahout

Tutte le issue di apache/mahout

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.