pyrubberband: Error: Please verify that rubberband-cli is installed
Description
I am new to this project and have been searching for time-stretching and pitch-shifting functionalities in python when I found this so, to test its working, I ran the “Example Usage” code from the pyrubberband github with one of my file but I got this error (image below).
I tried finding the solution to this on web, but had no leads as of now.
Versions
Windows-10-10.0.17134-SP0
Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
NumPy 1.16.4
SoundFile 0.9.0
Moreover
I think the problem is with the OS (I’m using windows, but found OS X codes around the web), and by the way I also tried pip install rubberband-cli in the prompt, cuz the error said “rubberband-cli not installed” but that generated another error :-
Collecting rubberband-cli
ERROR: Could not find a version that satisfies the requirement rubberband-cli (from versions: none)
ERROR: No matching distribution found for rubberband-cli
Later, I downloaded rubberband cli from here and tried installing that as well but that too didn’t help.
So finally I am here, hoping to get some positive response from the community. Thanks !
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (4 by maintainers)
I had the same problems on windows. What I did to solve: 1 Download rubberband library ( folder containing rubberband.exe and libsndfile-1.dll 2 Go to Windows System Environment and Add the folder to Path 3 Create System Variable with Variable name “rubberband” and path to the rubberband.exe 4 Make sure all your relevant users can access the path and the rubberband variable (for me, I had to set it up for the admin account and my local user account). This can be checked by opening cmd and typing “rubberband”. If the command works, the library is recognized. 5. Restart the Program in which you want to access the library (e.g. restart Visual Studio)
How To Install “rubberband-cli” Package on Ubuntu: sudo apt-get update -y sudo apt-get install -y rubberband-cli
I have the same issue. I’m working on google colab. Maybe someone has run into the same issue and knows how to fix it?
Install (seems to work fine) with:
!pip install pyrubberband==0.3.0Then running a pyrubberband function fails:
import soundfile as sfimport pyrubberband as pyrby = spec_df.loc[100,'spectrograms']sr = spec_df.loc[100,'samplerate_hz']y_stretch = pyrb.time_stretch(y, sr, 2.0)To fix the problem, I tried installing rubberband-cli with
!pip install rubberband-clibut it resulted in this error:
I also have the same error on Windows 10. I unzipped this, added the folder to
pathand sucessfully ran it from command line:Then I ran your code:
and got the error in line
y_shift = pyrb.pitch_shift(y, sr, 2):There was some issue regarding installation of rubberband in windows OS and hence i couldn’t work with pyrubberband. Also, there were no exact installation instructions of rubberband anywhere around the web.
Anyway, thanks for your help, I am now using sox and pysox for audio related manipulations.
Thank you, afey89, your solution worked for me. Here’s the link pointing to the zip containing rubberband.exe and sndfile.dll: https://breakfastquay.com/files/releases/rubberband-1.9.2-gpl-executable-windows.zip.