Opened 3 years ago

Closed 3 years ago

#64380 closed defect (fixed)

py-pikepdf @4.3.1 missing runtime dependency on packaging

Reported by: 7RKJ2rIlETTFzZwO Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: py-pikepdf

Description

Hi everyone,

Running Macports 2.7.1 on Mac OS Catalina 10.15.7.

I noticed today that img2pdf returns the following error every time I try to run it:

Traceback (most recent call last):
  File "/opt/local/bin/img2pdf", line 33, in <module>
    sys.exit(load_entry_point('img2pdf==0.4.3', 'console_scripts', 'img2pdf')())
  File "/opt/local/bin/img2pdf", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/img2pdf.py", line 49, in <module>
    import pikepdf
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pikepdf/__init__.py", line 19, in <module>
    from ._version import __version__
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pikepdf/_version.py", line 7, in <module>
    from pkg_resources import DistributionNotFound
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3267, in <module>
    def _initialize_master_working_set():
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3241, in _call_aside
    f(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3279, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 573, in _build_master
    ws.require(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'packaging>=20' distribution was not found and is required by pikepdf

Does anyone know what is going on here, and whether there's a fix? Thanks in advance!

Change History (5)

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

comment:3 Changed 3 years ago by jmroot (Joshua Root)

Keywords: img2pdf python pikepdf removed
Port: py-pikepdf added
Resolution: invalid
Status: closedreopened
Summary: img2pdf @0.4.3_0+python39 Cannot be executed, ("The 'packaging>=20' distribution was not found ...")py-pikepdf @4.3.1 missing runtime dependency on packaging

comment:4 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to Schamschula
Status: reopenedassigned

comment:5 Changed 3 years ago by jmroot (Joshua Root)

This appears to be a genuine bug, so I've reverted the description change and reopened.

comment:6 Changed 3 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In 82af5b181dd0cadae19cbb6208f3a84bc9915a53/macports-ports (master):

py-pikepdf: add py-packaging to depends_lib

Closes: #64380

Note: See TracTickets for help on using tickets.