OpenVoice icon indicating copy to clipboard operation
OpenVoice copied to clipboard

ModuleNotFoundError: No module named 'openvoice'

Open grigio opened this issue 1 year ago • 11 comments

I tried with your Colab but it also on native linux

import os
import torch
from openvoice import se_extractor
from openvoice.api import BaseSpeakerTTS, ToneColorConverter

ModuleNotFoundError                       Traceback (most recent call last)

[<ipython-input-1-de7f0ac64a9e>](https://localhost:8080/#) in <cell line: 3>()
      1 import os
      2 import torch
----> 3 from openvoice import se_extractor
      4 from openvoice.api import BaseSpeakerTTS, ToneColorConverter

ModuleNotFoundError: No module named 'openvoice'

grigio avatar Feb 27 '24 19:02 grigio

+1

withoutbuff avatar Mar 01 '24 02:03 withoutbuff

(openvoice) PS G:\open_voice\OpenVoice> python.exe .\openvoice\openvoice_app.py Traceback (most recent call last): File "G:\open_voice\OpenVoice\openvoice\openvoice_app.py", line 8, in from openvoice.api import BaseSpeakerTTS, ToneColorConverter File "C:\Users\anaconda3\envs\openvoice\lib\site-packages\openvoice\api.py", line 9, in from openvoice.text import text_to_sequence ModuleNotFoundError: No module named 'openvoice.text'

withoutbuff avatar Mar 01 '24 03:03 withoutbuff

I tried with your Colab but it also on native linux

import os
import torch
from openvoice import se_extractor
from openvoice.api import BaseSpeakerTTS, ToneColorConverter

ModuleNotFoundError                       Traceback (most recent call last)

[<ipython-input-1-de7f0ac64a9e>](https://localhost:8080/#) in <cell line: 3>()
      1 import os
      2 import torch
----> 3 from openvoice import se_extractor
      4 from openvoice.api import BaseSpeakerTTS, ToneColorConverter

ModuleNotFoundError: No module named 'openvoice'

git reset --hard 2c8a8e269a8f88c9970a254df70050cacfee0d3f

withoutbuff avatar Mar 01 '24 06:03 withoutbuff

+1

jinxiaotuan avatar Mar 12 '24 12:03 jinxiaotuan

(openvoice) PS G:\open_voice\OpenVoice> python.exe .\openvoice\openvoice_app.py Traceback (most recent call last): File "G:\open_voice\OpenVoice\openvoice\openvoice_app.py", line 8, in from openvoice.api import BaseSpeakerTTS, ToneColorConverter File "C:\Users\anaconda3\envs\openvoice\lib\site-packages\openvoice\api.py", line 9, in from openvoice.text import text_to_sequence ModuleNotFoundError: No module named 'openvoice.text'

+1

ntanhfai avatar Mar 22 '24 07:03 ntanhfai

You are just in the wrong folder to execute the code. Move to OpenVoice image

mambari avatar Apr 28 '24 20:04 mambari

Move file openvoice_app.py to \OpenVoice Folder,then run it !

image

ANK789 avatar Apr 29 '24 10:04 ANK789

I'm trying to run the demo_part1.py, and I'm getting the same message, even when I run it from the same folder where openvoice_app.py is. I've created a "test.py" file to run directly on command line with the virtual environment active, but same error pops up. Any clues?

Screenshot 2024-05-06 112823

Edit: Testing afterwards, if I use console I get the error, if I use Code + Jupyter (as by the Windows use guide) it works. Any way to run this on console?

ADD-eNavarro avatar May 06 '24 09:05 ADD-eNavarro