minimaxir / simpleaichat

Python package for easily interfacing with chat apps, with robust features and minimal code complexity.
MIT License
3.43k stars 224 forks source link

ImportError #60

Open rkhaziga opened 11 months ago

rkhaziga commented 11 months ago

Hey! Nice work, but I get this error for some reason.

Error: ImportError: cannot import name 'AIChat' from partially initialized module 'simpleaichat' (most likely due to a circular import)

I used the first code from github page: from simpleaichat import AIChat

AIChat(api_key="...") # inserted my api-key here ai = AIChat(system="Write a fancy GitHub README based on the user-provided project name.") ai("simpleaichat")

Before that I installed: pip3 install simpleaichat

minimaxir commented 11 months ago

This may be an error with the Python installation and likely not an issue with simpleaichat. Try uninstalling it with pip3 uninstall simpleaichat and reinstalling it.

SandorSeres commented 11 months ago

I have the same issue. Uninstalled and installed again, but the problem remains. Python 3.8.10

pyrotank41 commented 10 months ago

did you name your file "simpleaichat.py"?