Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.99k stars 11.36k forks source link

Trouble on installing pyqwt on Yosemite (10.10.1) #34951

Closed mmehdig closed 9 years ago

mmehdig commented 9 years ago

After OS update to 10.10, I recently moved from macport to homebrew. I uninstalled everything from old port and cleaned messes for homebrew doctor. Now I don't know why I still get this error, when I need to install pyqwt. https://gist.github.com/anonymous/8d8f568f038706ed3e54

patching file configure/configure.py
==> python configure.py --module-install-path=/usr/local/Cellar/pyqwt/5.2.0/lib/python2.7/site-packages/PyQt4/Qwt5 --sip-install-path=/usr/local/Cellar/pyq
==> make install
#include <Python.h>
         ^
1 error generated.
make[1]: *** [sip_iqtcmodule.o] Error 1
make: *** [install] Error 2
tdsmith commented 9 years ago

brew reinstall sip --build-from-source should fix this right now.

Looks like a stale Python include directory:

-I/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 vs. Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/bin/python2.7

sipconfig.py stores the include path:

'py_inc_dir':         '/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/include/python2.7',

Maybe I should write an audit check for these. I kicked off a testing build here we can use to rebottle sip when it finishes: http://bot.brew.sh/job/Homebrew%20Testing/749/

mmehdig commented 9 years ago

Fixed it! Thank you Tim :) :+1: