so-vits-svc-fork
so-vits-svc-fork copied to clipboard
[Manjaro Linux x86_64] Library 'libportaudio.so.2'/`GLIBCXX_3.4.30' cannot be found
I attempted to run svcg while following this video tutorial and I get this error message:
Traceback (most recent call last): File "/home/person/anaconda3/bin/svcg", line 5, in <module> from so_vits_svc_fork.gui import main File "/home/person/anaconda3/lib/python3.10/site-packages/so_vits_svc_fork/gui.py", line 8, in <module> import sounddevice as sd File "/home/person/anaconda3/lib/python3.10/site-packages/sounddevice.py", line 72, in <module> _lib = _ffi.dlopen(_libname) OSError: cannot load library 'libportaudio.so.2': /home/person/anaconda3/bin/../lib/libstdc++.so.6: version GLIBCXX_3.4.30 not found (required by /usr/lib/libjack.so.0)
RUN DOWN OF MY ATTEMPT TO FOLLOW THE TUTORIAL:
I installed 'Anaconda3-2023.03-Linux-x86_64.sh' through the terminal, which resulted in anaconda3 and it's contents being made in my home folder. But I tried to run it as a normal user and 'conda' wasn't a recognized command, so I had to add my 'conda' path to my .zsh file in bash. After that was completed I got another error when I tried to create a name for conda, which was resolved by inputting the command conda init zsh . I then installed torch audio and -U so-vits-svc-fork by inputting these commands: pip install -U torch torchaudio --index-url https://download.pytorch.org/whl/rocm5.4.2 & pip install -U so-vits-svc-fork
I then activated my user in conda, and tried load svcg which gave me errors about lacking pyqt5==5.15.4 & pyqtwebengine==5.15.4, which I installed through pip. But still "GLIBCXX" wasn't found
MY ATTEMPT TO RESOLVE THE ISSUE:
Here are the commands I inputted:
sudo pacman -Syu
sudo pacman -S lib32-gcc-libs
find /usr -name "libstdc++.so.6"
bash
sudo rm /usr/lib/libstdc++.so.6
sudo ln -s /usr/lib32/libstdc++.so.6 /usr/lib/libstdc++.so.6
strings /usr/lib/libstdc++.so.6 | grep GLIBCXX
sudo pacman -S lib32-libstdc++5
Then I had my WM/DE crash on me and had the errors mentioned here:
,
which was resolved by sudo pacman-mirrors -f && sudo pacman -Syyu plasma-desktop sddm qt5-base and systemctl reboot.
And now my DE works but I still have the same error about GLIBCXX_3.4.30' not being found.

Maybe importing sounddevice is very strugging for some people and should be surrounded by try-catch Anyway this is not a problem with this repository, so it might be good to seek help elsewhere.
If anyone else runs into this issue, the solution is to upgrade libstdcxx-ng to version 12.x (conda install -c conda-forge libstdcxx-ng=12).