Skip to content

No module name PyPDF2.generic in 2.10.1 #1243

@hannah-seltmann

Description

@hannah-seltmann

Importing fails for version 2.10.1 because of a missing module, but works when I use 2.10.0.

Environment

Which environment were you using when you encountered the problem?

$ python -m platform
Linux-5.18.16-zen1-1-zen-x86_64-with-glibc2.36

$ python -c "import PyPDF2;print(PyPDF2.__version__)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/work/Test/venv/lib/python3.10/site-packages/PyPDF2/__init__.py", line 10, in <module>
    from ._encryption import PasswordType
  File "/home/work/Test/venv/lib/python3.10/site-packages/PyPDF2/_encryption.py", line 36, in <module>
    from PyPDF2.generic import (
ModuleNotFoundError: No module named 'PyPDF2.generic'

Code + PDF

This is a minimal, complete example that shows the issue:

see above

Traceback

This is the complete Traceback I see:

see above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions