openai / jukebox

Code for the paper "Jukebox: A Generative Model for Music"
https://openai.com/blog/jukebox/
Other
7.81k stars 1.4k forks source link

Keep getting this error #276

Open refreshedcyberjohn opened 1 year ago

refreshedcyberjohn commented 1 year ago

So whenever I run the V2 notebook on Colab, it keeps giving me this error: error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for llvmlite (setup.py) ... error ERROR: Failed building wheel for llvmlite Running setup.py clean for llvmlite Successfully built jukebox fire librosa numba mpi4py Failed to build llvmlite Installing collected packages: llvmlite, unidecode, tqdm, numba, mpi4py, fire, soundfile, resampy, librosa, jukebox Attempting uninstall: llvmlite Found existing installation: llvmlite 0.39.1 Uninstalling llvmlite-0.39.1: Successfully uninstalled llvmlite-0.39.1 error: subprocess-exited-with-error

× Running setup.py install for llvmlite did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Running setup.py install for llvmlite ... error WARNING: No metadata found in /usr/local/lib/python3.9/dist-packages Rolling back uninstall of llvmlite Moving to /usr/local/lib/python3.9/dist-packages/llvmlite-0.39.1.dist-info/ from /usr/local/lib/python3.9/dist-packages/~lvmlite-0.39.1.dist-info Moving to /usr/local/lib/python3.9/dist-packages/llvmlite/ from /usr/local/lib/python3.9/dist-packages/~lvmlite error: legacy-install-failure

× Encountered error while trying to install package. ╰─> llvmlite

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

ModuleNotFoundError Traceback (most recent call last) in 6 get_ipython().system('pip install --upgrade git+https://github.com/craftmine1000/jukebox-saveopt.git') 7 ----> 8 import jukebox 9 import torch as t 10 import librosa

ModuleNotFoundError: No module named 'jukebox'


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.

What is going on?

arkaneskye commented 1 year ago

I'm getting this too, nothing seems to work, manually installing dependencies seems to cause more problems

Broccaloo commented 1 year ago

All Colab notebooks for Jukebox were broken because Colab upgraded to Python 3.9.

The jukebox-saveopt repo, which is used by the One-Click V2 notebook you mentioned has been fixed already, so everything should be back to normal there. https://colab.research.google.com/drive/1sJda9v46gNzBc7m59MP5zn63AWc-axCY?usp=sharing

As for all notebooks that use the official repo, they are still broken. I'm doubtful whether OpenAI wants to fix this, considering there haven't been updates for years.

refreshedcyberjohn commented 1 year ago

Oh, I see, and it works now.

clearsitedesigns commented 1 year ago

How did you get it to work? I still see the same issue.

Broccaloo commented 1 year ago

How did you get it to work? I still see the same issue.

As I mentioned above, all notebooks that use the standard repo are still broken. You can use my fork instead, where the issue is fixed https://github.com/Broccaloo/jukebox

240db commented 1 year ago

Thanks for the information Broccaloo, btw your samples with jukebox are super awesome, thanks for sharing the repo and the notebook!

Byron-Zoomry commented 1 year ago

can we install your fork locally? Installation instructions seem to be the same as the main repo and I get that pesky mpi error