rules icon indicating copy to clipboard operation
rules copied to clipboard

pip3 install on OSX 10.14.5 Fails with clang error

Open jsciame opened this issue 6 years ago • 2 comments

Trying to install durable rules for python3 using pip3 and getting an error. Fairly new to python.

pip3 install durable-rules --user Collecting durable-rules Downloading https://files.pythonhosted.org/packages/09/8e/9959dde4c319d1d847deb1d3cbf4efd80b3f378adf6b83b5c66aded45618/durable_rules-2.0.11.tar.gz (55kB) |████████████████████████████████| 61kB 3.9MB/s Building wheels for collected packages: durable-rules Building wheel for durable-rules (setup.py) ... error ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/47/m8hq9df51y1_2vxnxzc_38f8hyj22x/T/pip-install-2p0rgj68/durable-rules/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/47/m8hq9df51y1_2vxnxzc_38f8hyj22x/T/pip-wheel-cm_ijcvr --python-tag cp37: ERROR: running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.7 creating build/lib.macosx-10.14-x86_64-3.7/durable copying libpy/durable/lang.py -> build/lib.macosx-10.14-x86_64-3.7/durable copying libpy/durable/init.py -> build/lib.macosx-10.14-x86_64-3.7/durable copying libpy/durable/engine.py -> build/lib.macosx-10.14-x86_64-3.7/durable running build_clib building 'rules_py' library creating build/temp.macosx-10.14-x86_64-3.7 creating build/temp.macosx-10.14-x86_64-3.7/src creating build/temp.macosx-10.14-x86_64-3.7/src/rules clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -std=c99 -D_GNU_SOURCE -c src/rules/json.c -o build/temp.macosx-10.14-x86_64-3.7/src/rules/json.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -std=c99 -D_GNU_SOURCE -c src/rules/rete.c -o build/temp.macosx-10.14-x86_64-3.7/src/rules/rete.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -std=c99 -D_GNU_SOURCE -c src/rules/state.c -o build/temp.macosx-10.14-x86_64-3.7/src/rules/state.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -std=c99 -D_GNU_SOURCE -c src/rules/events.c -o build/temp.macosx-10.14-x86_64-3.7/src/rules/events.o clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -std=c99 -D_GNU_SOURCE -c src/rules/regex.c -o build/temp.macosx-10.14-x86_64-3.7/src/rules/regex.o ar rcs build/temp.macosx-10.14-x86_64-3.7/librules_py.a build/temp.macosx-10.14-x86_64-3.7/src/rules/json.o build/temp.macosx-10.14-x86_64-3.7/src/rules/rete.o build/temp.macosx-10.14-x86_64-3.7/src/rules/state.o build/temp.macosx-10.14-x86_64-3.7/src/rules/events.o build/temp.macosx-10.14-x86_64-3.7/src/rules/regex.o ranlib build/temp.macosx-10.14-x86_64-3.7/librules_py.a running build_ext building 'rules' extension creating build/temp.macosx-10.14-x86_64-3.7/src/rulespy clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -std=c99 -D_GNU_SOURCE -Isrc/rules -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/rulespy/rules.c -o build/temp.macosx-10.14-x86_64-3.7/src/rulespy/rules.o clang -bundle -undefined dynamic_lookup -std=c99 -D_GNU_SOURCE build/temp.macosx-10.14-x86_64-3.7/src/rulespy/rules.o -L/usr/local/lib -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/sqlite/lib -Lbuild/temp.macosx-10.14-x86_64-3.7 -lrules_py -o build/lib.macosx-10.14-x86_64-3.7/rules.cpython-37m-darwin.so duplicate symbol _handleEntries in: build/temp.macosx-10.14-x86_64-3.7/src/rulespy/rules.o build/temp.macosx-10.14-x86_64-3.7/librules_py.a(json.o) duplicate symbol _handleEntries in: build/temp.macosx-10.14-x86_64-3.7/src/rulespy/rules.o build/temp.macosx-10.14-x86_64-3.7/librules_py.a(rete.o) duplicate symbol _handleEntries in: build/temp.macosx-10.14-x86_64-3.7/src/rulespy/rules.o build/temp.macosx-10.14-x86_64-3.7/librules_py.a(state.o) duplicate symbol _handleEntries in: build/temp.macosx-10.14-x86_64-3.7/src/rulespy/rules.o build/temp.macosx-10.14-x86_64-3.7/librules_py.a(events.o) duplicate symbol _handleEntries in: build/temp.macosx-10.14-x86_64-3.7/src/rulespy/rules.o build/temp.macosx-10.14-x86_64-3.7/librules_py.a(regex.o) ld: 5 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'clang' failed with exit status 1

ERROR: Failed building wheel for durable-rules

jsciame avatar Oct 18 '19 12:10 jsciame

@jsciame I also had this issue. I think I've found a solution, which I've raised as PR #280. If you get a chance, could you take a look at the PR and see if you can install using my modified code?

jasonrig avatar Oct 20 '19 04:10 jasonrig

Hi, I have merged and published the PR. Please use version 2.0.12. jasonrig@, thanks for posting the pull request.

jruizgit avatar Oct 28 '19 00:10 jruizgit