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

No module named 'pkg_resources' #113

Closed
zacharysyoung opened this issue Mar 13, 2024 · 0 comments · Fixed by #114
Closed

No module named 'pkg_resources' #113

zacharysyoung opened this issue Mar 13, 2024 · 0 comments · Fixed by #114

Comments

@zacharysyoung
Copy link
Contributor

Wanting to try the CMap tutorial I installed latest with pip3 install pdfreader, and tried the first code example:

from pdfreader import PDFDocument

fd = open("input.pdf", "rb")
doc = PDFDocument(fd)

which failed with:

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    from pdfreader import PDFDocument
  File "~/Library/Python/3.12/lib/python/site-packages/pdfreader/__init__.py", line 3, in <module>
    from .viewer import SimplePDFViewer, PageDoesNotExist
  File "~/Library/Python/3.12/lib/python/site-packages/pdfreader/viewer/__init__.py", line 5, in <module>
    from .simple import SimplePDFViewer
  File "~/Library/Python/3.12/lib/python/site-packages/pdfreader/viewer/simple.py", line 6, in <module>
    from ..codecs.decoder import Decoder, default_decoder
  File "~/Library/Python/3.12/lib/python/site-packages/pdfreader/codecs/decoder.py", line 3, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
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

Successfully merging a pull request may close this issue.

1 participant