Opened 4 years ago

Closed 4 years ago

#62020 closed defect (fixed)

python39 @3.9.1 _ctypes import fails on 10.4 and 10.5

Reported by: fhgwright (Fred Wright) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: tiger, leopard Cc:
Port: python39

Description

The summary says it all:

MacX:~ fw$ python3.9
Python 3.9.1 (default, Jan 10 2021, 00:21:42) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import _ctypes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named '_ctypes'
>>> ^D

This worked @3.9.0, so the workaround is to roll back if possible:

MacX:~ fw$ python3.9
Python 3.9.0 (default, Nov  1 2020, 20:09:43) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import _ctypes
>>> ^D

Observed on 10.4 i386, 10.5 ppc, 10.5 i386, and 10.5 x86_64. Not yet tested on 10.4 ppc.

Change History (6)

comment:1 Changed 4 years ago by mf2k (Frank Schima)

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

comment:2 Changed 4 years ago by kencu (Ken)

has duplicate #62115

comment:3 Changed 4 years ago by fhgwright (Fred Wright)

BTW, this issue is currently moot for 10.4 ppc, since the patch phase fails in that case.

comment:4 Changed 4 years ago by kencu (Ken)

ah, thanks. I haven't updated my 10.4 systems in a while so I'll fix that next time I'm by there.

comment:5 Changed 4 years ago by kencu (Ken)

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

Resolution: fixed
Status: assignedclosed

In 750711ce73239cc24afdd60440310badbf37159b/macports-ports (master):

python39: bug fixes

Apply upstream fix for compilation of ctypes with older gcc. Relax
MACOSX_DEPLOYMENT_TARGET check in distutils.

Fixes: #62020
Fixes: #62450

Note: See TracTickets for help on using tickets.