Bard icon indicating copy to clipboard operation
Bard copied to clipboard

Error with the example python code from the readme

Open DomiNike111 opened this issue 2 years ago • 1 comments

The code: from os import environ from Bard import Chatbot

Secure_1PSID = Secure_1PSIDTS =

chatbot = Chatbot(Secure_1PSID, Secure_1PSIDTS)

chatbot.ask("Hello, how are you?")

The error: PS C:\Users\me\Documents\vspy\revgooglebard> & C:/Users/me/AppData/Local/Programs/Python/Python39/python.exe c:/Users/me/Documents/vspy/revgooglebard/main.py Traceback (most recent call last): File "c:\Users\me\revgooglebard\main.py", line 7, in chatbot = Chatbot(Secure_1PSID, Secure_1PSIDTS) File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\Bard.py", line 64, in init self.async_chatbot = self.loop.run_until_complete( File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 647, in run_until_complete return future.result() File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\Bard.py", line 155, in create instance.SNlM0e = await instance.__get_snlm0e() File "C:\Users\me\AppData\Local\Programs\Python\Python39\lib\site-packages\Bard.py", line 230, in __get_snlm0e resp = await self.session.get( TypeError: get() got an unexpected keyword argument 'follow_redirects'

DomiNike111 avatar Jul 22 '23 07:07 DomiNike111

Upgrade your httpx version

acheong08 avatar Jul 22 '23 10:07 acheong08