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

[Manjaro Linux x86_64] Library 'libportaudio.so.2'/`GLIBCXX_3.4.30' cannot be found #328

Open
acfsas opened this issue Apr 14, 2023 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@acfsas
Copy link

acfsas commented Apr 14, 2023

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.
Screenshot_20230414_011728
Screenshot_20230414_011309

@acfsas acfsas added the bug Something isn't working label Apr 14, 2023
@34j
Copy link
Collaborator

34j commented Apr 14, 2023

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.

@34j 34j added the documentation Improvements or additions to documentation label May 4, 2023
@timawesomeness
Copy link

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).

@YannickGibson
Copy link

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).

Does not work for me.

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

No branches or pull requests

4 participants