-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gTTS not wanting to import properly #50
Comments
How have you installed the module? Verify with When you have activated your virtual environment, run
|
I installed it with gTTS (1.1.6) |
and in your environment, the module files exist under |
Yep, both gtts, gtts_token, gTTS_token-1.1.1.dist-info, and gTTS-1.1.6.dist-info |
Could you try the command |
It gives me this: |
You could try this instead:
|
That gives this though:
|
Maybe this is related to http://stackoverflow.com/questions/16981921/relative-imports-in-python-3. Maybe try something like this:
or remove the dots in the import command in |
Ok so it I didn't know that the script shouldnt be named after the module. I have fixed it and now it seems to run. Now I'm wondering, is it possible for gTTS to speak the text without needing to write to a file, then playing it back? |
Currently not, i also requested this feature in #26 |
What would be recommended for playing a file, and also deleting (cause it would be temp) |
You can do this to play the file and then remove it:
|
@philipposslicher |
I wrote |
Then I tried: |
hello rerun this command first
|
Hi, this seems to still be an issue. I am using |
Traceback (most recent call last): Please help with this. It says module not found I checked Its was there, but still got this error... |
Traceback (most recent call last): Please help with this. its same problem coming in my side if you have any solution please help me |
Brother, @ajayprajapat171, when I can't find out what's the error is... I just unistalled and reinstalled... finally error got solved |
Thanks brother.. i tried this way and finally fixed out.. |
Is true, I unistalled and reinstalled. |
So I am trying to get gTTS to work
I know that you are supposed to import with
from gtts import gTTS
.I have a new virtualenv, with gtts, and speechrecognition installed and no matter what I do I can't get gTTS to import
If I try:
from gtts import gTTS
ImportError: cannot import name 'gTTS'
Any ideas?
Using Python
3.5.2
The text was updated successfully, but these errors were encountered: