Содержание
- Can’t install #433
- Comments
- I am trying to install the package but pip keeps failing. The error I get is this:
- Cannot install pybluez in Windows 10 (build 10240) Python 3.8.5 #362
- Comments
- Footer
- Installation dependency broken on Python 3 #173
- Comments
- Footer
Can’t install #433
I am trying to install the package but pip keeps failing. The error I get is this:
Collecting PyBluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Preparing metadata (setup.py) . error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in PyBluez setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
The text was updated successfully, but these errors were encountered:
— a caller that pip uses to run setup.py # # — It imports setuptools before invoking setup.py, to enable projects that directly # import from `distutils.core` to work with newer packaging standards. # — It provides a clear error message when setuptools is not installed. # — It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so # setuptools doesn’»‘»‘t think the script is `-c`. This avoids the following warning: # manifest_maker: standard file ‘»‘»‘-c’»‘»‘ not found». # — It generates a shim setup.py, for handling setup.cfg-only projects. import os, sys, tokenize try: import setuptools except ImportError as error: print( «ERROR: Can not execute `setup.py` since setuptools is not available in » «the build environment.», file=sys.stderr, ) sys.exit(1) __file__ = %r sys.argv[0] = __file__ if os.path.exists(__file__): filename = __file__ with tokenize.open(__file__) as f: setup_py_code = f.read() else: filename = «» setup_py_code = «from setuptools import setup; setup()» exec(compile(setup_py_code, filename, «exec»)) ‘»‘»»»‘»»»‘»‘ % (‘»‘»‘/tmp/pip-install-68qwtmvz/pybluez_c1c9b215cbe7493a9f160507e1e4e9c2/setup.py’»‘»‘,), «
«, «exec»))’ egg_info —egg-base /tmp/pip-pip-egg-info-ew_2egyz cwd: /tmp/pip-install-68qwtmvz/pybluez_c1c9b215cbe7493a9f160507e1e4e9c2/ Preparing metadata (setup.py) . error error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. «>
Related issues (did not check them for solutions yet):
#413 #424 #431
This was fixed in #431 — Solution for now, until a new release is pushed to pypi is:
Источник
Cannot install pybluez in Windows 10 (build 10240) Python 3.8.5 #362
- Windows 10 Build 10240
- Python 3.8.5
- PyBluez 0.23
Error (After «pip install pybluez»):
Collecting pybluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Using legacy ‘setup.py install’ for pybluez, since package ‘wheel’ is not installed.
Installing collected packages: pybluez
Running setup.py install for pybluez . error
ERROR: Command errored out with exit status 1:
command: ‘c:usersuserappdatalocalprogramspythonpython38-32python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersUserAppDataLocalTemppip-install-5todjdfypybluezsetup.py’»‘»‘; file=’»‘»‘C:UsersUserAppDataLocalTemppip-install-5todjdfypybluezsetup.py’»‘»‘;f=getattr(tokenize, ‘»‘»‘open’»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn’»‘»‘, ‘»‘»‘n’»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec’»‘»‘))’ install —record ‘C:UsersUserAppDataLocalTemppip-record-6xfmlvqoinstall-record.txt’ —single-version-externally-managed —compile —install-headers ‘c:usersuserappdatalocalprogramspythonpython38-32Includepybluez’
cwd: C:UsersUserAppDataLocalTemppip-install-5todjdfypybluez
Complete output (28 lines):
running install
running build
running build_py
creating build
creating buildlib.win32-3.8
creating buildlib.win32-3.8bluetooth
copying bluetoothble.py -> buildlib.win32-3.8bluetooth
copying bluetoothbluez.py -> buildlib.win32-3.8bluetooth
copying bluetoothbtcommon.py -> buildlib.win32-3.8bluetooth
copying bluetoothmacos.py -> buildlib.win32-3.8bluetooth
copying bluetoothmsbt.py -> buildlib.win32-3.8bluetooth
copying bluetoothwidcomm.py -> buildlib.win32-3.8bluetooth
copying bluetooth_init_.py -> buildlib.win32-3.8bluetooth
c:usersuserappdatalocalprogramspythonpython38-32libsite-packagessetuptoolslib2to3_ex.py:39: SetuptoolsDeprecationWarning: 2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.
warnings.warn(
Fixing buildlib.win32-3.8bluetoothble.py buildlib.win32-3.8bluetoothbluez.py buildlib.win32-3.8bluetoothbtcommon.py buildlib.win32-3.8bluetoothmacos.py buildlib.win32-3.8bluetoothmsbt.py buildlib.win32-3.8bluetoothwidcomm.py buildlib.win32-3.8bluetooth_init_.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
Fixing buildlib.win32-3.8bluetoothble.py buildlib.win32-3.8bluetoothbluez.py buildlib.win32-3.8bluetoothbtcommon.py buildlib.win32-3.8bluetoothmacos.py buildlib.win32-3.8bluetoothmsbt.py buildlib.win32-3.8bluetoothwidcomm.py buildlib.win32-3.8bluetooth_init_.py
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
building ‘bluetooth._msbt’ extension
error: Microsoft Visual C++ 14.0 is required. Get it with «Build Tools for Visual Studio»: https://visualstudio.microsoft.com/downloads/
—————————————-
ERROR: Command errored out with exit status 1: ‘c:usersuserappdatalocalprogramspythonpython38-32python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersUserAppDataLocalTemppip-install-5todjdfypybluezsetup.py’»‘»‘; file=’»‘»‘C:UsersUserAppDataLocalTemppip-install-5todjdfypybluezsetup.py’»‘»‘;f=getattr(tokenize, ‘»‘»‘open’»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn’»‘»‘, ‘»‘»‘n’»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec’»‘»‘))’ install —record ‘C:UsersUserAppDataLocalTemppip-record-6xfmlvqoinstall-record.txt’ —single-version-externally-managed —compile —install-headers ‘c:usersuserappdatalocalprogramspythonpython38-32Includepybluez’ Check the logs for full command output
The text was updated successfully, but these errors were encountered:
It says: Microsoft Visual C++ 14.0 is required. Get it with «Build Tools for Visual Studio»
Do you have it installed?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
PyBluez is not under active development, but we still accept pull requests!
If you’ve resolved your issue, please post your solution and close this issue. Future users will benefit from the knowledge you share. Thank you.
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
Installation dependency broken on Python 3 #173
pip install pybluez
And start using example about low energy example, we have:
Require additional install dependencies but on modern system we receive:
It expected on Python 3.5 or 3.6 on machine without boost.
The text was updated successfully, but these errors were encountered:
Confirmed on Ubuntu 16.04. This is definitely down to gattlib.
Following their own install instructions doesn’t work either.
The debian repository installation also failed, I haven’t tried a source install.
Edit: There also are some pending PR’s over on their BitBucket. This one would fix your issue. So right now, you’d have to install from source and change the offending line yourself.
install these depends first,
then, for gattlib with python3, have a try with :
I using ubuntu and had python 3.7 install. What worked for me was, when ran
ldconfig -p | grep libboost_python
I noticed that the boost library ended with _python37 so that is what I used.
Then followed up with pip3 install pybluez[ble]
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
PyBluez is not under active development, but we still accept pull requests!
If you’ve resolved your issue, please post your solution and close this issue. Future users will benefit from the knowledge you share. Thank you.
For everyone who still use an issue
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
Is there any bluetooth library for python 3 on windows platform.
I tried to install pybluez, but it shows an error. Itried to do it even by running cmd as the admin
this is the error message
Error:
Could not find the Windows Platform SDK
I have been exhausted with this problem. plz help me
Posts: 11,566
Threads: 446
Joined: Sep 2016
Reputation:
444
please advise how you tried to install
do you have python installed?
the package should be installed using:
pip install pybluez
but only if python already installed.
Posts: 12
Threads: 6
Joined: Mar 2018
Reputation:
0
yes. I have installed python and I tride to unstall package by pip
Posts: 11,566
Threads: 446
Joined: Sep 2016
Reputation:
444
Sounds like missing path information.
When installing, this unfortunately is an option and has to be checked.
from command line, try:
python -V pip -V
this will determine if environment is properly set up.
If not, you will have to manually set path or re-install (which is better)
If you choose to re-install, please follow the tutorial here:
Here: https://python-forum.io/Thread-Basic-Par…er-Windows
and here: https://python-forum.io/Thread-Part-2-Py…nt-Windows
Posts: 12
Threads: 6
Joined: Mar 2018
Reputation:
0
yes I have added python to the path at the installation and the pip also. Ineed to know is there any uncompatiblity in «pybluez» with windows
Posts: 11,566
Threads: 446
Joined: Sep 2016
Reputation:
444
can’t say. The author of that package shows a homepage of: http://karulis.github.io/pybluez/
however that url returns 404 error
And pypi page: https://pypi.org/project/PyBluez/ states nothing about windows.
This is a question that should be directed to author, but since his github url fails, can’t advise on how that should be done.
perhaps try another package?: https://pypi.org/search/?q=bluetooth
Posts: 6,572
Threads: 116
Joined: Sep 2016
Reputation:
487
Look at this link.
You see that there is link to wheel for Windows platform.
Install with pip:
pip install PyBluez-0.22-cp37-cp37m-win_amd64.whl
Posts: 12
Threads: 6
Joined: Mar 2018
Reputation:
0
Oct-18-2018, 06:16 AM
(This post was last modified: Oct-18-2018, 06:16 AM by kavindu.)
I did it just as said by snippsat by giving following command.
pip install pybluez-0.22-cp37-cp37m-win_amd64.whl
but it shows the following error
Error:
C:Windowssystem32>pip install pybluez-0.22-cp37-cp37m-win_amd64.whl
Requirement 'pybluez-0.22-cp37-cp37m-win_amd64.whl' looks like a filename, but t
he file does not exist
pybluez-0.22-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
And when i try to do it by giving the following command it tries to instal
it by using cached
pip install pybluez
it shows a permission error even when i have launched cmd prompt as admin
Error:
C:Windowssystem32>pip install pybluez
Collecting pybluez
Using cached https://files.pythonhosted.org/packages/c1/98/3149481d508bee17433
5be6725880f00d297afebe75c15e917af8f6fe169/PyBluez-0.22.zip
Could not install packages due to an EnvironmentError:
[WinError 5] Access is denied: 'C:\Users\Kavindu
\AppData\Local\Temp\pip-unpack-ocvo1b_s\PyBluez-0.
22.zip'
Consider using the `--user` option or check the permissions.
and some times this error message instaed of above
Error:
Collecting pybluez
Using cached https://files.pythonhosted.org/packages/c1/98/3149481d508bee17433
5be6725880f00d297afebe75c15e917af8f6fe169/PyBluez-0.22.zip
Complete output from command python setup.py egg_info:
Could not find the Windows Platform SDK
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:UsersKavindu
AppDataLocalTemppip-install-v_h2z98opybluez
but I can install other packages like numpy,django,..etc.
this problem occurs only with pybluez
Posts: 6,572
Threads: 116
Joined: Sep 2016
Reputation:
487
You most choose wheel for your Python version.
That wheel is for Python 3.7 — 64-bit.
PyBluez-0.22-cp37
-cp37m-win_amd64
.whl
You find your version bye type python
in cmd.
Need to install look at Python 3.6/3.7 and pip installation under Windows.
Anaconda look here.
Уведомления
- Начало
- » Python для новичков
- » не устанавливается модуль pip install PyBluez
#1 Окт. 7, 2020 21:13:02
не устанавливается модуль pip install PyBluez
Здравствуйте!
Подскажите что необходимо сделать чтобы установить модуль, пишет ошибку на фото
Как у майков установить визуал 14 — так и не понял…
Пробывал альтернативную библиотеку вот такое выдаёт:
Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> from bluetool import Bluetooth File "C:UsersDIMAAppDataLocalProgramsPythonPython38libsite-packagesbluetool__init__.py", line 1, in <module> from bluetool import Bluetooth ImportError: cannot import name 'Bluetooth' from partially initialized module 'bluetool' (most likely due to a circular import) (C:UsersDIMAAppDataLocalProgramsPythonPython38libsite-packagesbluetool__init__.py) >>>
Отредактировано rocky1945 (Окт. 7, 2020 21:22:37)
Прикреплённый файлы: mcI8-GdJMUM.jpg (331,9 KБ)
Офлайн
- Пожаловаться
#2 Окт. 7, 2020 22:10:17
не устанавливается модуль pip install PyBluez
rocky1945
Как у майков установить визуал 14 — так и не понял
У вас в сообщении об ошибке есть ссылка для скачивания
Офлайн
- Пожаловаться
#3 Окт. 7, 2020 22:30:20
не устанавливается модуль pip install PyBluez
FishHook
httpsvisualstudio.microsoft.com/visual-cpp-build-tools/
Ходил туда но что там надо скачивать так и не разобрался — они предлагают качнуть билдер и там куча всего… Извиняюсь за флуд, помогите разобраться
Офлайн
- Пожаловаться
#4 Окт. 8, 2020 00:57:24
не устанавливается модуль pip install PyBluez
Вот это Visual Studio Build Tools 2019
Офлайн
- Пожаловаться
#5 Окт. 8, 2020 07:42:05
не устанавливается модуль pip install PyBluez
FishHook
Вот это Visual Studio Build Tools 2019
Ничего не получается
Прикреплённый файлы: Снимок.PNG (486,3 KБ)
Офлайн
- Пожаловаться
#6 Окт. 8, 2020 10:32:59
не устанавливается модуль pip install PyBluez
rocky1945
Компьютер перезагружал после установки Build Tools?
Офлайн
- Пожаловаться
#7 Окт. 8, 2020 11:05:03
не устанавливается модуль pip install PyBluez
FishHook
rocky1945Компьютер перезагружал после установки Build Tools?
Да — тоже самое
Офлайн
- Пожаловаться
#8 Окт. 8, 2020 19:13:31
не устанавливается модуль pip install PyBluez
Да видимо решения нету
Офлайн
- Пожаловаться
#9 Окт. 8, 2020 20:15:04
не устанавливается модуль pip install PyBluez
Используй нормальную ОС и проблем убавится.
С дураками и сектантами не спорю, истину не ищу.
Ели кому-то правда не нравится, то заранее извиняюсь.
Офлайн
- Пожаловаться
#10 Окт. 9, 2020 22:07:32
не устанавливается модуль pip install PyBluez
вы уверены что установили именно то что нужно?
rocky1945
они предлагают качнуть билдер и там куча всего…
очевидно вы не выбрали из “куча всего…” то что нужно.
==============================
Помещайте код в теги:
Бериегите свое и чужое время.
Офлайн
- Пожаловаться
- Начало
- » Python для новичков
- » не устанавливается модуль pip install PyBluez
I tried to install pybluez using following commands.
pip install pybluez
sudo easy_install pybluez
But for both commands I end up in errors.
Environment:
Mac OSX 10.9.1
Python 2.7
Pip Logs :
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/IOBluetooth.framework/Headers -I/System/Library/Frameworks/CoreFoundation.framework/Headers -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c osx/_osxbt.c -o build/temp.macosx-10.9-intel-2.7/osx/_osxbt.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
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.9.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.9.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);
^
5 warnings and 2 errors generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Cleaning up...
Removing temporary dir /private/var/folders/f0/ldyq8xbx0fvckg001kk64j7r0000gn/T/pip_build_~...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/f0/ldyq8xbx0fvckg001kk64j7r0000gn/T/pip_build_~/pybluez/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /var/folders/f0/ldyq8xbx0fvckg001kk64j7r0000gn/T/pip-j1ASQD-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/f0/ldyq8xbx0fvckg001kk64j7r0000gn/T/pip_build_~/pybluez
Exception information:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/commands/install.py", line 279, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/req.py", line 1380, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/req.py", line 699, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/Library/Python/2.7/site-packages/pip-1.5.2-py2.7.egg/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/f0/ldyq8xbx0fvckg001kk64j7r0000gn/T/pip_build_~/pybluez/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /var/folders/f0/ldyq8xbx0fvckg001kk64j7r0000gn/T/pip-j1ASQD-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/f0/ldyq8xbx0fvckg001kk64j7r0000gn/T/pip_build_~/pybluez
**easy_install Logs**
Reading http://pypi.python.org/simple/pybluez/
Best match: PyBluez 0.20
Downloading https://pypi.python.org/packages/source/P/PyBluez/PyBluez-0.20.zip#md5=79fad332df63b67a5f9a8d25042fb2a8
Processing PyBluez-0.20.zip
Running PyBluez-0.20/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Y5Y9H1/PyBluez-0.20/egg-dist-tmp-kwjDlw
clang: warning: argument unused during compilation: '-mno-fused-madd'
**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.9.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.9.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);
^
5 warnings and 2 errors generated.
error: Setup script exited with error: command 'cc' failed with exit status 1
Any one able to install pybluez on Mavericks ?
On Mountain Lion also the same installation errors.
Edit :
Replaced IOBluetoothDeviceInquiryRef with IOBluetoothDeviceRef and got rid of the errors.
and able to install on Mac because of the warnings.
Installed using sudo python setup.py install
Here is the output
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /Library/Python/2.7/site-packages/PyBluez-0.20-py2.7.egg-info
Writing /Library/Python/2.7/site-packages/PyBluez-0.20-py2.7.egg-info
When I tried to import bluetooth I got an exception
Here is the output
>>> import bluetooth
Traceback (most recent call last):
File «», line 1, in
File «bluetooth/__init__.py», line 47, in
from osx import *
File «bluetooth/osx.py», line 3, in
raise NotImplementedError
NotImplementedError
Fllowing link mentioned about the error
python bluetooth discovery with pybluez
What should be done to install pybluez on Mac