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

Windows : installation ..problem ? #175

Open
zigomario opened this issue Oct 16, 2024 · 8 comments
Open

Windows : installation ..problem ? #175

zigomario opened this issue Oct 16, 2024 · 8 comments

Comments

@zigomario
Copy link

zigomario commented Oct 16, 2024

Hello,

i'm not sur to understand the process instal. ( windows)
Python 3.10 : ok
ffmpeg in PATH : ok

Like run_on_windows don"t work .. i play manualy the scrypt :
[-](c:\UltraSinger>.venv/Scripts/activate.bat
cd src

i start finally here : (venv) c:\UltraSinger\src>

and..i try something like that :
py UltraSinger.py --crepe full --whisper large-v2 -i "input/song_to_parse.mp3" --language=en

Results : ModuleNotFoundError: No module named 'Levenshtein'

So.. i do "pip install Levenshtein"..
Replay my command..and :

Traceback (most recent call last):
File "c:\UltraSinger\src\UltraSinger.py", line 9, in
from packaging import version
ModuleNotFoundError: No module named 'packaging'

=> pip install packaging

And again again again... x module to install later..

and now new Error :

ImportError: cannot import name 'Hyphenator' from 'hyphen' (c:\UltraSinger\venv\lib\site-packages\hyphen_init.py)_

Finaly, i'm not sur that i need to install all this module... my process install is wrong ? ( maybe error on my python ? )

edit ..
After 15 module to install.. some trap ( downgrade yumi.., double install of hyphen) .. it's work ..
I'm always suprising about this process but thanks you anyway for the tools

Thanks to advance

@mARTin-B78
Copy link

mARTin-B78 commented Oct 18, 2024

I had the same issue on a Fresh installed Windows 10
and running these commands in the CMD with Admin rights helped.
`
pip install pytube
pip install python-Levenshtein
pip install packaging
pip install ffmpeg-python
pip install demucs
pip install pydub
pip install librosa
pip install dataclasses_json
pip install yt_dlp
pip install pillow
pip install musicbrainzngs
pip install pretty_midi
pip install unidecode
pip install crepe
pip install hyphen
pip install Hyphenator
pip install pyhyphen
pip install whisperx
pip install langcodes
pip install music21
pip install tensorflow
pip install tensorflow-cpu

`

Maybe the requirements.txt needs an update to add these?

@rakuri255
Copy link
Owner

The issue is in the requirement.txt and is releated to this issue: #170

I bumped the corrupt matplotlib. Should work now.
Can you guys confirm?

@mARTin-B78
Copy link

mARTin-B78 commented Oct 19, 2024

How can I confirm it as now everything is installed.
How can I set it back to a previous stage? Delete the Python310\Lib\site-packages folder?

@mARTin-B78
Copy link

without changing anything I get this error now
"WARNING: Ignoring invalid distribution -ensorflow (c:\users\martin\appdata\local\programs\python\python310\lib\site-packages)"

think it is the torch Package

pip install torch --no-cache-dir

WARNING: Ignoring invalid distribution -ensorflow (c:\users\martin\appdata\local\programs\python\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ensorflow (c:\users\martin\appdata\local\programs\python\python310\lib\site-packages)
Requirement already satisfied: torch in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (2.5.0)
Requirement already satisfied: networkx in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (from torch) (3.3)
Requirement already satisfied: typing-extensions>=4.8.0 in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (from torch) (4.12.2)
Requirement already satisfied: filelock in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (from torch) (3.15.4)
Requirement already satisfied: fsspec in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (from torch) (2024.6.1)
Requirement already satisfied: jinja2 in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (from torch) (3.1.4)
Requirement already satisfied: sympy==1.13.1 in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (from torch) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (from sympy==1.13.1->torch) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\martin\appdata\local\programs\python\python310\lib\site-packages (from jinja2->torch) (2.1.5)
WARNING: Ignoring invalid distribution -ensorflow (c:\users\martin\appdata\local\programs\python\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ensorflow (c:\users\martin\appdata\local\programs\python\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ensorflow (c:\users\martin\appdata\local\programs\python\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ensorflow (c:\users\martin\appdata\local\programs\python\python310\lib\site-packages)

@mARTin-B78
Copy link

mARTin-B78 commented Oct 19, 2024

I create installation Batch Scripts that install everything needed to run UltraSinger.

  • winget
  • ffmpeg
  • python 3.10
  • git
  • ultrasinger
  • musescore

JUST REMOVE THE ".TXT" at the end of the Files, Apart from the file "additional-requirements.txt" that stays as it is. additional-requirements.txt

Open an CMD Console in windows with admin rights.

1st-part-install-winget-ffmpeg-and-python-3.10.bat
1st-part-install-winget-ffmpeg-and-python-3.10.bat.TXT
REBOOT - cause of Python

Open an CMD Console in windows with admin rights.

2nd-part-install-git-ultrasinger-with-modules-musescore.bat
2nd-part-install-git-ultrasinger-with-modules-musescore.bat.TXT

When Everything is installed you can use a Batchfile to Generate Karaoke Songs out of Youtube Playlists with UltraSinger
batch_generate_karaoke_songs_from_youtube_playlist_with_ultrasinger.bat.txt

@rakuri255
Copy link
Owner

For reinstallation you should delete the venv folder.
For go to previous version you can checkout previous commit with git.

@rakuri255
Copy link
Owner

@mARTin-B78 make an PR and we could add it to the project :)

@mARTin-B78
Copy link

I recreated the Installer for Windows made for people who are not programmers and have most tools not installed yet.

Batch Script 1 1st-part-install-winget-ffmpeg-and-python-3.10.bat download and remove the ".TXT"
1st-part-install-winget-ffmpeg-and-python-3.10.bat.TXT

  1. Check and Install Winget
    Verifies if Winget is installed; if not, it installs Winget automatically.
  2. Check and Install FFMPEG
    Tests if FFMPEG is installed; if missing, installs FFMPEG and sets the environment variable.
  3. Check and Install Python 3.10
    Ensures Python 3.10 is installed; if not, installs it and sets the environment variable.

Finally, it informs the user to reboot the system.

Batch Script 2 2nd-part-install-git-ultrasinger-with-modules-musescore.bat
2nd-part-install-git-ultrasinger-with-modules-musescore.bat.TXT download and remove the ".TXT"

  1. Re-check and Install Winget
    Confirms that Winget is truly installed; if not, installs it, or skips this step if already present.
  2. Check and Install PIP
    Verifies if PIP is installed and installs it if necessary.
  3. Check and Install GIT
    Ensures GIT is installed; if not, it installs GIT.
  4. Check and Install UltraSinger
    Checks if UltraSinger is installed and installs it if needed.
  5. Check and Optional Install of MuseScore
    Verifies if MuseScore is installed; if not, it asks the user whether to install MuseScore.
  6. Install Python Packages from requirements.txt
    Installs all required packages listed in requirements.txt.
  7. Check and Install CUDA
    Checks if a GPU is available. If yes, installs CUDA; otherwise, sets up CPU support.
  8. Additional Python Packages
    Installs missing Python packages from additional-requirements.txt.

at the end it uninstalls torch and reinstalls torch - I do not know why it does not work without that step.

File with python modules that seme to be missing
additional-requirements.txt

Batch workflow
batch_generate_karaoke_songs_from_youtube_playlist_with_ultrasinger.bat.TXT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants