rakuri255 / UltraSinger

AI based tool to convert vocals lyrics and pitch from music to autogenerate Ultrastar Deluxe, Midi and notes. It automatic tapping, adding text, pitch vocals and creates karaoke files.
MIT License
265 stars 24 forks source link

Pip install requirements fails at pyhypen on ubuntu wsl #126

Closed Lomusire closed 7 months ago

Lomusire commented 7 months ago

i allways get the following error while trying to install the required dependencys

Building wheels for collected packages: PyHyphen Building wheel for PyHyphen (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [31 lines of output] No name configuration, performing automatic discovery running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/hyphen copying src/hyphen/hyphenator.py -> build/lib.linux-x86_64-cpython-310/hyphen copying src/hyphen/dictools.py -> build/lib.linux-x86_64-cpython-310/hyphen copying src/hyphen/init.py -> build/lib.linux-x86_64-cpython-310/hyphen copying src/hyphen/textwrap2.py -> build/lib.linux-x86_64-cpython-310/hyphen running egg_info writing src/PyHyphen.egg-info/PKG-INFO writing dependency_links to src/PyHyphen.egg-info/dependency_links.txt writing requirements to src/PyHyphen.egg-info/requires.txt writing top-level names to src/PyHyphen.egg-info/top_level.txt reading manifest file 'src/PyHyphen.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'src/PyHyphen.egg-info/SOURCES.txt' running build_ext building 'hyphen.hnj' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/lib x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib -I/home/brumbrum/UltraSinger/.venv/include -I/usr/include/python3.10 -c lib/hnjalloc.c -o build/temp.linux-x86_64-cpython-310/lib/hnjalloc.o x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilib -I/home/brumbrum/UltraSinger/.venv/include -I/usr/include/python3.10 -c lib/hnjmodule.c -o build/temp.linux-x86_64-cpython-310/lib/hnjmodule.o lib/hnjmodule.c:3:10: fatal error: Python.h: No such file or directory 3 | #include "Python.h" | ^~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for PyHyphen Running setup.py clean for PyHyphen Failed to build PyHyphen

Lomusire commented 7 months ago

running sudo apt-get install python3-dev fixed this issue