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

ImportError: libsoundio.so.2: cannot open shared object file: No such file or directory #37

Open
aaiaia opened this issue Jun 20, 2022 · 0 comments

Comments

@aaiaia
Copy link

aaiaia commented Jun 20, 2022

pysoundio library can't find shared library libsoundio.so.2.
To solve this problem, i set LD_LIBRARY_PATH manually like below.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.local/lib/python3.8/site-packages/pysoundio/libraries/linux

Could I figure out another way to solve the problem?

$ python3 record_ws_clt.py test_record.pcm --device 0 --rate 16000
Traceback (most recent call last):
  File "record_ws_clt.py", line 11, in <module>
    from pysoundio import (
  File "/home/pleya/.local/lib/python3.8/site-packages/pysoundio/__init__.py", line 35, in <module>
    from pysoundio._soundio.lib import (  # noqa: F401
ImportError: libsoundio.so.2: cannot open shared object file: No such file or directory

My environments are ... (plz see below logs)

$ cat /etc/issue
Ubuntu 20.04.4 LTS \n \l
$ python3 --version
Python 3.8.10
$ pip3 --version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
$ pip3 list | grep pysoundio
pysoundio                      2.0.0               
$ sudo apt list libsndfile1
Listing... Done
libsndfile1/focal-updates,focal-security,now 1.0.28-7ubuntu0.1 amd64 [installed]
libsndfile1/focal-updates,focal-security 1.0.28-7ubuntu0.1 i386
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

1 participant