osx-snow-leopard

Python.h header file missing on Mac OS X 10.6

Python.h header file missing on Mac OS X 10.6 Question: I’m trying to access a shared C library in Python with ctypes on Mac OS X 10.6.8 with Python 2.7.4. To do this, I need to #include <Python.h> in my C code. If I try to compile a C script that only has that one …

Total answers: 5

Homebrew , python installing

Homebrew , python installing Question: i got an error while trying to install python throught homebrew. brew says what it failed to link python , here is output: Linking /usr/local/Cellar/python/2.7.3… Warning: Could not link python. Unlinking… Error: Could not symlink file: /usr/local/Cellar/python/2.7.3/bin/smtpd2.py /usr/local/bin/smtpd2.py may already exist. /usr/local/bin may not be writable. ls -la on /usr/bin …

Total answers: 2

Python: Unable to Render Tex in Matplotlib

Python: Unable to Render Tex in Matplotlib Question: I recently upgraded my laptop to Snow Leopard, updated TeX to Version 3.1415926 (TeX Live 2011/MacPorts 2011_5), and installed Python 2.7.3. After all these installs, I ran macport selfupdate and macport upgrade outdated. However, now when I try to use TeX in matplotlib, I receive the following: …

Total answers: 5

Python 2.7.1 can't see Twisted

Python 2.7.1 can't see Twisted Question: I have a new MacBook Pro running OS X 10.6.6 / Snow Leopard — which ships with Python 2.6, although I have installed 2.7.1 Unfortunately, this doesn’t seem to see the Twisted install in the 2.6/Extras/lib/python/twisted directory, as I find I’m unable to import modules that I can see …

Total answers: 4

Python: MySQLdb and "Library not loaded: libmysqlclient.16.dylib"

Python: MySQLdb and "Library not loaded: libmysqlclient.16.dylib" Question: The setup… Trying to set up a clean Mac os X 10.6 install to develop python/django and I didn’t remember running into this on 10.5. After installing MySQL from the installer on mysql-5.5.8-osx10.6-x86_64.dmg I ran $ sudo pip install MySQL-python and it seemed to go smoothly (output …

Total answers: 7

How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions

How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions Question: When I run the following from a bash shell on my Mac: $ file /usr/bin/python I get the following three lines: /usr/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/bin/python (for architecture i386): Mach-O executable i386 /usr/bin/python (for architecture …

Total answers: 7

python locale strange error. what's going on here exactly?

python locale strange error. what's going on here exactly? Question: So today I upgraded to bazaar 2.0.2, and I started receiving this message (I’m on snow leopard, btw): bzr: warning: unknown locale: UTF-8 Could not determine what text encoding to use. This error usually means your Python interpreter doesn’t support the locale set by $LANG …

Total answers: 3

ImportError: No module named Foundation

ImportError: No module named Foundation Question: I am trying to follow the instructions for the accepted answer to “PyObjC development with Xcode 3.2”. I will repost them here since I don’t have enough rep to comment on the actual question: Here’s what I have done to get PyObjC working in Snow Leopard: Using the Finder, …

Total answers: 10