Opened 2 years ago

Last modified 2 years ago

#65158 assigned defect

py37-Pillow @9.1.0_0+x11: fails to build

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

Description

When attempting to upgrade this port, it fails while building. I am attaching the log. I am using Mac OS X 10.14.6 on a 2016 macbook pro. Thank you.

Attachments (2)

main.log (20.4 KB) - added by brolcz 2 years ago.
main.2.log (18.5 KB) - added by brolcz 2 years ago.

Download all attachments as: .zip

Change History (8)

Changed 2 years ago by brolcz

Attachment: main.log added

comment:1 Changed 2 years ago by reneeotten (Renee Otten)

Cc: stromnov removed
Owner: set to stromnov
Status: newassigned

this line in your log seems suspicious:

:info:build Error processing line 1 of /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyobjc_core-7.1-py3.7-nspkg.pth:

the latest version of pyobjc is 8.4 in MacPorts.

Are you sure that you update the portstree first and then tried to install? In other words do sudo port selfupdate && sudo port clean --all py37-Pillow && sudo port install py37-Pillow.

Last edited 2 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Port: py-Pillow added; py37-Pillow removed
Summary: py37-Pillow @3.4.3_0: fails to buildpy37-Pillow @9.1.0_0+x11: fails to build

comment:3 Changed 2 years ago by brolcz

Hello, thanks for following up.

I had been, however for some reason it seems not to have wanted to update pyobjc before Pillow. I did the self update and cleaning, manually updated py37-pyobjc, and then tried to update py37-Pillow again. It failed, and I am attaching the log.

Thank you.

Changed 2 years ago by brolcz

Attachment: main.2.log added

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

The log still says:

:info:build AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'

Some searching suggests this may be due to an out of date version of setuptools. What version of py37-setuptools do you have installed? Run:

port installed py37-setuptools

comment:5 Changed 2 years ago by brolcz

Hello, thank you for asking. I have updated py37-setuptools (@62.2.20), cleaned py37-Pillow, and tried it again, however it still failed. I still see the line about the "_finalize_feature_opts" in the log.

comment:6 Changed 2 years ago by reneeotten (Renee Otten)

the py-Pillow port was just updated to its latest upstream version - can you try again (it does build on the buildbots and locally for me)? If it still fails with the same error, try installing the py37-importlib-metadata port (if it's not installed yet) or deactivate that one and try again if you had it installed already.

The reported issue comes from setuptools where it uses a vendored version of py-importlib-metadata - perhaps that's too old and it would resolve the problem. Let us know what you find!

Note: See TracTickets for help on using tickets.