Closed tim-jones-001 closed 4 years ago
hey @tim-jones-001 , try running xcode-select --install
again (especially if you recently updated OSX), and then brew reinstall mopidy-spotify
@troyxmccall I'm having the same problem, but your idea did't help. It seems the formula is not searching for the correct Python.h path.
I tried running export C_INCLUDE_PATH=/System/Library/Frameworks/Python.framework/Headers
before doing the installation but is not helping either.
@troyxmccall Thanks for your reply
I had already tried to re-update xcode before, but, as it is already installed, it just gives:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
and, unsurprisingly, reinstalling mopidy-spotify via brew gives the same error:
creating build/temp.macosx-10.12-x86_64-2.7/c
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.12-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
Regards,
Tim
The formulas in this tap have now been updated to run on Python 3. The pyspotify
formula also comes with the latest versions of cffi
and pycparser
. Hopefully, this is no longer a problem.
Have been unable to install monpidy/spotify extension via homebrew as cffi seems not to be able to find the headers.
Have tried various things, suggested (e.g. updating xcode cmdline tools, setting environment variables), but none seem to have made any impact.