getdns-python-bindings
getdns-python-bindings copied to clipboard
pip install fails on MacOS 10.14, python 3.7.3
$ pip install getdns
Collecting getdns
Downloading getdns-v1.0.0b1.tar.gz (31 kB)
Using legacy setup.py install for getdns, since package 'wheel' is not installed.
Installing collected packages: getdns
Running setup.py install for getdns ... error
ERROR: Command errored out with exit status 1:
command: /Users/user/venv-cbacc/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c3/nxskqwn170b8jg9cxxnhdj740000gn/T/pip-install-0jj1id8i/getdns/setup.py'"'"'; __file__='"'"'/private/var/folders/c3/nxskqwn170b8jg9cxxnhdj740000gn/T/pip-install-0jj1id8i/getdns/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/c3/nxskqwn170b8jg9cxxnhdj740000gn/T/pip-record-_ezow4b6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/venv-cbacc/include/site/python3.7/getdns
cwd: /private/var/folders/c3/nxskqwn170b8jg9cxxnhdj740000gn/T/pip-install-0jj1id8i/getdns/
Complete output (14 lines):
/Users/user/venv-cbacc/lib/python3.7/site-packages/setuptools/dist.py:475: UserWarning: Normalizing 'v1.0.0b1' to '1.0.0b1'
normalized_version,
running install
running build
running build_ext
building 'getdns' extension
creating build
creating build/temp.macosx-10.14-x86_64-3.7
xcrun -sdk macosx clang -arch x86_64 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/Headers -I/usr/local/include -I/Users/user/venv-cbacc/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/include/python3.7m -c getdns.c -o build/temp.macosx-10.14-x86_64-3.7/getdns.o -g
getdns.c:43:10: fatal error: 'getdns/getdns.h' file not found
#include <getdns/getdns.h>
^~~~~~~~~~~~~~~~~
1 error generated.
error: command 'xcrun' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/user/venv-cbacc/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/c3/nxskqwn170b8jg9cxxnhdj740000gn/T/pip-install-0jj1id8i/getdns/setup.py'"'"'; __file__='"'"'/private/var/folders/c3/nxskqwn170b8jg9cxxnhdj740000gn/T/pip-install-0jj1id8i/getdns/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/c3/nxskqwn170b8jg9cxxnhdj740000gn/T/pip-record-_ezow4b6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user/venv-cbacc/include/site/python3.7/getdns Check the logs for full command output.
$ python --version
Python 3.7.3
Thanks for the bug report. It's been a very long time since I've updated the bindings and it's clearly overdue; I'll try to get on it this week. However, it looks possible that you haven't installed libgetdns in your environment.