pocketsphinx-python icon indicating copy to clipboard operation
pocketsphinx-python copied to clipboard

import fails libasan.so

Open johngebbie opened this issue 5 years ago • 0 comments

It installs fine but it goofs when I try to import it like so:

$ python3 -c 'import pocketsphinx' 

Traceback (most recent call last):
  File "/home/john/test/venv/lib/python3.9/site-packages/sphinxbase/__init__.py", line 40, in <module>
    from .ad_pulse import *
  File "/home/john/test/venv/lib/python3.9/site-packages/sphinxbase/ad_pulse.py", line 27, in <module>
    from . import _ad_pulse
ImportError: libasan.so.5: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/john/test/venv/lib/python3.9/site-packages/pocketsphinx/__init__.py", line 35, in <module>
    from sphinxbase import *
  File "/home/john/test/venv/lib/python3.9/site-packages/sphinxbase/__init__.py", line 42, in <module>
    from .ad_alsa import *
  File "/home/john/test/venv/lib/python3.9/site-packages/sphinxbase/ad_alsa.py", line 27, in <module>
    from . import _ad_alsa
ImportError: libasan.so.5: cannot open shared object file: No such file or directory

I'm using Void Linux and pip.

I feel like it's related to environment variables.

johngebbie avatar Nov 29 '20 16:11 johngebbie