Skip to content

Fails tests - No module named 'PyPDF2.pdf' #90

@benkohler

Description

@benkohler

Building from a snapshot from March 30, stapler is failing tests. It looks like "from PyPDF2.pdf" should be "from PyPDF2". Are some other distros installing it as PyPDF2.pdf? None that I can see, but maybe.

======================================================================
ERROR: staplelib.tests (unittest.loader._FailedTest)

ImportError: Failed to import test module: staplelib.tests
Traceback (most recent call last):
File "/usr/lib/python3.9/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.9/unittest/loader.py", line 377, in _get_module_from_name
import(name)
File "/var/tmp/portage/dev-python/stapler-1.0.0_p20220330/work/stapler-382f1edc62296e071093a5419811a2fca9d78d93/staplelib/tests.py", line 8, in
from PyPDF2.pdf import PdfFileReader
ModuleNotFoundError: No module named 'PyPDF2.pdf'


Ran 1 test in 0.000s

FAILED (errors=1)

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