abdeladim-s / pywhispercpp

Python bindings for whisper.cpp
https://abdeladim-s.github.io/pywhispercpp/
MIT License
129 stars 15 forks source link

Unable to install on raspberry pi 4 #25

Open SiddiqMohammed opened 8 months ago

SiddiqMohammed commented 8 months ago

Hello,

The original code by ggerganov works with the raspberry pi as well, I was hoping a python wrapper could also work with it.

Currently when I run pip install pywhispercpp I get a build error:

exit status 1.

ERROR: FAILED building wheel for pywhispercpp
Failed to build pywhispercpp
ERROR: Could not build wheels for pywhispercpp, which is required to install pyproject.toml-based projects
gustrd commented 8 months ago

In certain cases, Python dependencies might not function as intended across diverse architectures. For instance, I encountered challenges running applications requiring Rust on the Raspberry Pi Zero.

abdeladim-s commented 8 months ago

Hello @SiddiqMohammed, Yeah there are no pre-built wheels for ARM unfortunately, but if ggerganov's code works then I think you just need to build the package from source. I think pip install will try to build it automatically, but the error you reported does not say anything, maybe there is something wrong with Python dependencies As @gustrd pointed out.

molgit commented 7 months ago

Hello,

The original code by ggerganov works with the raspberry pi as well, I was hoping a python wrapper could also work with it.

Currently when I run pip install pywhispercpp I get a build error:

exit status 1.

ERROR: FAILED building wheel for pywhispercpp
Failed to build pywhispercpp
ERROR: Could not build wheels for pywhispercpp, which is required to install pyproject.toml-based projects

I'm getting same error on my Mac. Were you able to fix it?

molgit commented 7 months ago

Hello, The original code by ggerganov works with the raspberry pi as well, I was hoping a python wrapper could also work with it. Currently when I run pip install pywhispercpp I get a build error:

exit status 1.

ERROR: FAILED building wheel for pywhispercpp
Failed to build pywhispercpp
ERROR: Could not build wheels for pywhispercpp, which is required to install pyproject.toml-based projects

I'm getting same error on my Mac. Were you able to fix it?

It seems that there was an issue with my python version. I've uninstalled python 3.12 and I still had 11 on my Mac installed. So after uninstalling 3.12 I got it to work

josemikkola commented 2 months ago

Replacing python 3.12.3 with 3.11.9 fixed this for me. Not sure what the actual problem was. Win11-64.

CMake Error at whisper.cpp/CMakeLists.txt:273 (add_library): Cannot find source file: ggml.h

    Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
    .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
    .f95 .f03 .hip .ispc

CMake Error at whisper.cpp/CMakeLists.txt:273 (add_library): No SOURCES given to target: whisper CMake Generate step failed. Build files cannot be regenerated correctly. ... yada yada ... [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pywhispercpp