Build error related to `cchardet` (add readme note for Mac)
See original GitHub issueI’m trying to install goodtables
with pip install goodtables
and get this error near the end of the build process:
Failed building wheel for cchardet
Running setup.py clean for cchardet
Failed to build cchardet
Installing collected packages: jsonschema, jsonpointer, unicodecsv, cchardet, sqlalchemy, linear-tsv, click, xlrd, tabulator, rfc3986, tableschema, datapackage, simpleeval, docutils, statistics, click-default-group, goodtables
Running setup.py install for cchardet ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/8h/kkv31w1x2sj2fhzr2bhtrz0h0000gn/T/pip-install-3mcsqjn0/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/8h/kkv31w1x2sj2fhzr2bhtrz0h0000gn/T/pip-record-mxi6e59e/install-record.txt --single-version-externally-managed --compile:
running install
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
clang -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);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
/usr/local/Cellar/llvm/6.0.1/lib/clang/6.0.1/include/stddef.h:100:18: note: expanded from macro 'NULL'
# define NULL __null
^~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/8h/kkv31w1x2sj2fhzr2bhtrz0h0000gn/T/pip-install-3mcsqjn0/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/8h/kkv31w1x2sj2fhzr2bhtrz0h0000gn/T/pip-record-mxi6e59e/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/8h/kkv31w1x2sj2fhzr2bhtrz0h0000gn/T/pip-install-3mcsqjn0/cchardet/
Any clues here? I can provide the entire log if needed.
Cheers!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Failed to build cchardet - osx 10.13.3 with brew python3 #37
Happens when I try to install version 1.3.3. Any idea? pip install cchardet==1.1.3 Collecting cchardet==1.1.3 Using cached https://files.pythonhosted.org/ ...
Read more >Pip install failed for cchardet with error "ModuleNotFoundError
Tried to install cchardet python module but fails with a wierd error ... [end of output] note: This error originates from a subprocess, ......
Read more >fatal error :"python.h" no file or directory? - Ask Ubuntu
I found this related question on Stack Overflow, but the answer didn't work for me. I am very new to GitHub I don't...
Read more >conda-forge - :: Anaconda.org
Package, Latest Version, Doc, Dev, License, linux-64, osx-64, win-64 ... appmap, 1.3.2, MIT, X, Create AppMap files by recording a Python application.
Read more >Error Pages - ReadMe Documentation
You can create custom error pages to display to your users if they try, for example, to access a broken link. Found under...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Had the same issue. Python3.6 though. The solution of installing
macOS_SDK_headers_for_macOS_10.14.pkg
worked like a charmI have MacOS 10.14, new mbp and was trying to get my python environment built, failed to load good tables with error as above. After much searching, including install Xcode I found this set of commands that fixed the problem:
https://github.com/google/jsonnet/issues/573#issuecomment-433201074