[New-bugs-announce] [issue1203] ctypes doesn't work on Mac with --disable-toolbox-glue

Bill Janssen report at bugs.python.org
Tue Sep 25 18:29:23 CEST 2007

New submission from Bill Janssen:

If you build Python with --disable-toolbox-glue on OS X, the attempt to 
import ctypes fails because it critically depends on "gestalt", one of 
the modules in the toolbox.  It only uses this to check whether the OS 
level is 10.4 or something earlier, and only once, at load.  Might be a 
good idea to substitute a check which doesn't require the toolbox, such 
as looking at platform.release().

components: Library (Lib), Macintosh
messages: 56132
nosy: janssen
severity: normal
status: open
title: ctypes doesn't work on Mac with --disable-toolbox-glue
type: behavior
versions: Python 2.6, Python 3.0

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list