ImportError: cannot import name 'gTTS' from partially initialized module 'gtts' (most likely due to a circular import) (C:\Users\Gayathri Sai\PycharmProjects\audibook\gtts.py)
ImportError: cannot import name 'gTTS' from partially initialized module 'gtts' (most likely due to a circular import) (C:\Users\Gayathri Sai\PycharmProjects\audibook\gtts.py)
Looks like you're testing Google's Text-to-Speech and you innocently named your python file "gtts.py"(happened to me too). This conflicts with the import so you should rename your file to something else(e.g. test_gtts.py)
replace your imports with (Note the capital S at the end)
from gtts import gTTS
assuming you have it installed .
You want to import gtts, but the name of your file is gtts. So python doesn't know which one you want to import, the solution is simple just rename file in a way that doesn't interfere with the module's name.
I think your python file name is gtts.py that why is error is occur. change your file name.