Skip to content Skip to sidebar Skip to footer

Mac Python "installation Step Failed: Run Postflight Script"

I'm new to Python development, and in trying to get Aptana Studio Setup, I seemed to have messed up my Python install. So I followed the uninstall MacPython instructions here http

Solution 1:

OK, based on your information about /usr/bin/python failing (I was afraid that might be the case!), it appears there are problems with your Apple-supplied system Python. Perhaps you mistakenly deleted something in /System/Library/Frameworks/Python.frameworks, which is where the Apple-supplied Python resides and should never be modified or deleted, instead of /Library/Frameworks/Python.frameworks. Or perhaps you earlier followed the unfortunately misguided advice on the Python wiki here to create a symlink from /Library/Frameworks/Python.frameworks to the system Python framework which can result in an inadvertent corruption of the system Python when installing a new version of Python. The BOMFatalError message in the installer log is normal and can be ignored. Likewise, it is not a problem in itself that the Fix system Python package of the installer fails since it only applies to OS X 10.3. However, it is failing because the system Python is failing and that is a problem.

If you have a Time Machine backup or other backup of your System files, you may be able to properly (and carefully!) restore /System/Library/Python.frameworks/ from a backup. It is difficult but not impossible to extract the necessary files from a Snow Leopard OS X Installer DVD. If you have a similar machine running the same version of OS X, you might be able to copy the files from there. Or do a vanilla install of 10.6 to an unused disk partition. A simpler but imperfect workaround is to just create a symlink from /usr/bin/python and friends to the python.org Python and just wait until you reinstall Snow Leopard or upgrade to Lion (it might be safest to remove that symlink before upgrading). So something like this:

sudo bash
cd /usr/bin
mv python python-DISABLED
ln -s /usr/local/bin/python python
exit

Solution 2:

You can develop using more recent Python, as long as you're not using post 2.5 language constructs or packages. (I'm using 2.6.5.)

Official support for Python 2.7 on the way.

Post a Comment for "Mac Python "installation Step Failed: Run Postflight Script""