Skip to content

ModuleNotFoundError: No module named 'pkg_resources' when installed with uv #131

Description

@homocomputeris

Isbntools do not work when installed with uv:

uv tool install isbntools
Resolved 2 packages in 1.24s
Prepared 2 packages in 429ms
Installed 2 packages in 11ms
 + isbnlib==3.10.14
 + isbntools==4.3.29
Installed 20 executables: isbn_classify, isbn_conf, isbn_cover, isbn_desc, isbn_doi, isbn_doi2tex, isbn_ean13, isbn_editions, isbn_from_words, isbn_goom, isbn_info, isbn_mask, isbn_meta, isbn_ren, isbn_repl, isbn_stdin_validate, isbn_validate, isbntools, to_isbn10, to_isbn13

~
❯  isbn_meta  978-1449373320
Traceback (most recent call last):
  File "/Users/user/.local/bin/isbn_meta", line 4, in <module>
    from isbntools.bin.meta import main
  File "/Users/user/.local/share/uv/tools/isbntools/lib/python3.13/site-packages/isbntools/bin/meta.py", line 6, in <module>
    from ..app import (
    ...<8 lines>...
    )
  File "/Users/user/.local/share/uv/tools/isbntools/lib/python3.13/site-packages/isbntools/app.py", line 32, in <module>
    from ._initapp import config, registry, CONF_PATH, CACHE_FILE
  File "/Users/user/.local/share/uv/tools/isbntools/lib/python3.13/site-packages/isbntools/_initapp.py", line 110, in <module>
    from isbnlib import registry
  File "/Users/user/.local/share/uv/tools/isbntools/lib/python3.13/site-packages/isbnlib/registry.py", line 6, in <module>
    from pkg_resources import iter_entry_points
ModuleNotFoundError: No module named 'pkg_resources'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions