Error: Installing PyObjus kivy - macos

I'm installing PyObjus: sudo python setup.py install-> logging command:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/pyobjus
copying pyobjus/__init__.py -> build/lib.macosx-10.9-intel-2.7/pyobjus
copying pyobjus/debug.py -> build/lib.macosx-10.9-intel-2.7/pyobjus
copying pyobjus/dylib_manager.py -> build/lib.macosx-10.9-intel-2.7/pyobjus
copying pyobjus/objc_py_types.py -> build/lib.macosx-10.9-intel-2.7/pyobjus
copying pyobjus/protocols.py -> build/lib.macosx-10.9-intel-2.7/pyobjus
copying pyobjus/test.py -> build/lib.macosx-10.9-intel-2.7/pyobjus
running build_ext
cythoning pyobjus/pyobjus.pyx to pyobjus/pyobjus.c
building 'pyobjus' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/pyobjus
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pyobjus/pyobjus.c -o build/temp.macosx-10.9-intel-2.7/pyobjus/pyobjus.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
I'm using Xcode 5.1 on Mac 10.9. You can visit: https://github.com/kivy/pyobjus

Related

F2py errors with a MAC M2

I'm trying to use f2py on a MAC M2. My programs all run successfully on an Intel MAC. The first part of the process to produce C code from my Fortran source which seems to work but I get the following error when the C compilation attempts and fails
clang-14clang-14: : error: error: the clang compiler does not support '-march=core2'the clang compiler does not support '-march=core2'
Followed by this long string
error: Command "x86_64-apple-darwin13.4.0-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/condaTest/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/condaTest/include -arch arm64 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /opt/homebrew/Caskroom/miniforge/base/include -D_FORTIFY_SOURCE=2 -isystem /opt/homebrew/Caskroom/miniforge/base/include -ftrapping-math -DNPY_DISABLE_OPTIMIZATION=1 -I/var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/src.macosx-11.0-arm64-3.9 -I/opt/homebrew/Caskroom/miniforge/base/envs/condaTest/lib/python3.9/site-packages/numpy/core/include -I/opt/homebrew/Caskroom/miniforge/base/envs/condaTest/include/python3.9 -c /var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/src.macosx-11.0-arm64-3.9/fib3module.c -o /var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/src.macosx-11.0-arm64-3.9/fib3module.o -MMD -MF /var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/src.macosx-11.0-arm64-3.9/fib3module.o.d" failed with exit status 1
I would be very grateful for any help with this.

problems installing qpsolvers on mac

