Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Error with the example python code from the readme #77

Open
DomiNike111 opened this issue Jul 22, 2023 · 1 comment
Open

Error with the example python code from the readme #77

DomiNike111 opened this issue Jul 22, 2023 · 1 comment

Comments

@DomiNike111
Copy link

DomiNike111 commented Jul 22, 2023

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'

@acheong08
Copy link
Owner

Upgrade your httpx version

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants