Closed mrpg closed 1 year ago
I can confirm that everything works as expected on Arch Linux with Python 3.10.10. This is despite both machines running textual 0.19.0. So this might actually be a bug in textual.
Hi @mrpg, thanks for the report! There's only one place we make that specific call and it's actually not needed anymore, so I've removed it in #191. I'm a little surprised you hit it because there should always be a BotResponse available, but I can't see any other place it could have happened. Hopefully this helps - I'll try to push a bugfix release this morning
0.7.3 is out with a fix for this!
Thanks for your quick reply and the fix. I can confirm that there is no exception raised under 0.7.3, but no response appears now. I'd be happy to help with debugging, but don't worry, I'll just keep using the Arch Linux machine for this.
Hmm I'm sorry to hear that. I'll keep trying to replicate.
@mrpg I think I found the issue which may be that on Python 3.9, calling functools.partial masks the fact that a function generates coroutines. I'm releasing 0.7.4 which has a fix for that situation. Please give it a try, and we'll make sure this works as expected!
Whatever you did, 0.7.4 fixed this problem for me on MacOS with Python 3.10.3. Thanks!
@jlowin Thank you so much, I can now confirm that version 0.7.4 works as expected under Debian 11 (and continues to work under Arch Linux). I am impressed by marvin
and your incredible speed! Thanks again.
Hi, thanks for this project. I ran
marvin chat
and entered my API key. However, subsequent requests seem to error out.Here is an example:
Prompt = "What is something only a bot would say?"
I get the exception
NoMatches: No nodes match
. Here is a fuller view:So I guess the API connection and almost everything works, but there might be a small bug in the rendering?!
Running this on Debian 11, Python 3.9.2, and using the latest marvin version from
pip
.Thanks.