Skip to content

Unable to import pocketsphinx when using Termux #377

@compilebunny

Description

@compilebunny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions