-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to build cchardet - osx 10.13.3 with brew python3 #37
Comments
Had another incorrect assert.h on the path, in /usr/local/include |
It fails on macOS 10.14 as well. I did install the uchardet package, but it still doesn't change anything. Strangely, when I do |
Happens when I try to install version 1.3.3. Any idea?
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any chance to fix this? Mojave 10.14 is GA already. |
Same Problem,Hope could be fixed! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have this problem. Can't install goodtables. Is there any plan to fix for Mac OS X users?
OS X 10.14.3 |
@PyYoshi Please, look into this! It's been more than a year! |
I have same problem. Does anyone fix it? |
Same here. Please fix. |
1 similar comment
Same here. Please fix. |
Guys, I have found a way around this. The previous version works. |
|
this combination did the job: $ pip3 list
Package Version
---------- -------
pip 19.3.1
setuptools 42.0.2
wheel 0.33.6
$ python3 -V
Python 3.7.6
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.2
$ pip3 list # <<< result
Package Version
--------------- -------
cchardet 2.1.5
eml-parser 1.11.6
pip 19.3.1
python-dateutil 2.8.1
setuptools 42.0.2
six 1.13.0
wheel 0.33.6 |
Upgrading to Python 3.7.6 from 3.6 solved the issue for me. |
Thanks @agnesmm ! That worked for me |
Failed building wheel for cchardet
Running setup.py clean for cchardet
Failed to build cchardet
Installing collected packages: cchardet, ccxt
Running setup.py install for cchardet ... error
Complete output from command /usr/local/opt/python/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/c6/t3s_sm6906j2lm2rcp2bdmqh0000gp/T/pip-build-ni2b6d85/cchardet/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/c6/t3s_sm6906j2lm2rcp2bdmqh0000gp/T/pip-470mvm70-record/install-record.txt --single-version-externally-managed --compile:
cythonize: ['src/cchardet/_cchardet.pyx']
running install
running build
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.6
creating build/lib.macosx-10.13-x86_64-3.6/cchardet
copying src/cchardet/version.py -> build/lib.macosx-10.13-x86_64-3.6/cchardet
copying src/cchardet/init.py -> build/lib.macosx-10.13-x86_64-3.6/cchardet
running build_ext
building 'cchardet._cchardet' extension
creating build/temp.macosx-10.13-x86_64-3.6
creating build/temp.macosx-10.13-x86_64-3.6/src
creating build/temp.macosx-10.13-x86_64-3.6/src/cchardet
creating build/temp.macosx-10.13-x86_64-3.6/src/ext
creating build/temp.macosx-10.13-x86_64-3.6/src/ext/uchardet
creating build/temp.macosx-10.13-x86_64-3.6/src/ext/uchardet/src
creating build/temp.macosx-10.13-x86_64-3.6/src/ext/uchardet/src/LangModels
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Isrc/ext/uchardet/src -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/cchardet/_cchardet.cpp -o build/temp.macosx-10.13-x86_64-3.6/src/cchardet/_cchardet.o
src/cchardet/_cchardet.cpp:1093:15: error: use of undeclared identifier 'assert'
__pyx_t_1 = PyBytes_GET_SIZE(__pyx_v_msg); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 15, __pyx_L1_error)
^
/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m/bytesobject.h:89:32: note: expanded from macro 'PyBytes_GET_SIZE'
#define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op))
^
src/cchardet/_cchardet.cpp:1116:15: error: use of undeclared identifier 'assert'
__pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_msg); if (unlikely((__pyx_t_2 == ((const char*)NULL)) && PyErr_Occurred())) __PYX_ERR(1, 19, __pyx_L1_error)
^
src/cchardet/_cchardet.cpp:596:56: note: expanded from macro '__Pyx_PyBytes_AsWritableString'
#define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
^
/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m/bytesobject.h:87:32: note: expanded from macro 'PyBytes_AS_STRING'
#define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)),
^
src/cchardet/_cchardet.cpp:1206:57: error: use of undeclared identifier 'assert'
__pyx_t_3 = (__pyx_v_detected_charset != Py_None) && (PyBytes_GET_SIZE(__pyx_v_detected_charset) != 0);
^
/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m/bytesobject.h:89:32: note: expanded from macro 'PyBytes_GET_SIZE'
#define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op))
^
src/cchardet/_cchardet.cpp:1553:15: error: use of undeclared identifier 'assert'
__pyx_t_2 = PyBytes_GET_SIZE(__pyx_v_msg); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(1, 64, __pyx_L1_error)
^
/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m/bytesobject.h:89:32: note: expanded from macro 'PyBytes_GET_SIZE'
#define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op))
^
src/cchardet/_cchardet.cpp:1577:17: error: use of undeclared identifier 'assert'
__pyx_t_3 = __Pyx_PyBytes_AsWritableString(__pyx_v_msg); if (unlikely((__pyx_t_3 == ((const char*)NULL)) && PyErr_Occurred())) __PYX_ERR(1, 66, __pyx_L1_error)
^
src/cchardet/_cchardet.cpp:596:56: note: expanded from macro '__Pyx_PyBytes_AsWritableString'
#define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
^
/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m/bytesobject.h:87:32: note: expanded from macro 'PyBytes_AS_STRING'
#define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)),
^
src/cchardet/_cchardet.cpp:1940:15: error: use of undeclared identifier 'assert'
__pyx_t_2 = PyBytes_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(1, 93, __pyx_L1_error)
^
/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m/bytesobject.h:89:32: note: expanded from macro 'PyBytes_GET_SIZE'
#define PyBytes_GET_SIZE(op) (assert(PyBytes_Check(op)),Py_SIZE(op))
^
src/cchardet/_cchardet.cpp:3817:19: error: use of undeclared identifier 'assert'
*length = PyByteArray_GET_SIZE(o);
^
/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m/bytearrayobject.h:54:37: note: expanded from macro 'PyByteArray_GET_SIZE'
#define PyByteArray_GET_SIZE(self) (assert(PyByteArray_Check(self)), Py_SIZE(self))
^
src/cchardet/_cchardet.cpp:3818:16: error: use of undeclared identifier 'assert'
return PyByteArray_AS_STRING(o);
^
/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m/bytearrayobject.h:52:6: note: expanded from macro 'PyByteArray_AS_STRING'
(assert(PyByteArray_Check(self)),
^
8 errors generated.
error: command 'clang' failed with exit status 1
Command "/usr/local/opt/python/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/c6/t3s_sm6906j2lm2rcp2bdmqh0000gp/T/pip-build-ni2b6d85/cchardet/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/c6/t3s_sm6906j2lm2rcp2bdmqh0000gp/T/pip-470mvm70-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/c6/t3s_sm6906j2lm2rcp2bdmqh0000gp/T/pip-build-ni2b6d85/cchardet/
The text was updated successfully, but these errors were encountered: