thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 829 forks source link

grpcio not supported on OpenWrt #695

Closed serifis84 closed 2 years ago

serifis84 commented 2 years ago

After pip3 upgrading thingsboard-gateway i realised grpcio is needed, but it is not supported yet by openwrt. I cannot compile it from source. I am using tb-gateway on Teltonika and Mikrotik (with openwrt firmware) routers.

imbeacon commented 2 years ago

Hi @serifis84 ,

You can try to remove grpcio dependency form setup.py file and try to compile again. We have updated the master branch and if the gateway cannot load grpc in the code - it will be ignored, but you won't be able to use this connector. In order to build the gateway image - you can pull the latest master branch version, remove the following dependencies from setup.py: 'grpcio', 'protobuf'. Then you are able to build the image as you did it before.

serifis84 commented 2 years ago

@zbeacon Oh! thank you very much sir! I will try it. The issue is now fixed by installing it with: pip3 install thingsboard-gateway==2.9