Commit 39ff9deb573fd0d34a2afdcb216092dccca8086b
Date: Tue Aug 7 22:22:19 2018 +0200
Python: 3.7.0
Pip: 18.0
OS: macOS 10.13.6
Install all dependencies.
Error during dependencies installation.
Installing collected packages: cchardet, tabulator, tableschema, thrift, sasl, thrift-sasl, unidecode, superset
Running setup.py install for cchardet ... error
Complete output from command /Users/brunopacheco/workspace/superset/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_q/6ldlfbyd4hl0qrh0dd9kz2y00000gn/T/pip-install-un3_woar/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 /private/var/folders/_q/6ldlfbyd4hl0qrh0dd9kz2y00000gn/T/pip-record-9e58rhml/install-record.txt --single-version-externally-managed --compile --install-headers /Users/brunopacheco/workspace/superset/venv/include/site/python3.7/cchardet:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/cchardet
copying src/cchardet/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/cchardet
copying src/cchardet/version.py -> build/lib.macosx-10.9-x86_64-3.7/cchardet
running build_ext
building 'cchardet._cchardet' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/src
creating build/temp.macosx-10.9-x86_64-3.7/src/cchardet
creating build/temp.macosx-10.9-x86_64-3.7/src/ext
creating build/temp.macosx-10.9-x86_64-3.7/src/ext/libcharsetdetect
creating build/temp.macosx-10.9-x86_64-3.7/src/ext/libcharsetdetect/mozilla
creating build/temp.macosx-10.9-x86_64-3.7/src/ext/libcharsetdetect/mozilla/extensions
creating build/temp.macosx-10.9-x86_64-3.7/src/ext/libcharsetdetect/mozilla/extensions/universalchardet
creating build/temp.macosx-10.9-x86_64-3.7/src/ext/libcharsetdetect/mozilla/extensions/universalchardet/src
creating build/temp.macosx-10.9-x86_64-3.7/src/ext/libcharsetdetect/mozilla/extensions/universalchardet/src/base
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Isrc/ext/libcharsetdetect/mozilla/extensions/universalchardet/src/base/ -Isrc/ext/libcharsetdetect/nspr-emu/ -Isrc/ext/libcharsetdetect/ -I/Users/brunopacheco/workspace/superset/venv/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/cchardet/_cchardet.cpp -o build/temp.macosx-10.9-x86_64-3.7/src/cchardet/_cchardet.o
src/cchardet/_cchardet.cpp:2351:65: error: too many arguments to function call, expected 3, have 4
return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stddef.h:100:18: note: expanded from macro 'NULL'
# define NULL __null
^~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
cd /path-to-superset-project
pip install -r docs/requirements.txt
pip install -e .
https://github.com/PyYoshi/cChardet/issues/37#issuecomment-412591328
I'm getting a similar error:
Building wheels for collected packages: cchardet
Running setup.py bdist_wheel for cchardet ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/hg/_vt9qsfj1cz3zz_wy46b5w0m0000gp/T/pip-install-owpvtjya/cchardet/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/hg/_vt9qsfj1cz3zz_wy46b5w0m0000gp/T/pip-wheel-qbnvmlbd --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.7
creating build/lib.macosx-10.13-x86_64-3.7/cchardet
copying src/cchardet/version.py -> build/lib.macosx-10.13-x86_64-3.7/cchardet
copying src/cchardet/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/cchardet
running build_ext
building 'cchardet._cchardet' extension
creating build/temp.macosx-10.13-x86_64-3.7
creating build/temp.macosx-10.13-x86_64-3.7/src
creating build/temp.macosx-10.13-x86_64-3.7/src/cchardet
creating build/temp.macosx-10.13-x86_64-3.7/src/ext
creating build/temp.macosx-10.13-x86_64-3.7/src/ext/libcharsetdetect
creating build/temp.macosx-10.13-x86_64-3.7/src/ext/libcharsetdetect/mozilla
creating build/temp.macosx-10.13-x86_64-3.7/src/ext/libcharsetdetect/mozilla/extensions
creating build/temp.macosx-10.13-x86_64-3.7/src/ext/libcharsetdetect/mozilla/extensions/universalchardet
creating build/temp.macosx-10.13-x86_64-3.7/src/ext/libcharsetdetect/mozilla/extensions/universalchardet/src
creating build/temp.macosx-10.13-x86_64-3.7/src/ext/libcharsetdetect/mozilla/extensions/universalchardet/src/base
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Isrc/ext/libcharsetdetect/mozilla/extensions/universalchardet/src/base/ -Isrc/ext/libcharsetdetect/nspr-emu/ -Isrc/ext/libcharsetdetect/ -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/cchardet/_cchardet.cpp -o build/temp.macosx-10.13-x86_64-3.7/src/cchardet/_cchardet.o
src/cchardet/_cchardet.cpp:2351:65: error: too many arguments to function call, expected 3, have 4
return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stddef.h:100:18: note: expanded from macro 'NULL'
# define NULL __null
^~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cchardet
I tried both CC=gcc pip3 install superset and CC=clang pip3 install superset.
Same config, running on OS X 13.6, python 3.7, pip 18.0
Edit: for some reason XCode is unable to build the latest, <2.0.0 version of cchardet. I forced install of v1.0.0 of cchardet and got it to work: pip3 install cchardet==1.0.0
I'm having the same problem, and yes it does work when I downgrade the cchardet.
Once I did that I have this problem s

I have that bug in both my local Mac installation and K8s on AWS using a dockers image, thought?
@Neuliaus your screenshot is unrelated to this issue
@pachecobruno @gyril @mistercrunch I'm seeing this issue in regards to datadotworld==1.6.0->tabulator<=1.4.1->cchardet<2.0 when exploring whether to integrate datadotworld with the examples setup. I'll update this ticket if I resolve it.
See https://github.com/datadotworld/data.world-py/issues/109
this worked for me:
brew install [email protected]
env CC=/usr/local/bin/gcc-4.9
pip install thrift_sasl==0.2.1
Most helpful comment
I'm getting a similar error:
I tried both
CC=gcc pip3 install supersetandCC=clang pip3 install superset.Same config, running on OS X 13.6, python 3.7, pip 18.0
Edit: for some reason XCode is unable to build the latest, <2.0.0 version of cchardet. I forced install of v1.0.0 of cchardet and got it to work:
pip3 install cchardet==1.0.0