Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63436 closed defect (fixed)

py27-pyobjc @ 5.3_5 does not build under MacOS 11.5.2

Reported by: josephsacco Owned by: danchr (Dan Villiom Podlaski Christiansen)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: cooljeanius (Eric Gallager), krissen (Kristian Niemi)
Port: py27-pyobjc

Description

A error occurs when setup.py attempts to determine the SDK level. See below.

-Joseph

Traceback (most recent call last):
  File "setup.py", line 738, in <module>
    **parse_package_metadata()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/__init__.py", line 162, in setup
    return distutils.core.setup(**attrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 601, in run
    CFLAGS.append("-DPyObjC_BUILD_RELEASE=%02d%02d"%( tuple(map(int, get_sdk_level(self.sdk_root).split('.')))))
TypeError: not enough arguments for format string
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py27-pyobjc/py27-pyobjc/work/pyobjc-core-5.3" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build
Exit code: 1

Attachments (1)

main.log (33.3 KB) - added by josephsacco 3 years ago.
main log

Download all attachments as: .zip

Change History (13)

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

Keywords: python2 objc removed
Port: py27-pyobjc added; py27-objc removed

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

Attach the main.log, please.

Changed 3 years ago by josephsacco

Attachment: main.log added

main log

comment:3 Changed 3 years ago by josephsacco

Done...

-Joseph

comment:4 Changed 3 years ago by josephsacco

I forgot to mention that the port does build successfully for python37, python38, and python39:

cavandish:~ jsacco$ port installed | grep pyobjc
  py27-pyobjc @5.3_4 (active)
  py27-pyobjc-cocoa @5.3_1 (active)
  py37-pyobjc @7.3_2 (active)
  py38-pyobjc @7.3_2 (active)
  py39-pyobjc @7.3_2 (active)

-Joseph

comment:5 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:6 Changed 3 years ago by cooljeanius (Eric Gallager)

I'm running into this with py35-pyobjc, too, besides just py27-pyobjc

(edit: this blocks the upgrading of py27-applaunchservices and py35-applaunchservices, btw)

Last edited 3 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:7 Changed 3 years ago by krissen (Kristian Niemi)

Cc: krissen added

comment:8 Changed 3 years ago by cooljeanius (Eric Gallager)

Could someone cc the maintainer (danchr) please?

comment:9 Changed 3 years ago by danchr (Dan Villiom Podlaski Christiansen)

Owner: set to danchr
Status: newaccepted

comment:10 Changed 3 years ago by danchr (Dan Villiom Podlaski Christiansen)

Resolution: fixed
Status: acceptedclosed

In 067e508718e3f848b27b64dcd13f0db9107ca147/macports-ports (master):

py{27,35}-pyobjc: fold into one port, fix build on Big Sur

Upstream dropped support for these versions of Python some time ago,
and hence doesn't do anything to keep them building on later systems.

Fixes: #63436

comment:11 Changed 3 years ago by danchr (Dan Villiom Podlaski Christiansen)

In 20accf447599d53006e1300db0eb336713c956ca/macports-ports (master):

py{27,35}-pyobjc-cocoa: fold into one port, fix build on Big Sur

See: #63436

comment:12 Changed 3 years ago by krissen (Kristian Niemi)

Thank you! Builds successfully here now.

Note: See TracTickets for help on using tickets.