首页 > 解决方案 > 无法在 Windows 上安装 Thinbgsboard IoT Gateway

问题描述

我正在尝试在我的 Windows 系统上应用 Python 的安装步骤,但我不知道应该为日志和配置创建什么路径。

我收到以下错误:

C:\Program Files\Python38\Scripts>thingsboard-gateway
Traceback (most recent call last):
  File "C:\Program Files\Python38\Scripts\thingsboard-gateway-script.py", line 11, in <module>
    load_entry_point('thingsboard-gateway==2.0.0.2', 'console_scripts', 'thingsboard-gateway')()
  File "c:\program files\python38\lib\site-packages\thingsboard_gateway\tb_gateway.py", line 24, in daemon
    TBGatewayService("/etc/thingsboard-gateway/config/tb_gateway.yaml")
  File "c:\program files\python38\lib\site-packages\thingsboard_gateway\gateway\tb_gateway_service.py", line 38, in __init__
    with open(config_file) as config:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/thingsboard-gateway/config/tb_gateway.yaml'

标签: pythonthingsboard-gateway

解决方案


目前,为基于 Debian、CentOS 的系统实现了 ThingsBoard 网关。但它不支持 windows 安装(Docker 镜像除外)。但是您可以尝试将配置文件的路径替换为类似的c:\\program files\\python38\\lib\\site-packages\\thingsboard_gateway\\tb_gateway.py内容并尝试再次运行它。


推荐阅读