Skip to content
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

ModuleNotFoundError: No module named 'MyShell_OpenVoice' #362

Open
kosulako opened this issue Feb 18, 2025 · 4 comments
Open

ModuleNotFoundError: No module named 'MyShell_OpenVoice' #362

kosulako opened this issue Feb 18, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@kosulako
Copy link

Hi, I installed openvoice according istructions for windows install - https://github.com/Alienpups/OpenVoice/blob/main/docs/USAGE_WINDOWS.md

Unfortunetly, i have error when I'm trying to start script. Error:
ModuleNotFoundError: No module named 'MyShell_OpenVoice'

in folder opevoice i have folder: MyShell_OpenVoice.egg-info
There in this folder i have only this files:

Image

verssion of myshell when i script this - (openvoice-env) PS C:\Users\Mateusz\projekt-ai\backend> pip show MyShell-OpenVoice

Name: MyShell-OpenVoice
Version: 0.0.0
Summary: Instant voice cloning by MyShell.
Home-page: https://github.com/myshell-ai/OpenVoice
Author: MyShell
Author-email: [email protected]
License: MIT License
Location: c:\users\mateusz\openvoice
Requires: librosa, faster-whisper, pydub, wavmark, numpy, eng-to-ipa, inflect, unidecode, whisper-timestamped, pypinyin, cn2an, jieba, gradio, langid
Required-by:

So i have version 0.0.0 ?
Whats wrong with this?

Please help, thanks.

Copy link

dosubot bot commented Feb 18, 2025

Hello, @kosulako! I'm here to help you with your OpenVoice issue. Let's get this sorted out together.

The ModuleNotFoundError: No module named 'MyShell_OpenVoice' error suggests that the module is not being recognized in your Python environment. Here are some steps to troubleshoot and resolve this issue:

  1. Verify Installation Path: Ensure that the MyShell-OpenVoice package is installed in the correct directory. The Location field in the pip show MyShell-OpenVoice output indicates where the package is installed. Make sure this path is included in your Python path.

  2. Check Package Installation: Since you have version 0.0.0, it might indicate an incomplete or placeholder installation. Reinstall the package to ensure it's correctly set up:

    pip uninstall MyShell-OpenVoice
    pip install -e .

    Run these commands in the directory where the setup.py file is located.

  3. Activate the Correct Environment: Make sure your virtual environment is activated. You should see the environment name in your command prompt, like (openvoice-env).

  4. Check Python Path: Ensure that the directory containing the MyShell-OpenVoice module is in your Python path. You can check this by running:

    import sys
    print(sys.path)

    Verify that the path to your installed package is listed.

  5. Verify Module Import: The correct import statement for the module should be:

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

    Ensure you are using the correct import paths in your scripts [1].

By following these steps, you should be able to resolve the ModuleNotFoundError. If the issue persists, double-check the installation steps and ensure all dependencies are correctly installed.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added the bug Something isn't working label Feb 18, 2025
@kosulako
Copy link
Author

  1. Verify Installation Path - i have MyShell-OpenVoice in openvoice folder: ../openvoice/MyShell-OpenVoice/ is it correct?
  2. I unistalled myshell and run command pip install -e . - myshell installed in version 0.0.0, axample: Requirement already satisfied: rpds-py>=0.7.1 in c:\users\mateusz\openvoice-env\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.48.0->MyShell-OpenVoice==0.0.0) (0.22.3)
  3. (openvoice-env) PS C:\Users\Mateusz> Get-Command python

CommandType Name Version Source


Application python.exe 3.9.150... C:\Users\Mateusz\openvoice-env\Scripts\python.exe
4. ['', 'C:\Users\Mateusz\AppData\Local\Programs\Python\Python39\python39.zip', 'C:\Users\Mateusz\AppData\Local\Programs\Python\Python39\DLLs', 'C:\Users\Mateusz\AppData\Local\Programs\Python\Python39\lib', 'C:\Users\Mateusz\AppData\Local\Programs\Python\Python39', 'C:\Users\Mateusz\openvoice-env', 'C:\Users\Mateusz\openvoice-env\lib\site-packages', 'c:\users\mateusz\openvoice', 'C:\Users\Mateusz\openvoice-env\lib\site-packages\win32', 'C:\Users\Mateusz\openvoice-env\lib\site-packages\win32\lib', 'C:\Users\Mateusz\openvoice-env\lib\site-packages\Pythonwin']
5. >>> from openvoice import se_extractor
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'openvoice'

from openvoice.api import BaseSpeakerTTS, ToneColorConverter
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'openvoice'

Copy link

dosubot bot commented Feb 21, 2025

The issue seems to be related to the installation and recognition of the MyShell-OpenVoice module. Here are some steps to help resolve this:

  1. Verify Directory Structure: Ensure that the MyShell-OpenVoice directory is correctly placed within the openvoice directory. The structure should look something like this:

    openvoice/
        MyShell-OpenVoice/
            setup.py
            openvoice/
                __init__.py
                se_extractor.py
                api.py
                ...
    
  2. Reinstall the Package: Since the version is showing as 0.0.0, it might indicate an incomplete installation. Try reinstalling the package:

    cd path/to/openvoice/MyShell-OpenVoice
    pip uninstall MyShell-OpenVoice
    pip install -e .
  3. Check Python Path: Ensure that the path to the openvoice directory is included in your Python path. You can add it manually in your script before importing:

    import sys
    sys.path.append('C:\\Users\\Mateusz\\openvoice')
  4. Correct Import Statements: Make sure you are using the correct import statements. If the module is correctly installed, you should be able to import it as follows:

    from openvoice import se_extractor
    from openvoice.api import BaseSpeakerTTS, ToneColorConverter
  5. Check for __init__.py: Ensure that there is an __init__.py file in the openvoice directory. This file is necessary for Python to recognize the directory as a package.

By following these steps, you should be able to resolve the ModuleNotFoundError. If the issue persists, double-check the directory structure and ensure all dependencies are correctly installed.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@kosulako
Copy link
Author

ok, i had issues in folder structure... Now i see this package doesnt support polish...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant