Opened 8 years ago

Closed 8 years ago

#53365 closed defect (fixed)

py-Pillow: missing dependency py-olefile (unported)

Reported by: Ionic (Mihai Moldovan) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-Pillow

Description

Since py-Pillow was updated to version 4.0.0, it now fails to function.

Example from rst2pdf:

Traceback (most recent call last):
  File "/opt/local/bin/rst2pdf", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_master
    ws.require(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 963, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'olefile' distribution was not found and is required by pillow

The problem at hand is that olefile was bundled with Pillow prior to 4.0.0, but according to the changelog this copy was removed in 4.0.0.

The worst part is that we don't yet have a port for py-olefile, so we'll need to create one.

Change History (3)

comment:1 Changed 8 years ago by Mihai Moldovan <ionic@…>

In 319b7f93/macports-ports:

python/: new port py-olefile.

Needed as a dependency for py-Pillow.

References: #53365.

comment:2 Changed 8 years ago by Ionic (Mihai Moldovan)

Is it okay if I add the new port as a dependency to py-Pillow, or do you want to do it yourself?

Last edited 8 years ago by Ionic (Mihai Moldovan) (previous) (diff)

comment:3 Changed 8 years ago by Andrew Stromnov <stromnov@…>

Resolution: fixed
Status: newclosed

In 9af7b50c/macports-ports:

py-Pillow: add py-olefile dependency

Fixes: #53365

Note: See TracTickets for help on using tickets.