I am trying to install qpsolvers on my mac
(https://pypi.org/project/qpsolvers/), but it seems that there is a problem with the compiler. I am running Mojave 10.14.5, with Xcode 11.1.
I use pip install qpsolvers
I have searched everywhere but can't find a solution. Here is the full output. It seems that I need to change the library from libstdc++ to libc++, as the former has been deprecated, but I don't know how. Thank you in advance.
Collecting quadprog (from qpsolvers)
Using cached https://files.pythonhosted.org/packages/5a/f0/d4c8866f5d14dfa1a441439f5ce0d2680844651772129c431e78caadfe10/quadprog-0.1.7.tar.gz
Requirement already satisfied: Cython in /anaconda3/lib/python3.7/site-packages (from quadprog->qpsolvers) (0.29.12)
Building wheels for collected packages: quadprog
Building wheel for quadprog (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: //anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"'; __file__='"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-wheel-9l6gxhyh --python-tag cp37
cwd: /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/
Complete output (36 lines):
running bdist_wheel
running build
running build_ext
cythoning quadprog/quadprog.pyx to quadprog/quadprog.cpp
//anaconda3/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/quadprog/quadprog.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'quadprog' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.7
creating build/temp.macosx-10.7-x86_64-3.7/quadprog
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/quadprog.cpp -o build/temp.macosx-10.7-x86_64-3.7/quadprog/quadprog.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
quadprog/quadprog.cpp:2507:28: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
__pyx_t_3 = ((__pyx_t_11 != __pyx_v_n1) != 0);
~~~~~~~~~~ ^ ~~~~~~~~~~
quadprog/quadprog.cpp:2620:28: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
__pyx_t_3 = ((__pyx_t_11 != __pyx_v_m1) != 0);
~~~~~~~~~~ ^ ~~~~~~~~~~
quadprog/quadprog.cpp:19494:26: warning: code will never be executed [-Wunreachable-code]
module = PyImport_ImportModuleLevelObject(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/aind.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/aind.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/solve.QP.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/solve.QP.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/util.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/util.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/dpofa.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/dpofa.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/daxpy.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/daxpy.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/ddot.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/ddot.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/dscal.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/dscal.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/f2c_lite.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/f2c_lite.o
creating build/lib.macosx-10.7-x86_64-3.7
g++ -bundle -undefined dynamic_lookup -L//anaconda3/lib -arch x86_64 -L//anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/quadprog/quadprog.o build/temp.macosx-10.7-x86_64-3.7/quadprog/aind.o build/temp.macosx-10.7-x86_64-3.7/quadprog/solve.QP.o build/temp.macosx-10.7-x86_64-3.7/quadprog/util.o build/temp.macosx-10.7-x86_64-3.7/quadprog/dpofa.o build/temp.macosx-10.7-x86_64-3.7/quadprog/daxpy.o build/temp.macosx-10.7-x86_64-3.7/quadprog/ddot.o build/temp.macosx-10.7-x86_64-3.7/quadprog/dscal.o build/temp.macosx-10.7-x86_64-3.7/quadprog/f2c_lite.o -o build/lib.macosx-10.7-x86_64-3.7/quadprog.cpython-37m-darwin.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for quadprog
Running setup.py clean for quadprog
Failed to build quadprog
Installing collected packages: quadprog, qpsolvers
Running setup.py install for quadprog ... error
ERROR: Command errored out with exit status 1:
command: //anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"'; __file__='"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-record-f4urqd3x/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/
Complete output (34 lines):
running install
running build
running build_ext
skipping 'quadprog/quadprog.cpp' Cython extension (up-to-date)
building 'quadprog' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.7
creating build/temp.macosx-10.7-x86_64-3.7/quadprog
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/quadprog.cpp -o build/temp.macosx-10.7-x86_64-3.7/quadprog/quadprog.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
quadprog/quadprog.cpp:2507:28: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
__pyx_t_3 = ((__pyx_t_11 != __pyx_v_n1) != 0);
~~~~~~~~~~ ^ ~~~~~~~~~~
quadprog/quadprog.cpp:2620:28: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
__pyx_t_3 = ((__pyx_t_11 != __pyx_v_m1) != 0);
~~~~~~~~~~ ^ ~~~~~~~~~~
quadprog/quadprog.cpp:19494:26: warning: code will never be executed [-Wunreachable-code]
module = PyImport_ImportModuleLevelObject(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/aind.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/aind.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/solve.QP.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/solve.QP.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/util.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/util.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/dpofa.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/dpofa.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/daxpy.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/daxpy.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/ddot.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/ddot.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/dscal.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/dscal.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/f2c_lite.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/f2c_lite.o
creating build/lib.macosx-10.7-x86_64-3.7
g++ -bundle -undefined dynamic_lookup -L//anaconda3/lib -arch x86_64 -L//anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/quadprog/quadprog.o build/temp.macosx-10.7-x86_64-3.7/quadprog/aind.o build/temp.macosx-10.7-x86_64-3.7/quadprog/solve.QP.o build/temp.macosx-10.7-x86_64-3.7/quadprog/util.o build/temp.macosx-10.7-x86_64-3.7/quadprog/dpofa.o build/temp.macosx-10.7-x86_64-3.7/quadprog/daxpy.o build/temp.macosx-10.7-x86_64-3.7/quadprog/ddot.o build/temp.macosx-10.7-x86_64-3.7/quadprog/dscal.o build/temp.macosx-10.7-x86_64-3.7/quadprog/f2c_lite.o -o build/lib.macosx-10.7-x86_64-3.7/quadprog.cpython-37m-darwin.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: //anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"'; __file__='"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-record-f4urqd3x/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.```
Glad to hear the Xcode update worked.
This issue should not happen any more as (1) quadprog has become an optional dependency of qpsolvers and (2) quadprog have fixed the build-from-source only issue on their side by adding wheels.

Installing Cloudera Hue on mac os x mountain lion

So I've installed all the dependencies and when I do make install, the following error comes:
--- Installing core source structure...
--- Installing Desktop core...
INSTALL_DIR=/usr/local/hue make -C desktop install
INSTALL_DIR=/usr/local/hue/desktop/core \
INSTALL_CONF_DIR=/usr/local/hue/desktop/conf \
make -C core install-bdist
--- Building egg for Twisted
running bdist_egg
running egg_info
writing requirements to Twisted.egg-info/requires.txt
writing Twisted.egg-info/PKG-INFO
writing top-level names to Twisted.egg-info/top_level.txt
writing dependency_links to Twisted.egg-info/dependency_links.txt
reading manifest file 'Twisted.egg-info/SOURCES.txt'
writing manifest file 'Twisted.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.8-intel/egg
running install_lib
running build_py
running build_ext
clang -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 -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c conftest.c -o conftest.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang -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 -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c conftest.c -o conftest.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
conftest.c:1:10: fatal error: 'sys/epoll.h' file not found
#include <sys/epoll.h>
^
1 error generated.
building 'twisted.internet.cfsupport' extension
clang -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 -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c twisted/internet/cfsupport/cfsupport.c -o build/temp.macosx-10.8-intel-2.7/twisted/internet/cfsupport/cfsupport.o -w
twisted/internet/cfsupport/cfsupport.c:128:4: error: assignment to cast is illegal, lvalue casts are not supported
((PyObject*)__pyx_v_socket) = Py_None; Py_INCREF(((PyObject*)__pyx_v_socket));
~^~~~~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:134:4: error: assignment to cast is illegal, lvalue casts are not supported
((PyObject *)__pyx_v_socket) = __pyx_1;
~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:829:4: error: assignment to cast is illegal, lvalue casts are not supported
((PyObject*)__pyx_v_obj) = Py_None; Py_INCREF(((PyObject*)__pyx_v_obj));
~^~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:835:4: error: assignment to cast is illegal, lvalue casts are not supported
((PyObject *)__pyx_v_obj) = __pyx_1;
~^~~~~~~~~~~~~~~~~~~~~~~~ ~
4 errors generated.
error: command 'clang' failed with exit status 1
make[2]: *** [/Users/rajat.khandelwal/Downloads/hue-2.4.0/desktop/core/build/Twisted/egg.stamp] Error 1
make[1]: *** [.recursive-install-bdist/core] Error 2
make: *** [install-desktop] Error 2
Also submitted the issue on github: https://github.com/cloudera/hue/issues/31
You need to delete
desktop/core/ext-py/Twisted and retry.
Also Hue 2.5 release (which contains this fix) is around the corner (this Monday/Tuesday).

MySqlDB: llvm-gcc-4.2: error. Even after installing XCode 4.6.3 and storing MySQL include folder in XAMPP

I took the following steps after reading suggestions from http://andhikalegawa.wordpress.com/2012/01/05/installing-mysql-python-on-snow-leopard-using-xampp-mysql/
Downloaded MySQL-python-1.2.4b4 and unzipped
Changed the mysql_config = /Applications/XAMPP/xamppfiles/bin/mysql_config (as I am using XAMPP 1.7.3)
Downloaded mysql-5.1.70-osx10.6-x86 (I could not find 5.1.55 which is the version used in XAMPP) kept the include folder at /Applications/XAMPP/xamppfiles/
I am new to development so, downloaded XCode 4.6.3 with command line tools.
Logically it should have worked I am getting the following error
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.7-intel-2.7/MySQLdb
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.7-intel-2.7
llvm-gcc-4.2 -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 -pipe -Dversion_info=(1,2,4,'beta',4) -D_version_=1.2.4b4 -I/Applications/XAMPP/xamppfiles/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.7-intel-2.7/_mysql.o -mmacosx-version-min=10.4 -arch i386 -arch ppc -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
In file included from _mysql.c:44:
/Applications/XAMPP/xamppfiles/include/my_config.h:1088:1: warning: "HAVE_WCSCOLL" redefined
In file included from /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:8,
from _mysql.c:29:
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:891:1: warning: this is the location of the previous definition
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/6p/8bxdl12d2nq05dmwbmdzttt40000gn/T//cc0v0ehE.out
error: command 'llvm-gcc-4.2' failed with exit status 255
Looks like it's trying to compile universal for PowerPC, which you probably don't have?
error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2'
I would suggest setting the ARCHFLAGS:
shell> rm -Rf build/
shell> ARCHFLAGS="-arch i386" /usr/bin/python setup.py build
Or instead of i386, on 64-bit x86_64. But since you are downloading 32-bit MySQL, might be good to use i386.
Good luck! (Shameless advert: you can always try MySQL Connector/Python)

llvm-gcc missing on Mac OS X Lion: can not install mysql-python

I recently upgraded to Mac OS X 10.7 from 10.6.
I decided to use Python 2.7.
But when I'm trying to install the MySQLdb module to run Django, it fails:
$ sudo pip install MySQL-python
Downloading/unpacking MySQL-python
[…]
Running setup.py install for MySQL-python
building '_mysql' extension
llvm-gcc-4.2 -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 -pipe -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.7-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
unable to execute llvm-gcc-4.2: No such file or directory
error: command 'llvm-gcc-4.2' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='~/Sites/gugsm/build/MySQL-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-AwMuqj-record/install-record.txt:
running install
running build
[…]
building '_mysql' extension
creating build/temp.macosx-10.7-intel-2.7
llvm-gcc-4.2 -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 -pipe -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.7-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
unable to execute llvm-gcc-4.2: No such file or directory
error: command 'llvm-gcc-4.2' failed with exit status 1
----------------------------------------
The reason is that I no longer have llvm-gcc nor gcc binaries.
I tried to upgrade XCode from 3.something to 4.3.2, but it din't help. It comes as a simple app and it doesn't populate /usr/bin with llvm-gcc.
What am I doing wrong?
In Xcode 4.3's Preferences menu, select Downloads and then install Command Line Tools.
making a symlink worked for me:
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

Resources