facebookarchive / huxley

A testing system for catching visual regressions in Web applications.
Apache License 2.0
4.07k stars 286 forks source link

`pip install huxley` fails on mac #53

Open kmulvey opened 10 years ago

kmulvey commented 10 years ago

System: Darwin 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64

full install log: http://fpaste.org/85382/

mvpc commented 10 years ago

having the same problem, the error looks like this:

cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -IlibImaging -I/Users/[...]/.virtualenvs/[...]/include -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _imaging.c -o build/temp.macosx-10.9-intel-2.6/_imaging.o

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

It appears to be related to this: http://kaspermunck.github.io/2014/03/fixing-clang-error/. I haven't tried the fix from the article yet.

saranrapjs commented 10 years ago

The following (from that article) works:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install huxley

In addition, I had to symlink the freetype library:

 ln -s /usr/local/include/freetype2 /usr/local/include/freetype
kevin-miles commented 10 years ago
ln -s /usr/local/include/freetype2 /usr/local/include/freetype

+1 symlinking the freetype library fixed the problem for me

isaacchansky commented 10 years ago

Just symlinking worked for me as well. :+1: thanks @saranrapjs

gunesmes commented 10 years ago

ln -s /usr/local/include/freetype2 /usr/local/include/freetype then sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install huxley

fixed my issue.