Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdm: error: Script unknown: pack #46

Open
Levelleor opened this issue Nov 13, 2024 · 0 comments
Open

pdm: error: Script unknown: pack #46

Levelleor opened this issue Nov 13, 2024 · 0 comments

Comments

@Levelleor
Copy link

Levelleor commented Nov 13, 2024

Describe the bug
Can get pdm-packer working at all.

pdm plugin add pdm-packer
Installation succeeds.

pdm pack
ERROR: Failed to load plugin pdm-packer=pdm_packer:plugin: module 'importlib' has no attribute 'metadata'
Usage: pdm [-h] [-V] [-c CONFIG] [-v | -q] [--no-cache] [-I] [--pep582 [SHELL]] [-n] ...
pdm: error: Script unknown: pack

To Reproduce
I don't know how reproducible it is. In my case I ran:

  1. pipx install pdm
  2. pdm init, pdm use 3.12
  3. pdm plugin add pdm-packer
  4. pdm pack -h fails.

Alternatively injecting pdm-packer via pipx produces the same error:
pipx inject pdm pdm-packer

Expected behavior
pdm pack invokes pack plugin.

System (please complete the following information):

  • pdm plugin list returns pdm-packer 0.8.1 A PDM plugin that packs your packages into a zipapp
  • PDM version:
    2.19.1
    Python Interpreter:
    /userapps/repositories/pdm-demo/.venv/bin/python (3.12)
    Project Root:
    /userapps/repositories/pdm-demo/
    Local Packages:
  • OS: RHEL9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant