trying to extract the beat of a song using librosa in python. heres the code:

import librosa
import numpy as np

def extract_beats(audio_path):
    y, sr = librosa.load(audio_path)
    tempo, beats = librosa.beat.beat_track(y=y, sr=sr)
    beat_times = librosa.frames_to_time(beats, sr=sr)
    return beat_times

beat_times = extract_beats('badstyle-timeback.mp3')
np.savetxt('beat_times.txt', beat_times)



but i get this error:
[Running] python -u "c:\Users\alous\Desktop\ProgProjekte\squareBeats-tt\main.py"
[C:\vcpkg\buildtrees\mpg123\src\0d8db63f9b-3db975bc05.clean\src\libmpg123\parse.c:skip_junk():1276] error: Giving up searching valid MPEG header after 65536 bytes of junk.
c:\Users\alous\Desktop\ProgProjekte\squareBeats-tt\main.py:5: UserWarning: PySoundFile failed. Trying audioread instead.
  y, sr = librosa.load(audio_path)
C:\Users\alous\AppData\Roaming\Python\Python312\site-packages\librosa\core\audio.py:184: FutureWarning: librosa.core.audio.__audioread_load
	Deprecated as of librosa version 0.10.0.
	It will be removed in librosa version 1.0.
  y, sr_native = __audioread_load(path, offset, duration, dtype)
Traceback (most recent call last):
  File "C:\Users\alous\AppData\Roaming\Python\Python312\site-packages\librosa\core\audio.py", line 176, in load
    y, sr_native = __soundfile_load(path, offset, duration, dtype)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\alous\AppData\Roaming\Python\Python312\site-packages\librosa\core\audio.py", line 209, in __soundfile_load
    context = sf.SoundFile(path)
              ^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\soundfile.py", line 658, in __init__
    self._file = self._open(file, mode_int, closefd)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\soundfile.py", line 1216, in _open
    raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'badstyle-timeback.mp3': File does not exist or is not a regular file (possibly a pipe?).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\alous\Desktop\ProgProjekte\squareBeats-tt\main.py", line 10, in <module>
    beat_times = extract_beats('badstyle-timeback.mp3')
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\alous\Desktop\ProgProjekte\squareBeats-tt\main.py", line 5, in extract_beats
    y, sr = librosa.load(audio_path)
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\alous\AppData\Roaming\Python\Python312\site-packages\librosa\core\audio.py", line 184, in load
    y, sr_native = __audioread_load(path, offset, duration, dtype)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\alous\AppData\Roaming\Python\Python312\site-packages\librosa\util\decorators.py", line 59, in __wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\alous\AppData\Roaming\Python\Python312\site-packages\librosa\core\audio.py", line 240, in __audioread_load
    reader = audioread.audio_open(path)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\audioread\__init__.py", line 132, in audio_open
    raise NoBackendError()
audioread.exceptions.NoBackendError

[Done] exited with code=1 in 19.53 seconds