dokinchan
Posts: 1
Joined: Thu Jan 25, 2018 3:43 am

pybluezのインストールのエラー

Thu Jan 25, 2018 3:59 am

ラズパイ、プログラミング初心者です。
pybluezをインストールしようとしましたが、building wheel for pybluezのエラーでうまくいきません。
対処方法が解る方いらっしゃいましたら、教えてください。

参考にした手順は下記のページです。
https://kakakikikeke.blogspot.jp/2015/1 ... z-ble.html
    使用しているのはラズベリーパイ3Bです。
    以下、長いですが表示されたものをすべて掲載します。
    [email protected]:/usr/include $ sudo pip install pybluez
    Collecting pybluez
    Using cached PyBluez-0.22.zip
    Building wheels for collected packages: pybluez
    Running setup.py bdist_wheel for pybluez ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SiDQ9A/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 /tmp/tmpbh9f26pip-wheel- --python-tag cp27:
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-2.7
    creating build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/__init__.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/ble.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/msbt.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/btcommon.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/widcomm.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/bluez.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/osx.py -> build/lib.linux-armv7l-2.7/bluetooth
    running build_ext
    building 'bluetooth._bluetooth' extension
    creating build/temp.linux-armv7l-2.7
    creating build/temp.linux-armv7l-2.7/bluez
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-kKRR4y/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-armv7l-2.7/bluez/btmodule.o
    In file included from bluez/btmodule.c:20:0:
    bluez/btmodule.h:5:33: fatal error: bluetooth/bluetooth.h: そのようなファイルやディレクトリはありません
    #include <bluetooth/bluetooth.h>
    ^
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' 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 /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SiDQ9A/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 /tmp/pip-zFfYSR-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-2.7
    creating build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/__init__.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/ble.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/msbt.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/btcommon.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/widcomm.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/bluez.py -> build/lib.linux-armv7l-2.7/bluetooth
    copying bluetooth/osx.py -> build/lib.linux-armv7l-2.7/bluetooth
    running build_ext
    building 'bluetooth._bluetooth' extension
    creating build/temp.linux-armv7l-2.7
    creating build/temp.linux-armv7l-2.7/bluez
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-kKRR4y/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I./port3 -I/usr/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-armv7l-2.7/bluez/btmodule.o
    In file included from bluez/btmodule.c:20:0:
    bluez/btmodule.h:5:33: fatal error: bluetooth/bluetooth.h: そのようなファイルやディレクトリはありません
    #include <bluetooth/bluetooth.h>
    ^
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    ----------------------------------------
    Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SiDQ9A/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 /tmp/pip-zFfYSR-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-SiDQ9A/pybluez/


    よろしくお願いします。

    Return to “日本語”