#69497 closed defect (fixed)
pdfposter @0.7.post1: ModuleNotFoundError: No module named 'PyPDF2'
Reported by: | pdvnl | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.1 |
Keywords: | Cc: | ||
Port: | pdfposter |
Description
pdfposter has a dependency for pypdf but not for PyPDF2:
pdfposter --help Traceback (most recent call last): File "/opt/local/bin/pdfposter", line 33, in <module> sys.exit(load_entry_point('pdftools.pdfposter==0.7.post1', 'console_scripts', 'pdfposter')()) File "/opt/local/bin/pdfposter", line 25, in importlib_load_entry_point return next(matches).load() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/metadata/__init__.py", line 171, in load module = import_module(match.group('module')) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pdftools/pdfposter/__init__.py", line 27, in <module> from PyPDF2.pdf import PdfFileWriter, PdfFileReader, PageObject, getRectangle, \ ModuleNotFoundError: No module named 'PyPDF2'
Change History (4)
comment:1 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | pypdf PyPDF2 removed |
---|---|
Summary: | pdfposter cannot find PyPDF2 → pdfposter @0.7.post1: ModuleNotFoundError: No module named 'PyPDF2' |
comment:2 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to ryandesign |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)
Inspired by https://gitlab.com/pdftools/pdfposter/-/merge_requests/7 I have tried to update the port to 0.8.1 and include a patch to make it work with pypdf instead of PyPDF2. Does it work for you? When I tried it, I got PDFs that only contained blank pages. I don't know if that's because I don't know how to use pdfposter or it's broken or these changes are insufficient.
comment:4 Changed 8 months ago by pdvnl
i tested 0.8.1 on several pdfs and the result is always: right number of empty white pages.
Note: See
TracTickets for help on using
tickets.
Our pdfposter port is outdated, however updating to the latest version 0.8.1 doesn't fix it. Here is the upstream bug report: https://gitlab.com/pdftools/pdfposter/-/issues/23