求助:
树莓派4B+python3.7.3
已根据要求安装以下依赖的库:
git clone https://github.com/blinker-iot/blinker-py
cd blinker-py
sudo python3 setup.py install
sudo pip3 install -r requirements.txt
结果运行示例程序时,出现报错如下:
用的是【阿里云】的中介
Traceback (most recent call last):
File "/home/pi/ex/_liwei/点灯示例.py", line 8, in <module>
Blinker.mode("BLINKER_WIFI")
File "/usr/local/lib/python3.7/dist-packages/Blinker-0.2.0-py3.7.egg/Blinker/Blinker.py", line 123, in mode
bProto.conn2 = bProto.proto2.WebSocketServer(BLINKER_DIY_MQTT)
File "/usr/local/lib/python3.7/dist-packages/Blinker-0.2.0-py3.7.egg/BlinkerAdapters/BlinkerLinuxWS.py", line 81, in __init__
self.server = SimpleWebSocketServer(self.name, self.port, HandleServer)
File "/usr/local/lib/python3.7/dist-packages/SimpleWebSocketServer/SimpleWebSocketServer.py", line 602, in __init__
self.serversocket.bind(hostInfo[0][4])
PermissionError: [Errno 13] Permission denied
不知道是配置错误。还是系统错误,请指点
|