Skip to content

Instantly share code, notes, and snippets.

@vlovich
Created September 27, 2018 02:47
Show Gist options
  • Save vlovich/12c9eff5aeb1eeecc36cb2513a5f4685 to your computer and use it in GitHub Desktop.
Save vlovich/12c9eff5aeb1eeecc36cb2513a5f4685 to your computer and use it in GitHub Desktop.
pybluez build failure
Building wheels for collected packages: pybluez
Running setup.py bdist_wheel for pybluez ... error
Complete output from command /opt/homebrew/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/yy/yxy91sxx7j9g2zjf6pg2ys4w00_w9p/T/pip-install-9vfvfafz/pybluez/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/yy/yxy91sxx7j9g2zjf6pg2ys4w00_w9p/T/pip-wheel-8ll3tuwd --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/bluetooth
copying bluetooth/btcommon.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/ble.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/bluez.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/msbt.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/osx.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'bluetooth._osxbt' extension
creating build/temp.macosx-10.13-x86_64-3.7
creating build/temp.macosx-10.13-x86_64-3.7/osx
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/System/Library/Frameworks/IOBluetooth.framework/Headers -I/System/Library/Frameworks/CoreFoundation.framework/Headers -I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c osx/_osxbt.c -o build/temp.macosx-10.13-x86_64-3.7/osx/_osxbt.o
osx/_osxbt.c:676:5: error: unknown type name 'IOBluetoothDeviceInquiryRef'; did you mean 'IOBluetoothDeviceRef'?
IOBluetoothDeviceInquiryRef inquiry;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
IOBluetoothDeviceRef
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/IOBluetooth.framework/Headers/IOBluetoothUserLib.h:34:47: note: 'IOBluetoothDeviceRef' declared here
typedef struct OpaqueIOBluetoothObjectRef * IOBluetoothDeviceRef;
^
osx/_osxbt.c:688:17: error: unknown type name 'IOBluetoothDeviceInquiryRef'; did you mean 'IOBluetoothDeviceRef'?
IOBluetoothDeviceInquiryRef inquiryRef,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
IOBluetoothDeviceRef
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/IOBluetooth.framework/Headers/IOBluetoothUserLib.h:34:47: note: 'IOBluetoothDeviceRef' declared here
typedef struct OpaqueIOBluetoothObjectRef * IOBluetoothDeviceRef;
^
osx/_osxbt.c:703:19: warning: implicit declaration of function 'IOBluetoothDeviceInquiryCreateWithCallbackRefCon' is invalid in C99 [-Wimplicit-function-declaration]
dd->inquiry = IOBluetoothDeviceInquiryCreateWithCallbackRefCon (&dd);
^
osx/_osxbt.c:703:17: warning: incompatible integer to pointer conversion assigning to 'IOBluetoothDeviceRef' (aka 'struct OpaqueIOBluetoothObjectRef *') from 'int' [-Wint-conversion]
dd->inquiry = IOBluetoothDeviceInquiryCreateWithCallbackRefCon (&dd);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
osx/_osxbt.c:705:5: warning: implicit declaration of function 'IOBluetoothDeviceInquirySetCompleteCallback' is invalid in C99 [-Wimplicit-function-declaration]
IOBluetoothDeviceInquirySetCompleteCallback (dd->inquiry,
^
osx/_osxbt.c:717:5: warning: implicit declaration of function 'IOBluetoothDeviceInquiryStart' is invalid in C99 [-Wimplicit-function-declaration]
IOBluetoothDeviceInquiryStart (dd->inquiry);
^
osx/_osxbt.c:721:5: warning: implicit declaration of function 'IOBluetoothDeviceInquiryDelete' is invalid in C99 [-Wimplicit-function-declaration]
IOBluetoothDeviceInquiryDelete (dd->inquiry);
^
osx/_osxbt.c:774:9: warning: implicit declaration of function 'Py_InitModule3' is invalid in C99 [-Wimplicit-function-declaration]
m = Py_InitModule3("_osxbt", osxbt_methods, osxbt_doc);
^
osx/_osxbt.c:774:7: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
m = Py_InitModule3("_osxbt", osxbt_methods, osxbt_doc);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 warnings and 2 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Failed building wheel for pybluez
Running setup.py clean for pybluez
Failed to build pybluez
Installing collected packages: pybluez
Running setup.py install for pybluez ... error
Complete output from command /opt/homebrew/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/yy/yxy91sxx7j9g2zjf6pg2ys4w00_w9p/T/pip-install-9vfvfafz/pybluez/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/yy/yxy91sxx7j9g2zjf6pg2ys4w00_w9p/T/pip-record-4zgz6f28/install-record.txt --single-version-externally-managed --compile --install-headers ~/python-env/bin/../include/site/python3.7/pybluez:
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/bluetooth
copying bluetooth/btcommon.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/ble.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/bluez.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/msbt.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
copying bluetooth/osx.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'bluetooth._osxbt' extension
creating build/temp.macosx-10.13-x86_64-3.7
creating build/temp.macosx-10.13-x86_64-3.7/osx
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/System/Library/Frameworks/IOBluetooth.framework/Headers -I/System/Library/Frameworks/CoreFoundation.framework/Headers -I/opt/homebrew/include -I/opt/homebrew/opt/openssl/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c osx/_osxbt.c -o build/temp.macosx-10.13-x86_64-3.7/osx/_osxbt.o
osx/_osxbt.c:676:5: error: unknown type name 'IOBluetoothDeviceInquiryRef'; did you mean 'IOBluetoothDeviceRef'?
IOBluetoothDeviceInquiryRef inquiry;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
IOBluetoothDeviceRef
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/IOBluetooth.framework/Headers/IOBluetoothUserLib.h:34:47: note: 'IOBluetoothDeviceRef' declared here
typedef struct OpaqueIOBluetoothObjectRef * IOBluetoothDeviceRef;
^
osx/_osxbt.c:688:17: error: unknown type name 'IOBluetoothDeviceInquiryRef'; did you mean 'IOBluetoothDeviceRef'?
IOBluetoothDeviceInquiryRef inquiryRef,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
IOBluetoothDeviceRef
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/IOBluetooth.framework/Headers/IOBluetoothUserLib.h:34:47: note: 'IOBluetoothDeviceRef' declared here
typedef struct OpaqueIOBluetoothObjectRef * IOBluetoothDeviceRef;
^
osx/_osxbt.c:703:19: warning: implicit declaration of function 'IOBluetoothDeviceInquiryCreateWithCallbackRefCon' is invalid in C99 [-Wimplicit-function-declaration]
dd->inquiry = IOBluetoothDeviceInquiryCreateWithCallbackRefCon (&dd);
^
osx/_osxbt.c:703:17: warning: incompatible integer to pointer conversion assigning to 'IOBluetoothDeviceRef' (aka 'struct OpaqueIOBluetoothObjectRef *') from 'int' [-Wint-conversion]
dd->inquiry = IOBluetoothDeviceInqu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment