[Pythonmac-SIG] 10.6: platform.mac_ver() broken

Aahz aahz at pythoncraft.com
Thu Jan 14 03:25:39 CET 2010


After a lot of poking around, it appears that platform.mac_ver() is
broken in 10.6 (Snow Leopard) because the gestalt module calls fork(),
which causes a crash with
USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER.  This seems to
only happen with py2app builds; I have not been able to reproduce using
strict command-line testing, and I haven't had time to create a
stripped-down app to test with.

I'd appreciate if someone else could verify before I file a bug.  (It's
possible that the multiprocessing module is involved if a simple test
fails to reproduce -- my AppDelegate starts another process for the main
code that then calls mac_ver() to log the current OS version.)  I'm using
os.uname() instead for now.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair


More information about the Pythonmac-SIG mailing list