yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
MIT License
5.85k stars 815 forks source link

[2.80容器版本报错]:AttributeError: 'MiNAService' object has no attribute 'player_stop'. Did you mean: 'player_play'? #511

Closed DenneyTang closed 1 month ago

DenneyTang commented 1 month ago

这个报错怎么解决:

stderr: Traceback (most recent call last): stderr: File "/app/xiaogpt.py", line 5, in stderr: main() stderr: File "/app/xiaogpt/cli.py", line 233, in main stderr: loop.run_until_complete(main(config)) stderr: File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete stderr: return future.result() stderr: File "/app/xiaogpt/cli.py", line 228, in main stderr: await miboy.run_forever() stderr: File "/app/xiaogpt/xiaogpt.py", line 399, in run_forever stderr: await self.stop_if_xiaoai_is_playing() stderr: File "/app/xiaogpt/xiaogpt.py", line 336, in stop_if_xiaoai_is_playing stderr: await self.mina_service.player_stop(self.device_id) stderr: AttributeError: 'MiNAService' object has no attribute 'player_stop'. Did you mean: 'player_play'? stderr: Task exception was never retrieved stderr: future: <Task finished name='Task-7' coro=<MiGPT.poll_latest_ask() done, defined at /app/xiaogpt/xiaogpt.py:58> exception=AttributeError("'MiNAService' object has no attribute 'player_stop'")> stderr: Traceback (most recent call last): stderr: File "/app/xiaogpt/xiaogpt.py", line 76, in poll_latest_ask stderr: await self.stop_if_xiaoai_is_playing() stderr: File "/app/xiaogpt/xiaogpt.py", line 336, in stop_if_xiaoai_is_playing stderr: await self.mina_service.player_stop(self.device_id) stderr: AttributeError: 'MiNAService' object has no attribute 'player_stop'. Did you mean: 'player_play'?

yihong0618 commented 1 month ago

卧槽我忘更新容器的 requirements 了。下午到家我更新下

VectorZhao commented 1 month ago

更新之后确实报这个错误。。。。。。。

yihong0618 commented 1 month ago

@all

更新了,升级 2.82 试试。

yihong0618 commented 1 month ago

@VectorZhao @DenneyTang 现在好了么?

VectorZhao commented 1 month ago

@VectorZhao @DenneyTang 现在好了么?

好了