purlcli fails

Open Beginner friendly
#891 2 comments 0 reactions 0 assignees View on GitHub

@Anurag-S1ngh is already working on this.

Since Oct 31, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
cli

Research direction

The failure is clearly in purldb_toolkit/purlcli.py, which imports packagedb.package_managers. Start by checking that module and surrounding purldb_toolkit package layout to confirm the expected package/module path or dependency. Then reproduce with purlcli validate --purl pkg:npm/[email protected]; done is when the command no longer raises ModuleNotFoundError and returns normal validation output.

Written by the indexing model from the issue text.

Description

 pipx install purldb-toolkit
  installed package purldb-toolkit 0.1.0, installed using Python 3.14.6
  These apps are now available
    - purlcli
done! ✨ 🌟 ✨
mvargena@M-FVFL11531WG7 238 > purlcli validate --purl pkg:npm/[email protected]
Traceback (most recent call last):
  File "/Users/mvargena/.local/bin/purlcli", line 3, in <module>
    from purldb_toolkit.purlcli import purlcli
  File "/Users/mvargena/.local/pipx/venvs/purldb-toolkit/lib/python3.14/site-packages/purldb_toolkit/purlcli.py", line 21, in <module>
    from packagedb.package_managers import VERSION_API_CLASSES_BY_PACKAGE_TYPE
ModuleNotFoundError: No module named 'packagedb'
Dominant language
HTML
Stars
70
Forks
76
Avg merge
23m
Merged PRs (30d)
2

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/purldb

All issues in aboutcode-org/purldb

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.