Skip to content

ModuleNotFoundError: No module named '_pywhispercpp' #114

@ezyyeah

Description

@ezyyeah

Hey!

I've seen related issues like #44 and #34 but none of the solutions I've tried have resolved the problem.
I attempted to build the wheel using:

CMAKE_ARGS="-DWHISPER_COREML=1" python -m build --wheel

However, installing it and running still results in the following error:

Traceback (most recent call last):
  File "/Users/ezy/Python/Others/pywhispercpp/pywhispercpp/examples/assistant.py", line 17, in <module>
    import pywhispercpp.constants as constants
  File "/Users/ezy/.pyenv/versions/3.11.11/lib/python3.11/site-packages/pywhispercpp/constants.py", line 10, in <module>
    import _pywhispercpp as _pwcpp
ModuleNotFoundError: No module named '_pywhispercpp'

I've also tried installing from source and exploring a few different approaches, but no luck so far.

Device: MacBook Pro (Mac15,6), Apple M3 Pro, 11-core CPU (5 performance + 6 efficiency), 18 GB RAM, macOS 15.2 (24C101), Darwin Kernel 24.2.0

Let me know if there's anything else I can try.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions