Closed athuljayaraj closed 6 years ago
you need to do one of these;
export PYTHONPATH="/path/to/TTS"
or install TTS with ;
python setup.py develop
I tried both. No luck.
One must work. Are you sure you are okay with the environment? Maybe things got mixed between nomral python and conda environments?
Something's wrong with the path I guess. PYTHONPATH currently points to the git clone directory. Is that the right place?
$ echo $PYTHONPATH
/path/to/TTS
>>> from TTS.utils.audio import AudioProcessor
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'TTS'
>>> from utils.audio import AudioProcessor
>>> AudioProcessor
<class 'utils.audio.AudioProcessor'>
This /path/to/TTS
needs to be /path/to/parent_folder_of_TTS
, if it is already not. Could you also try to install it as I showed above?
It's working! I changed /path/to/TTS
to /path/to/parent_folder_of_TTS
Thanks..
Should we update the wiki, for people like me who are new to this? Just a thought :)
good we solved that !
Also have this error on MacOS + Python 3.6.5, after python setup.py develop
But this helped:
cd /Users/user/external_projects/text-to-speech
git clone git@github.com:mozilla/TTS.git
export PYTHONPATH="$PYTHONPATH:/Users/user/external_projects/text-to-speech"
But running notebooks/Benchmark.ipynb
Get error:
~/external_projects/text-to-speech/TTS/layers/attention.py in <module>
2 from torch import nn
3 from torch.nn import functional as F
----> 4 from utils.generic_utils import sequence_mask
5
6
ModuleNotFoundError: No module named 'utils.generic_utils'; 'utils' is not a package
After putting Benchmark.ipynb
in git root folder it works.
cp notebooks/Benchmark.ipynb Benchmark.ipynb
I'm still not clear about this at all. Mine is like: $ echo $PYTHONPATH /home/dude/Git/TTS
When you mean parent_folder_of_tts, do you mean:
/home/dude/Git/
I've tried both and nether work. I still get:
sudo nvidia-docker run -it --rm -p 5002:5002 mozilla-tts
from synthesizer import Synthesizer
File "/srv/app/server/synthesizer.py", line 8, in
I've also tried: python setup.py develop error: Setup script exited with error: command 'g++' failed with exit status 1
When I got gcc 9.1.0-2 well as gcc 8 I dont get it...
I am trying to run my code on collab but it gives me this error.
Traceback (most recent call last):
File "TTS/train.py", line 27, in <module>
from TTS.utils.speakers import load_speaker_mapping, save_speaker_mapping, \
File "/usr/local/lib/python3.6/dist-packages/TTS-0.0.3+b1935c9-py3.6.egg/TTS/utils/speakers.py", line 4, in <module>
from TTS.datasets.preprocess import get_preprocessor_by_name
File "/usr/local/lib/python3.6/dist-packages/TTS-0.0.3+b1935c9-py3.6.egg/TTS/datasets/preprocess.py", line 9, in <module>
from TTS.tts.utils.generic_utils import split_dataset
ModuleNotFoundError: No module named 'TTS.tts'
how to fix it?
What did you try already?
I tried everything that you said @thorstenMueller
for this pip list | grep TTS @thorstenMueller TTS (0.0.3+b1935c9, /usr/local/lib/python3.6/dist-packages/TTS-0.0.3+b1935c9-py3.6.egg)
@xoxoxo13102020 I encountered the same issue and solved it by checking out fork db7f3d3, i.e.
git checkout db7f3d3
Someone solve this in windows ?
you need to do one of these;
export PYTHONPATH="/path/to/TTS"
or install TTS with ;
python setup.py develop
Where you put this ?
In case anyone comes across this issue on windows, here are the steps I took to solve it:
Hope this helps someone!
you need to do one of these;
export PYTHONPATH="/path/to/TTS"
or install TTS with ;
python setup.py develop
how to export pythonpath im not coder please help
solution is simple
Python version: 3.6.6
requirements.txt
installation successful.python3.6 setup.py develop
successfully completed.But TTS module not generated.
Are there any paths to be set? I am not using virtualenv.
Tried the same with miniconda as well, but no luck.