I have many problems installing / updating python modules. I'm new to this, so keep that in mind. Now I tried to install / uninstall Xcode and its command line tools. I tried gcc-osx but nothing works when I need to install python modules.
Is something wrong with Python? I also thought about it and downloaded the latest version. I'm on Mac OSX Mavericks, I used Xcode 5 and Xcode 4, it seems nothing works. A problem error: command 'gcc-4.2' failed with exit status 1? Or is it a symptom? Please help me rip my hair off trying to make it work.
EDIT: Ok, I fixed it. I had to completely remove python and reinstall it. Now the modules are compiled !!!
Here is just one example:
pip install Cython --upgrade
Downloading/unpacking Cython from https://pypi.python.org/packages/source/C/Cython/Cython-0.20.tar.gz#md5=104f3bcdeb4969ba426a37376b4c0e7f
Running setup.py egg_info for package Cython
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Utility'
Installing collected packages: Cython
Found existing installation: Cython 0.16
Uninstalling Cython:
Successfully uninstalled Cython
Running setup.py install for Cython
building 'Cython.Plex.Scanners' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c -o build/temp.macosx-10.6-intel-2.7/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.o
In file included from /private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:16:
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:19:20: error: limits.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:22:2: error: #error "Something broken. UCHAR_MAX should be defined in limits.h."
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:26:2: error: #error "Python source code assumes C unsigned char is an 8-bit type."
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:19: error: stdio.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:35:5: error: #error "Python.h requires that stdio.h define NULL."
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:38:20: error: string.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:40:19: error: errno.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:42:20: error: stdlib.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:44:20: error: unistd.h: No such file or directory
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:56:20: error: assert.h: No such file or directory
Many mistakes later
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8151: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8151: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8151: error: ‘PyVarObject’ has no member named ‘ob_size’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c: In function ‘__Pyx_PyNumber_Int’:
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8174: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8174: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8178: error: ‘PyObject’ has no member named ‘ob_refcnt’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8178: warning: left-hand operand of comma expression has no effect
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8179: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8197: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8197: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8203: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8204: error: ‘PyObject’ has no member named ‘ob_refcnt’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8204: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c: At top level:
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8219: error: ‘__Pyx_PyIndex_AsSsize_t’ declared as function returning a function
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8223: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8226: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8244: error: lvalue required as left operand of assignment
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8245: error: ‘PyObject’ has no member named ‘ob_refcnt’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8245: error: ‘PyObject’ has no member named ‘ob_type’
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8246: warning: return makes integer from pointer without a cast
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c: At top level:
/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/Cython/Plex/Scanners.c:8248: error: expected ‘)’ before ‘ival’
lipo: can't figure out the architecture type of: /var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T//ccIW3gB4.out
error: command 'gcc-4.2' failed with exit status 1
----------------------------------------
Rolling back uninstall of Cython
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-CTxWlg-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/cy/7qjrqmz96cdb_4chkp1lcv300000gn/T/pip-build-Mike/Cython
source
share