[MacPorts] #69497: pdfposter cannot find PyPDF2

MacPorts noreply at macports.org
Thu Mar 14 12:58:43 UTC 2024


#69497: pdfposter cannot find PyPDF2
--------------------------+-----------------------
 Reporter:  pdvnl         |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.1
 Keywords:  pypdf PyPDF2  |       Port:  pdfposter
--------------------------+-----------------------
 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'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69497>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list