Error: Please verify that rubberband-cli is installed

See original GitHub issue

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).

1 2

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 !

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
afey89commented, Feb 26, 2021

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)

2reactions
marathomascommented, Jun 26, 2020

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.0

Collecting pyrubberband==0.3.0 Downloading https://files.pythonhosted.org/packages/66/03/079d3adead19dc0af62a02c7850318055aa2dec9453c92886219b642b904/pyrubberband-0.3.0.tar.gz Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from pyrubberband==0.3.0) (1.12.0) Collecting pysoundfile>=0.8.0 Downloading https://files.pythonhosted.org/packages/2a/b3/0b871e5fd31b9a8e54b4ee359384e705a1ca1e2870706d2f081dc7cc1693/PySoundFile-0.9.0.post1-py2.py3-none-any.whl Requirement already satisfied: cffi>=0.6 in /usr/local/lib/python3.6/dist-packages (from pysoundfile>=0.8.0->pyrubberband==0.3.0) (1.14.0) Requirement already satisfied: pycparser in /usr/local/lib/python3.6/dist-packages (from cffi>=0.6->pysoundfile>=0.8.0->pyrubberband==0.3.0) (2.20) Building wheels for collected packages: pyrubberband Building wheel for pyrubberband (setup.py) … done Created wheel for pyrubberband: filename=pyrubberband-0.3.0-cp36-none-any.whl size=4283 sha256=2097d6c70cba3e2aa9895016ff43d39363be94b4e51e118b6c07207f3df958b6 Stored in directory: /root/.cache/pip/wheels/aa/b3/2e/e1f66716b0d9b1e18136227ee204682100d837e72c5ea57b1d Successfully built pyrubberband Installing collected packages: pysoundfile, pyrubberband Successfully installed pyrubberband-0.3.0 pysoundfile-0.9.0.post1

Then running a pyrubberband function fails: import soundfile as sf import pyrubberband as pyrb y = spec_df.loc[100,'spectrograms'] sr = spec_df.loc[100,'samplerate_hz'] y_stretch = pyrb.time_stretch(y, sr, 2.0)

FileNotFoundError Traceback (most recent call last) /usr/local/lib/python3.6/dist-packages/pyrubberband/pyrb.py in __rubberband(y, sr, **kwargs) 73 —> 74 subprocess.check_call(arguments, stdout=DEVNULL, stderr=DEVNULL) 75 7 frames /usr/lib/python3.6/subprocess.py in check_call(*popenargs, **kwargs) 305 “”" –> 306 retcode = call(*popenargs, **kwargs) 307 if retcode: /usr/lib/python3.6/subprocess.py in call(timeout, *popenargs, **kwargs) 286 “”" –> 287 with Popen(*popenargs, **kwargs) as p: 288 try: /usr/lib/python3.6/subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors) 728 errread, errwrite, –> 729 restore_signals, start_new_session) 730 except: /usr/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session) 1363 err_msg += ‘: ’ + repr(err_filename) -> 1364 raise child_exception_type(errno_num, err_msg, err_filename) 1365 raise child_exception_type(err_msg) FileNotFoundError: [Errno 2] No such file or directory: ‘rubberband’: ‘rubberband’ The above exception was the direct cause of the following exception: RuntimeError Traceback (most recent call last) <ipython-input-20-f9e2176cfcf8> in <module>() 6 sr = spec_df.loc[100,‘samplerate_hz’] 7 #Play back at double speed ----> 8 y_stretch = pyrb.time_stretch(y, sr, 2.0) /usr/local/lib/python3.6/dist-packages/pyrubberband/pyrb.py in time_stretch(y, sr, rate, rbargs) 140 rbargs.setdefault(’–tempo’, rate) 141 –> 142 return __rubberband(y, sr, **rbargs) 143 144 /usr/local/lib/python3.6/dist-packages/pyrubberband/pyrb.py in __rubberband(y, sr, **kwargs) 85 'Please verify that rubberband-cli ’ 86 ‘is installed.’), —> 87 exc) 88 89 finally: /usr/local/lib/python3.6/dist-packages/six.py in raise_from(value, from_value) RuntimeError: Failed to execute rubberband. Please verify that rubberband-cli is installed.

To fix the problem, I tried installing rubberband-cli with !pip install rubberband-cli

but it resulted in this error:

ERROR: Could not find a version that satisfies the requirement rubberband-cli (from versions: none) ERROR: No matching distribution found for rubberband-cli

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3.6: how to install rubberband? - Stack Overflow
Yes I tried that, but it gives the following error: "RuntimeError: Failed to execute rubberband. Please verify that rubberband-cli is installed.
Read more >
rubberband - PyPI
pip3 install rubberband. The install script does check for the required libraries, and will complain vociferously if they cannot be located.
Read more >
How To Install "rubberband-cli" Package on Ubuntu
Step 3. Check the system logs to confirm that there are no related errors. You can use ZoomAdmin to check the logs, manager...
Read more >
How to install rubberband-cli on Ubuntu
Installing rubberband -cli package on Ubuntu is as easy as running the following command on terminal: sudo apt-get update sudo apt-get install rubberband-cli...
Read more >
sudo apt-get install rubberband-cli - DevManuals.Net
If rubberband-cli is not installed on your compter then the command 'dpkg -L rubberband-cli' will give followin error. deepak@deepak-VirtualBox:~$ dpkg -L ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found