Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm working on getting Python installed on my Mac 10.5.8 and I have been having a heck of a lot of trouble.

The standard downloads at Python.org do not show a compatible version.

  • They have 10.3 - 10.6 for 32 bit
  • They have 10.6 - 10.7 for 64 bit

I tried downloading and installing the 32 bit version for 10.5, yet when launching the IDLE, it "Unexpectedly" quits.

I've been told that Python comes pre-installed on Mac OSX computers, but when running "python" in the terminal I receive this error:

william-johnsons-macbook:~ Will$ python
dyld: unknown required load command 0x80000022
Trace/BPT trap
william-johnsons-macbook:~ Will$ 

If anyone has any advice or other references not on the python.org site, I would really appreciate it.

share|improve this question

migrated from stackoverflow.com Sep 17 '11 at 22:29

This question came from our site for professional and enthusiast programmers.

1  
The binaries on python.org aren't really the best way to install python on OS X. You should really be using homebrew anyway: mxcl.github.com/homebrew –  Aaron Gallagher Sep 17 '11 at 16:52
    
@AaronGallagher can you give any reason for that? the Apple python maillist suggests the python one over packages + homebrew should end up the same as the python.org one –  Mark Sep 24 '11 at 19:21
    
@user950280 - if you get that at the prompt you have a broken install - what does which python show or /usr/bin/python –  Mark Sep 24 '11 at 19:22
add comment

3 Answers 3

It's been a long time since I had to do this for 10.5.8, but I followed these instructions: http://web.archive.org/web/20090508090926/http://blog.captnswing.net/2009/04/19/python-mod_wsgi-64bit-mac-os-x-105/ (note that the original website is gone, hence the WayBack link)

Here's a post I made on the topic back when I was trying: http://buffalothedestroyer.blogspot.com/2009/04/python-64-bit.html

But, do you need 64 bit python on 10.5.8? Frankly, I don't think it's worth the pain - I'd pay a few bucks and upgrade to 10.6 or 10.7.

If it's just a problem with 32-bit python, which python are you using? (i.e., what does which python return?)

share|improve this answer
add comment

Struggling with the same thing. Stupidly installed the 10.6 version.

To recover I moved the library to /Library/Frameworks/Python.framework/Versions/2.7BROKEN and tried to install the 10.5 32-bit version. So now I have a

/Library/Frameworks/Python.framework/Versions/2.7BROKEN (64 bit) and a /Library/Frameworks/Python.framework/Versions/2.7 (32 bit)

but I am still getting

dyld: unknown required load command 0x80000022

So the move is not a sufficient uninstall. I have something lurking somewhere from the previous install and I don't know where it is or what to do about it.

share|improve this answer
add comment

What's about python from MacPorts? it is the same as from Python.org, but for your architecture and you can manage libs more easily.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.