wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.62k stars 234 forks source link

[Bug]: python版本使用find_all not work #373

Closed suxiaobei1024 closed 1 year ago

suxiaobei1024 commented 1 year ago

Environment

wechaty                     0.10.0
wechaty-grpc                0.20.19
wechaty-plugin-contrib      0.0.19
wechaty-puppet              0.4.21
wechaty-puppet-service      0.8.10

Description

find this command in python not work, I can not get all room in my bot
all_rooms = await Room.find_all()

2022-10-31 16:41:07,252 - Wechaty - ERROR - internal error <puppet not found>

Minimum reproducible code

as bellow

wj-Mcat commented 1 year ago

This is because that Contact or Room should be access from bot instance, you can refer to: ding-dong-bot-oop

wj-Mcat commented 1 year ago

I think this issue has been fixed. Thanks for you posting, please feel free to tell us more about your problems.