osx-mavericks

pip installation /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory

pip installation /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory Question: I don’t know what’s the deal but I am stuck following some stackoverflow solutions which gets nowhere. Can you please help me on this? Monas-MacBook-Pro:CS764 mona$ sudo python get-pip.py The directory ‘/Users/mona/Library/Caches/pip/http’ or its parent directory is not owned by the current user and …

Total answers: 22

lxml runtime error: Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

lxml runtime error: Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0 Question: I have a perplexing problem. I have used mac version 10.9, anaconda 3.4.1, python 2.7.6. Developing web application with python-amazon-product-api. i have overcome an obstacle about installing lxml, referencing clang error: unknown argument: '-mno-fused-madd' (python package …

Total answers: 6

"'cc' failed with exit status 1" error when install python library

"'cc' failed with exit status 1" error when install python library Question: Like many others, I’m having issues installing a python library (downloaded as a tar, then extracted). rodolphe-mbp:python-Levenshtein-0.11.2 Rodolphe$ sudo python setup.py install running install running bdist_egg running egg_info writing requirements to python_Levenshtein.egg-info/requires.txt writing python_Levenshtein.egg-info/PKG-INFO writing namespace_packages to python_Levenshtein.egg-info/namespace_packages.txt writing top-level names to python_Levenshtein.egg-info/top_level.txt …

Total answers: 3

clang error: unknown argument: '-mno-fused-madd' (python package installation failure)

clang error: unknown argument: '-mno-fused-madd' (python package installation failure) Question: I get the following error when attempting to install psycopg2 via pip on Mavericks 10.9: clang: error: unknown argument: ‘-mno-fused-madd’ [-Wunused-command-line-argument-hard-error-in-future] Not sure how to proceed and have searched here and elsewhere for this particular error. Any help is much appreciated! Here is the complete …

Total answers: 14

Installing py-ldap on Mac OS X Mavericks (missing sasl.h)

Installing py-ldap on Mac OS X Mavericks (missing sasl.h) Question: I can’t seem to be able to get the python ldap module installed on my OS X Mavericks 10.9.1 machine. Kernel details: uname -a Darwin 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64 I tried what was suggested here: http://projects.skurfer.com/posts/2011/python_ldap_lion/ …

Total answers: 6

`Sudo pip install matplotlib` fails to find freetype headers. [OS X Mavericks / 10.9]

`Sudo pip install matplotlib` fails to find freetype headers. [OS X Mavericks / 10.9] Question: I already have matplotlib-1.2.1 installed as well as numpy-1.8.0. Note – I am using system python with homebrew installed – I have $PYTHONPATH set so Python loads from /Library/Python/x.y/site-packages (where pip installs to). Here is the code for installing matplotlib …

Total answers: 1

Terminal issue with virtualenvwrapper after Mavericks Upgrade

Terminal issue with virtualenvwrapper after Mavericks Upgrade Question: After upgrading to OSX Mavericks, I am getting this message in the terminal: /usr/bin/python: No module named virtualenvwrapper virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is …

Total answers: 9

Can't install PIL after Mac OS X 10.9

Can't install PIL after Mac OS X 10.9 Question: I’ve just updated my Mac OS to 10.9 and I discovered that some (all?) of my Python modules are not here anymore, especially the Image one. So I try to execute sudo pip install pil, but I get this error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/tk.h:78:11: fatal error: ‘X11/Xlib.h’ file not …

Total answers: 28

Python crashing when running two commands (Segmentation Fault: 11)

Python crashing when running two commands (Segmentation Fault: 11) Question: Python interpreter is crashing when I run the second command. I have searched the web for this error and did not found anything. The error is showed below: Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin …

Total answers: 2

Python post osx notification

Python post osx notification Question: Using python I am wanting to post a message to the OSX Notification Center. What library do I need to use? should i write a program in objective-c and then call that program from python? update How do I access the features of notification center for 10.9 such as the …

Total answers: 8