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

Module bardapi not recognised anymore #80

Open
Alexo47 opened this issue Aug 9, 2023 · 2 comments
Open

Module bardapi not recognised anymore #80

Alexo47 opened this issue Aug 9, 2023 · 2 comments

Comments

@Alexo47
Copy link

Alexo47 commented Aug 9, 2023

I have been using this script that worked perfectly:

!pip install bardapi==0.1.23a
from bardapi import Bard
myToken = 'xxxxxxxx'
bard = Bard(token=myToken)

Now I get systematically an error 'ModuleNotFoundError: No module named 'bardapi'
at line ' from bardapi import Bard

Something changed?

Thanks for the attention, looking forward for feedback.

Cordially,
Alexandre

@RobinHood257
Copy link

RobinHood257 commented Aug 9, 2023

Yes, it seems there have been many changes. attributes like " bard.ask() " or " bard.generate() " are also do not work any more!

I used this code:
"""
import bard

response = bard.ask(input("Say Something! : "))

print(response)
"""

@Alexo47
Copy link
Author

Alexo47 commented Aug 9, 2023

Thanks!
My understanding is that my issue is related to management of packages in my development environment which was Jupiter Notebooks. I was not able to restore the situation that worked without problems.

I changed the developing environment to Pycharm Community and was able to install bardapi package and got no more problems with the same python script I was using in jupyter notebooks.

All these issues of establishing the right environment are still very confusing for me.

Thanks for the attention and feedback are welcome.

Cordially,
Alexandre

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