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

AttributeError: module 'librosa' has no attribute 'output' #23

Open
vijaypanchal opened this issue May 23, 2021 · 0 comments
Open

AttributeError: module 'librosa' has no attribute 'output' #23

vijaypanchal opened this issue May 23, 2021 · 0 comments

Comments

@vijaypanchal
Copy link

App generates below logs

`

  • Serving Flask app 'app' (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
  • Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 666-792-098
    [youtube] a4NGZFMhEUY: Downloading webpage
    [download] Destination: out/test.wav
    [download] 100% of 3.63MiB in 00:00
    [ffmpeg] Post-process file out/test.wav exists, skipping
    127.0.0.1 - - [23/May/2021 12:22:59] "POST /convert HTTP/1.1" 200 -
    /home/vijay/Downloads/8D-Audio/librosa/librosa/core/audio.py:165: UserWarning: PySoundFile failed. Trying audioread instead.
    warnings.warn("PySoundFile failed. Trying audioread instead.")
    /home/vijay/Downloads/8D-Audio/librosa/librosa/core/audio.py:165: UserWarning: PySoundFile failed. Trying audioread instead.
    warnings.warn("PySoundFile failed. Trying audioread instead.")
    Debugging middleware caught exception in streamed response at a point where response headers were already sent.
    Traceback (most recent call last):
    File "/home/vijay/.local/lib/python3.8/site-packages/werkzeug/wsgi.py", line 462, in next
    return self._next()
    File "/home/vijay/.local/lib/python3.8/site-packages/werkzeug/wrappers/response.py", line 49, in _iter_encoded
    for item in iterable:
    File "/home/vijay/Downloads/8D-Audio/app.py", line 47, in long_time
    save_song('./out/in.wav', wav, sampling_rate)
    File "/home/vijay/Downloads/8D-Audio/audio_features.py", line 31, in save_song
    librosa.output.write_wav(name, wav, sampling_rate)
    AttributeError: module 'librosa' has no attribute 'output'`
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

1 participant