[Pythonmac-SIG] Slow python initialization

Bill Spotz wfspotz at sandia.gov
Tue Dec 13 18:38:11 CET 2005

I recently upgraded my dual-processor G5 from Mac OS X 10.3 to 10.4.   
Ever since, the python initialization has been extremely slow, maybe  
10 seconds or so between issuing the "python" command and getting a  
prompt.  I run some automated tests on this machine, and the delays  
can add up, dwarfing the actual execution time.

The problem persists whether I:
     * Run python 2.4.2 (/sw/bin/python, compiled w/GCC 4.0.0) or  
2.3.5 (/usr/bin/python, compiled w/GCC 3.3)
     * Run with or without a PYTHONSTARTUP file
     * Run under bash 3.00.0(1) (/sw/bin/bash) or 2.05b.0(1) (/bin/bash)

Has anyone else seen this behavior?  Or have a solution?  (Similarly,  
although less related to this mailing list, when I try to use tab- 
completion under bash, I get a long delay as well.)


** Bill Spotz                                              **
** Sandia National Laboratories  Voice: (505)845-0170      **
** P.O. Box 5800                 Fax:   (505)284-5451      **
** Albuquerque, NM 87185-0316    Email: wfspotz at sandia.gov **

More information about the Pythonmac-SIG mailing list