python - 无法在 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'
解决方案
目前,为基于 Debian、CentOS 的系统实现了 ThingsBoard 网关。但它不支持 windows 安装(Docker 镜像除外)。但是您可以尝试将配置文件的路径替换为类似的c:\\program files\\python38\\lib\\site-packages\\thingsboard_gateway\\tb_gateway.py
内容并尝试再次运行它。
推荐阅读
- mongodb - 从 $Lookup 在 Mongodb 中将两个数组对象合并在一起
- javascript - 翻译 vuejs 路由路径
- python - Python 3 错误 ValueError:无法将字符串转换为浮点数:'0.89*10**-5'?
- java - InputStreamConstructor 的问题
- node.js - Angular 6:如何使用 formControlName 在“选择”下拉列表中设置默认值?
- python - 通过 pyspark py4jjavaerror 使用 spark 加载 csv 文件
- azure - 将密钥保管库生成的证书与服务主体链接
- aws-lambda - 无法从云形成 yaml 中的条件函数返回整数
- julia - Julia 1.0.3 中具有多个条件的 findall() 或 filter() 函数
- dart - Flutter中如何自定义SliverAppBar中的flexibleSpace属性?