我在CentOS 8.3.2011上按照文档导入了wechaty后,执行python examples/ding-dong-bot.py时有以下报错,请求帮助!
[root@localhost python-wechaty-getting-started]# python examples/ding-dong-bot.py
Traceback (most recent call last):
File "/home/app/python-wechaty-getting-started/examples/ding-dong-bot.py", line 19, in

可以试一下:
export WECHATY_LOG=INFO
然后再执行:
python3 examples/ding-dong-bot.py
According to our Wechaty Specification https://wechaty.js.org/docs/specs/wechaty:
The WECHATY_LOG should support the values of silly, verbose, info, warn, silent
All Polyglot Wechaty should at least support the above names as an alias.
Link to https://github.com/wechaty/wechaty/issues/2167
CC @wechaty/python @wechaty/go @wechaty/java @wechaty/php @wechaty/dotnet @wechaty/scala @wechaty/rust
@xiao198304 @huan 谢谢帮助。
但在执行了export WECHATY_LOG=INFO后,执行python3 examples/ding-dong-bot.py时又出现了新的如下报错。
我是否遗漏了什么组件或者步骤没有配置?
Please check your token settings.
See:
- https://wechaty.js.org/docs/specs/token/
- https://wechaty.js.org/docs/puppet-services/
@xiao198304 @huan 谢谢帮助。 但在执行了export WECHATY_LOG=INFO后,执行python3 examples/ding-dong-bot.py时又出现了新的如下报错。
我是否遗漏了什么组件或者步骤没有配置?
同问!!!
Bug: Service server is invalid belongs to configuration error. @livingbody you can read the doc of python-wechaty to start bot. Hope that can help you.