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

Unable to import pocketsphinx when using Termux #377

Open
compilebunny opened this issue Jan 14, 2024 · 1 comment
Open

Unable to import pocketsphinx when using Termux #377

compilebunny opened this issue Jan 14, 2024 · 1 comment

Comments

@compilebunny
Copy link

This is on Termux v118
python 3.11.6
pocketsphinx 5.0.3

import pocketsphinx

produces


Traceback (most recent call last):
  File "/data/data/com.termux/files/home/sphinxtest.py", line 8, in <module>
    import pocketsphinx
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pocketsphinx/__init__.py", line 41, in <module>
    from . import _pocketsphinx as pocketsphinx  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: dlopen failed: cannot locate symbol "PyExc_ImportError" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pocketsphinx/_pocketsphinx.cpython-311.so"...

instead of making the pocketsphinx library available for use.

@dhdaines
Copy link
Contributor

Well, I was today days old when I learned what Termux is.

And it seems this is a known problem with a bunch of Python libraries: termux/termux-packages#12430

You can see the full list of stuff that doesn't work in Termux here: android/ndk#201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants