覆盆子π网关下载/编译不工作的

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
nico.strydom.
Offline
Last seen:1 year 10 months ago
Joined:2019-06-27 08:35
覆盆子π网关下载/编译不工作的

Hi

我下载了你的Raspberry Pi Gateway Script Package对于覆盆子pi。

We have a unit that we are able to connect via bluetooth to a smartphone, however the purpose of this device is to connect via a raspberry pi using your example scripts in Python.

但是在initial_setup上 - 它失败了。

We have the new raspberry pi 4 (4gb)

以下是构建/执行脚本的结果。请你帮忙吗?

pi@raspberrypi:〜/ dekraspberedgateway $ sudo bash initial_setup.sh
更新
命中:1http://raspbian.raspberrypi.org/raspbian巴斯特互联网
命中:2http://archive.raspberrypi.org/debian巴斯特互联网
阅读包裹列表......完成
Building dependency tree
阅读状态信息......完成
3.6 packages can be upgraded. Run 'apt list --upgradable' to see them.
安装包
阅读包裹列表......完成
Building dependency tree
阅读状态信息......完成
libbluetooth3已经是最新版本(5.50-1 + RPT1)。
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
阅读包裹列表......完成
Building dependency tree
阅读状态信息......完成
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
阅读包裹列表......完成
Building dependency tree
阅读状态信息......完成
python3-pip is already the newest version (18.1-5+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
寻找索引:https://pypi.org/simple.,https://www.piwheels.org/simple.
Requirement already satisfied: enum34==1.1.6 in /usr/local/lib/python3.7/dist-packages (from -r /home/pi/DEKRaspberryGateway/requirements (line 1)) (1.1.6)
要求已经满足:paho-mqtt == 1.3.1在/usr/local/lib/python3.7/dist-packages中(来自-r / home / pi / dekraspberedgateway /要求(第2行))(1.3.1)
收集PyBluez == 0.22(来自-R / Home / Pi / DekraspberyGateway /要求(第3行))
Using cachedhttps://files.pythonhosted.org/packages/c1/98/3149481d508bee174335be6725 ...
收集请求== 2.18.4(来自-r / home / pi / dekraspbertygateway /要求(第4行))
Using cachedhttps://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9 ...
收集URLLIB3 == 1.22(来自-R / HOME / PI / DEKRASPBERTYGATERWAY /要求(第5行))
Using cachedhttps://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b82236f6d4b82232
要求已经满足:Certifi> = 2017.4.17 / usr / lib / python3 / dist-packages(来自请求== 2.18.4 - > - r / home / pi / dekraspberedgateway /要求(第4行))(2018.8.24)
要求已经满足:Chardet <3.1.0,> = 3.0.2 In / USR / Lib / Python3 / Dist-Packages(来自请求== 2.18.4 - > - R / Home / Pi / Dekraspberedgateway /要求(第4行))(3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/lib/python3/dist-packages (from requests==2.18.4->-r /home/pi/DEKRaspberryGateway/requirements (line 4)) (2.6)
Building wheels for collected packages: PyBluez
Running setup.py bdist_wheel for PyBluez ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-dqfyrkzz/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/pip-wheel-qnewgsnv --python-tag cp37:
running bdist_wheel
运行建设
运行建设_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-armv7l-3.7/bluetooth
复制蓝牙/ msbt.py - > build / lib.linux-armv7l-3.7 /蓝牙
复制蓝牙/ __ init__.py - > build / lib.linux-armv7l-3.7 /蓝牙
copying bluetooth/bluez.py -> build/lib.linux-armv7l-3.7/bluetooth
运行建设_ext
构建'Bluetooth._bluetooth'扩展名
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/bluez
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./port3 -I/usr/include/python3.7m -c bluez/btmodule.c -o build/temp.linux-armv7l-3.7/bluez/btmodule.o
在fluez / btmodule.c:20中包含的文件中:
bluez / btmodule.h:5:10:致命错误:蓝牙/蓝牙.h:没有这样的文件或目录
#include
^ ~~~~~~~~~~~~~~~~~~~~~~
汇编终止。
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

----------------------------------------
用于pybluez的建筑轮失败
Running setup.py clean for PyBluez
Failed to build PyBluez
安装收集的包:PyBluez,Urib3,请求
Running setup.py install for PyBluez ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-dqfyrkzz/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-record-o8agnsqi/install-record.txt --single-version-externally-managed --compile:
running install
运行建设
运行建设_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/ble.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/osx.py -> build/lib.linux-armv7l-3.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-armv7l-3.7/bluetooth
复制蓝牙/ msbt.py - > build / lib.linux-armv7l-3.7 /蓝牙
复制蓝牙/ __ init__.py - > build / lib.linux-armv7l-3.7 /蓝牙
copying bluetooth/bluez.py -> build/lib.linux-armv7l-3.7/bluetooth
运行建设_ext
构建'Bluetooth._bluetooth'扩展名
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/bluez
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./port3 -I/usr/include/python3.7m -c bluez/btmodule.c -o build/temp.linux-armv7l-3.7/bluez/btmodule.o
在fluez / btmodule.c:20中包含的文件中:
bluez / btmodule.h:5:10:致命错误:蓝牙/蓝牙.h:没有这样的文件或目录
#include
^ ~~~~~~~~~~~~~~~~~~~~~~
汇编终止。
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-dqfyrkzz/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-record-o8agnsqi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-dqfyrkzz/PyBluez/
Done
DEKClient will start automatically upon system startup

设备:
PM_Dialog
Offline
Last seen:3.hours 26 min ago
Staff
Joined:2018-02-08 11:03
Hi nico.strydom,

Hi nico.strydom,

Thanks for your question online. The Gateway scripts are tested on Raspberry pi 9 (Stretch), so I am not completely sure if they are working on Raspberry pi 10 (Buster). Please, read section 7.6.2.2 of theUM-B-100: DA14585 IoT Multi Sensor Development Kit User Guide. You could try to use theRasberry Pi Gateway imageinstead of the scripts. In addition, the issue might be related to the fact that date is not set on Raspberry Pi and consequently pip install returned a certificate error.

当前项目仅作为跟踪应用程序,以便将资产上传到云端。目前覆盆子PI和585 IOT MSK之间的连接功能尚未得到支持。请注意,我们正在努力,我们希望在9月份的时间框架中有一些东西。我会让你知道…

Thanks, PM_Dialog