Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install enable fails

Currently trying to install Chaco with the use of pip in my 2.7.3 environment. When I run pip install chaco it fails with this error:

error: Command "llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Developer/Headers/FlatCarbon -I/Users/streetmapp/pythonDev/edx/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/src.macosx-10.6-intel-2.7/kiva/quartz/ATSFont.c -o build/temp.macosx-10.6-intel-2.7/build/src.macosx-10.6-intel-2.7/kiva/quartz/ATSFont.o" failed with exit status 1

Going through the regular output, I came about this:

C compiler: llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3

compile options: '-I/Developer/Headers/FlatCarbon - I/Users/streetmapp/pythonDev/edx/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'

llvm-gcc-4.2: build/src.macosx-10.6-intel-2.7/kiva/quartz/ATSFont.c

build/src.macosx-10.6-intel-2.7/kiva/quartz/ATSFont.c:252:21: error: ATSFont.h: No such file or directory

I noticed that this is failing in regards to the enable package, which is a prereq of Chaco, and running pip install enable puts out the same.

Currently running on OS X Mountain Lion with python 2.7.3 within a virtualenv.

Any help would be appreciated.

like image 697
Tyler Avatar asked Oct 27 '25 02:10

Tyler


2 Answers

The Enable build is failing because it's looking for Carbon libraries that are no longer present in recent versions of the OS X SDK. While this has been addressed, it hasn't yet made it into a released (or tagged version) of the package.

In the meantime the only way to get Enable working on your system will be to clone the git repository https://github.com/enthought/enable.git and run setup.py yourself.

like image 144
John Wiggins Avatar answered Oct 29 '25 04:10

John Wiggins


you can also do

pip install -e git+https://github.com/enthought/enable.git@fd2e69f24dbe07eedfc8f8fbde240c15ae495677#egg=enable-dev

which will install and compile enthought-dev

and you can later remove it with

pip remove enthought-dev
like image 39
milkypostman Avatar answered Oct 29 '25 04:10

milkypostman