This issues has observed while importing soundfile module at arm64 target. target runs on Python 3.7.4.
Soundfile.py is unable to get the sndfile but the same /usr/lib/libsndfile.so
linux$ python3 test_imports/test_audio.py
Traceback (most recent call last):
File "test_imports/test_audio.py", line 5, in
import soundfile
File "usr/lib/python3.7/site-packages/soundfile.py", line 142, in
OSError: sndfile library not found
So, I tried ctype.CDLL instead of find_library
-- _libname = _find_library('sndfile')
++ _libname = ctypes.CDLL('libsndfile.so')
++ print('Library: %s' % _libname)
But it is failing to open the _libname
linux$ python3 test_imports/test_audio.py
Library: <CDLL 'libsndfile.so', handle 3a832320 at 0x7f97cf0b50>
Traceback (most recent call last):
File "test_imports/test_audio.py", line 5, in
import soundfile
File "usr/lib/python3.7/site-packages/soundfile.py", line 147, in
TypeError: load_library() argument 1 must be str, bytes or bytearray, not CDLL
Any proper fix for this?
Jagan.
This issues has observed while importing soundfile module at arm64 target. target runs on Python 3.7.4.
Soundfile.py is unable to get the sndfile but the same /usr/lib/libsndfile.so
linux$ python3 test_imports/test_audio.py
Traceback (most recent call last):
File "test_imports/test_audio.py", line 5, in
import soundfile
File "usr/lib/python3.7/site-packages/soundfile.py", line 142, in
OSError: sndfile library not found
So, I tried ctype.CDLL instead of find_library
-- _libname = _find_library('sndfile')
++ _libname = ctypes.CDLL('libsndfile.so')
++ print('Library: %s' % _libname)
But it is failing to open the _libname
linux$ python3 test_imports/test_audio.py
Library: <CDLL 'libsndfile.so', handle 3a832320 at 0x7f97cf0b50>
Traceback (most recent call last):
File "test_imports/test_audio.py", line 5, in
import soundfile
File "usr/lib/python3.7/site-packages/soundfile.py", line 147, in
TypeError: load_library() argument 1 must be str, bytes or bytearray, not CDLL
Any proper fix for this?
Jagan.