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 install on raspberry pi 4 #25

Open
SiddiqMohammed opened this issue Nov 6, 2023 · 5 comments
Open

Unable to install on raspberry pi 4 #25

SiddiqMohammed opened this issue Nov 6, 2023 · 5 comments

Comments

@SiddiqMohammed
Copy link

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
Copy link

gustrd commented Nov 6, 2023

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
Copy link
Owner

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
Copy link

molgit commented Nov 21, 2023

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
Copy link

molgit commented Nov 22, 2023

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
Copy link

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

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

No branches or pull requests

5 participants