ModuleNotFoundError: No module named 'craft_cli'
Metadata
Current evaluation
Resolved by merged PR #691 (43241f1e), which added PyPI installation instructions; the maintainer verified Charmcraft 1.5 with the documented steps.
Resolution: closed resolved
Reason: PR #691 added PyPI installation guidance, and the maintainer reported that those instructions worked with Charmcraft 1.5. The dependency was already declared in requirements.txt.
Evaluated by: mr-cal-bot
No scores available.
Issue body
The latest commit on `master` fails with
```
Traceback (most recent call last):
File "/home/lourot/Documents/git/canonical/charm-nova-compute-nvidia-vgpu/.tox/build/bin/charmcraft", line 5, in <module>
from charmcraft.main import main
File "/home/lourot/Documents/git/canonical/charm-nova-compute-nvidia-vgpu/.tox/build/lib/python3.9/site-packages/charmcraft/main.py", line 24, in <module>
from craft_cli import emit, EmitterMode, CraftError
ModuleNotFoundError: No module named 'craft_cli'
```
I believe a dependency to https://github.com/canonical/craft-cli is missing
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Resolved by merged PR #691 (43241f1e), which added PyPI installation instructions; the maintainer verified Charmcraft 1.5 with the documented steps. | |
| stealth/space-bunny-alpha | — | closed resolved | Resolved by merged PR #691 (merge commit 43241f1e), which added supported PyPI installation instructions; Charmcraft 1.5 was tested successfully with those steps. | |
| stealth/space-bunny-alpha | — | closed resolved | Closed as resolved by merged PR #691, which added PyPI installation instructions; the maintainer confirmed Charmcraft 1.5 installs correctly with the documented steps. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed. The issue was resolved by updating the README with explicit PyPI installation instructions, fixing the missing craft-cli dependency error and removing the need for manual workarounds. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after maintainer updated the README with explicit PyPI installation instructions to resolve the missing craft-cli dependency error. Verified working in version 1.5. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed after maintainer updated the README with explicit PyPI installation instructions. The missing craft-cli dependency was resolved by clarifying setup steps for version 1.5. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#691
(confidence 98%)
Merged as commit 43241f1e and documented the working PyPI installation process.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #691 Instructions to install it from PyPI. | charmcraft | merged | Merged PR #691 added 14 lines of README instructions for installing Charmcraft from PyPI, addressing #615; merge commit 43241f1e. |