Closed digitronik closed 5 years ago
@ShaktiKShrivastava @digitronik Are you both getting the mmh3 installation error? Weird, I'm on MacOS Mojave too and don't have any problem installing mmh3.
What version of Python are you using?
Hi @seperman - python version 3.6.x the output for reference is,
<clipped for brevity>
building 'mmh3' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.6
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/hostpathcheck/include -arch x86_64 -I/anaconda3/envs/hostpathcheck/include -arch x86_64 -I/anaconda3/envs/hostpathcheck/include/python3.6m -c mmh3module.cpp -o build/temp.macosx-10.7-x86_64-3.6/mmh3module.o
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/hostpathcheck/include -arch x86_64 -I/anaconda3/envs/hostpathcheck/include -arch x86_64 -I/anaconda3/envs/hostpathcheck/include/python3.6m -c MurmurHash3.cpp -o build/temp.macosx-10.7-x86_64-3.6/MurmurHash3.o
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
1 warning generated.
creating build/lib.macosx-10.7-x86_64-3.6
g++ -bundle -undefined dynamic_lookup -L/anaconda3/envs/hostpathcheck/lib -arch x86_64 -L/anaconda3/envs/hostpathcheck/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.6/mmh3module.o build/temp.macosx-10.7-x86_64-3.6/MurmurHash3.o -o build/lib.macosx-10.7-x86_64-3.6/mmh3.cpython-36m-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
----------------------------------------
Failed building wheel for mmh3
Running setup.py clean for mmh3
Failed to build mmh3
Installing collected packages: ordered-set, mmh3, deepdiff
Running setup.py install for mmh3 ... error
Complete output from command /anaconda3/envs/hostpathcheck/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/1c/n8ylds752xs_q2f8ft69nqx40000gn/T/pip-install-2y71jrcm/mmh3/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/1c/n8ylds752xs_q2f8ft69nqx40000gn/T/pip-record-dexumz16/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'mmh3' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.6
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/hostpathcheck/include -arch x86_64 -I/anaconda3/envs/hostpathcheck/include -arch x86_64 -I/anaconda3/envs/hostpathcheck/include/python3.6m -c mmh3module.cpp -o build/temp.macosx-10.7-x86_64-3.6/mmh3module.o
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/hostpathcheck/include -arch x86_64 -I/anaconda3/envs/hostpathcheck/include -arch x86_64 -I/anaconda3/envs/hostpathcheck/include/python3.6m -c MurmurHash3.cpp -o build/temp.macosx-10.7-x86_64-3.6/MurmurHash3.o
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
1 warning generated.
creating build/lib.macosx-10.7-x86_64-3.6
g++ -bundle -undefined dynamic_lookup -L/anaconda3/envs/hostpathcheck/lib -arch x86_64 -L/anaconda3/envs/hostpathcheck/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.6/mmh3module.o build/temp.macosx-10.7-x86_64-3.6/MurmurHash3.o -o build/lib.macosx-10.7-x86_64-3.6/mmh3.cpython-36m-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
The build is also failing on certain other platforms, however the solution suggested by honnibal succeeds.
@seperman I intention satisfied... I just open for release tag. https://github.com/seperman/deepdiff/releases/tag/4.0.0
@ShaktiKShrivastava please create new issue for this If you are still facing problem.
Issue persists, but i think it's the dormant PR of mmh3 to blame.
Updated dependency upon DeepHash package has an open PR which causes pip install deepdiff failure on MacOS Mojave.
https://github.com/hajimes/mmh3/pull/22
The pip install failure started upon this release on March 19th, 2019.