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

pip dependencies #493

Closed
nasko25 opened this issue Oct 4, 2024 · 11 comments
Closed

pip dependencies #493

nasko25 opened this issue Oct 4, 2024 · 11 comments

Comments

@nasko25
Copy link

nasko25 commented Oct 4, 2024

Can anyone generate me a working pip freeze --all including all dependencies and versions needed by audiocraft?

Even since a couple of weeks ago pip install -e . stopped working for me because audiocraft is requiring some deprecated functionality from older versions of some dependencies and I have been struggling finding a working combination of dependency versions.

@luckandrew
Copy link

+1

@nasko25
Copy link
Author

nasko25 commented Oct 7, 2024

I got it working with python 3.9.20 and these versions:

aiofiles==23.2.1
altair==5.4.1
annotated-types==0.7.0
antlr4-python3-runtime==4.9.3
anyio==4.6.0
attrs==24.2.0
audioread==3.0.1
av==11.0.0
blis==0.7.11
catalogue==2.0.10
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.3.2
click==8.1.7
cloudpathlib==0.19.0
cloudpickle==3.0.0
colorlog==6.8.2
confection==0.1.5
contourpy==1.2.1
cycler==0.12.1
cymem==2.0.8
decorator==5.1.1
demucs==4.0.1
docopt==0.6.2
dora_search==0.1.12
einops==0.8.0
encodec==0.1.1
exceptiongroup==1.2.2
fastapi==0.112.4
ffmpy==0.4.0
filelock==3.16.1
flashy==0.0.2
fonttools==4.54.1
fsspec==2024.9.0
gradio==4.43.0
gradio_client==1.3.0
h11==0.14.0
httpcore==1.0.6
httpx==0.27.2
huggingface-hub==0.25.1
hydra-colorlog==1.2.0
hydra-core==1.3.2
idna==3.10
importlib_resources==6.4.5
Jinja2==3.1.4
joblib==1.4.2
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
julius==0.2.7
kiwisolver==1.4.7
lameenc==1.7.0
langcodes==3.4.1
language_data==1.2.0
lazy_loader==0.4
librosa==0.10.0
lightning-utilities==0.11.7
llvmlite==0.42.0
marisa-trie==1.2.0
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.8.3
mdurl==0.1.2
mpmath==1.3.0
msgpack==1.1.0
murmurhash==1.0.10
narwhals==1.9.0
networkx==3.2.1
num2words==0.5.13
numba==0.59.1
numpy==1.26.4
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.18.1
nvidia-nvjitlink-cu12==12.6.77
nvidia-nvtx-cu12==12.1.105
omegaconf==2.3.0
openunmix==1.3.0
orjson==3.10.7
packaging==24.1
pandas==2.2.1
pesq==0.0.4
pillow==10.4.0
pip==23.0.1
platformdirs==4.3.6
pooch==1.8.2
preshed==3.0.9
protobuf==5.28.2
pycparser==2.22
pydantic==2.9.2
pydantic_core==2.23.4
pydub==0.25.1
Pygments==2.18.0
pyparsing==3.1.4
pystoi==0.4.1
python-dateutil==2.9.0.post0
python-multipart==0.0.12
pytz==2024.2
PyYAML==6.0.2
referencing==0.35.1
regex==2024.9.11
requests==2.32.3
retrying==1.3.4
rich==13.9.2
rpds-py==0.20.0
ruff==0.6.9
safetensors==0.4.5
scikit-learn==1.4.2
scipy==1.13.0
semantic-version==2.10.0
sentencepiece==0.2.0
setuptools==58.1.0
shellingham==1.5.4
six==1.16.0
smart-open==7.0.5
sniffio==1.3.1
soundfile==0.12.1
soxr==0.5.0.post1
spacy==3.7.5
spacy-legacy==3.0.12
spacy-loggers==1.0.5
srsly==2.4.8
starlette==0.38.6
submitit==1.5.2
sympy==1.13.3
thinc==8.2.5
threadpoolctl==3.5.0
tokenizers==0.15.2
tomlkit==0.12.0
torch==2.1.0
torchaudio==2.1.0
torchdata==0.7.0
torchmetrics==1.3.2
torchtext==0.16.0
torchvision==0.16.0
tqdm==4.66.5
transformers==4.38.2
treetable==0.2.5
triton==2.1.0
typer==0.12.5
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3
uvicorn==0.31.0
wasabi==1.1.3
weasel==0.4.1
websockets==11.0.3
wrapt==1.16.0
xformers==0.0.22.post7
zipp==3.20.2

@nasko25
Copy link
Author

nasko25 commented Oct 10, 2024

gradio and gradio client versions also need to be changed:

gradio==4.43.0
gradio_client==1.3.0

(I updated my original comment too)

@nateraw
Copy link

nateraw commented Oct 11, 2024

@nasko25 thanks for this!! ❤️

@fblgit
Copy link

fblgit commented Oct 20, 2024

it used to work, it doesnt build anymore...
Confirmed that provided dependencies new list WORKS.
I think would be better to get some docker uploaded on the hub... just to avoid wasting time. Wonder when was last time someone at meta actually tried to build this haha.. they must have something better in the oven 🗡️

@hastagAB
Copy link

There is some issue with the scipy/librosa dependency and ofcourse distutils being removed.
I had it installed on python 3.10.11

pip freeze:

aiofiles==23.2.1
annotated-types==0.7.0
antlr4-python3-runtime==4.9.3
anyio==3.7.1
audiocraft==1.3.0
audioread==3.0.1
av==11.0.0
blis==0.7.11
catalogue==2.0.10
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.4.0
click==8.1.7
cloudpathlib==0.20.0
cloudpickle==3.1.0
colorlog==6.8.2
confection==0.1.5
cymem==2.0.8
decorator==4.4.2
demucs==4.0.1
docopt==0.6.2
dora_search==0.1.12
einops==0.8.0
encodec==0.1.1
exceptiongroup==1.2.2
fastapi==0.115.2
ffmpy==0.4.0
filelock==3.16.1
flashy==0.0.2
fsspec==2024.6.1
gradio==5.1.0
gradio_client==1.4.0
h11==0.14.0
httpcore==1.0.6
httpx==0.27.2
huggingface-hub==0.26.0
hydra-colorlog==1.2.0
hydra-core==1.3.2
idna==3.10
Jinja2==3.1.4
joblib==1.4.2
julius==0.2.7
lameenc==1.7.0
langcodes==3.4.1
language_data==1.2.0
lazy_loader==0.4
librosa==0.10.2.post1
lightning-utilities==0.11.8
llvmlite==0.43.0
marisa-trie==1.2.1
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mdurl==0.1.2
mpmath==1.3.0
msgpack==1.1.0
murmurhash==1.0.10
networkx==3.4.1
num2words==0.5.13
numba==0.60.0
numpy==1.26.4
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.18.1
nvidia-nvjitlink-cu12==12.6.77
nvidia-nvtx-cu12==12.1.105
omegaconf==2.3.0
openunmix==1.3.0
orjson==3.10.9
packaging==24.1
pandas==2.2.2
pillow==10.4.0
platformdirs==4.3.6
pooch==1.8.2
preshed==3.0.9
protobuf==3.20.3
pycparser==2.22
pydantic==2.9.2
pydantic_core==2.23.4
pydub==0.25.1
Pygments==2.18.0
python-dateutil==2.9.0.post0
python-multipart==0.0.12
pytz==2024.2
PyYAML==6.0.2
regex==2024.9.11
requests==2.32.3
retrying==1.3.4
rich==13.9.2
ruff==0.7.0
safetensors==0.4.5
scikit-learn==1.5.2
scipy==1.10.1
semantic-version==2.10.0
sentencepiece==0.2.0
shellingham==1.5.4
six==1.16.0
smart-open==7.0.5
sniffio==1.3.1
soundfile==0.12.1
soxr==0.5.0.post1
spacy==3.7.5
spacy-legacy==3.0.12
spacy-loggers==1.0.5
srsly==2.4.8
starlette==0.40.0
submitit==1.5.2
sympy==1.13.3
thinc==8.2.5
threadpoolctl==3.5.0
tokenizers==0.19.1
tomlkit==0.12.0
torch==2.1.0
torchaudio==2.1.0
torchdata==0.7.0
torchmetrics==1.5.0
torchtext==0.16.0
torchvision==0.16.0
tqdm==4.66.5
transformers==4.44.2
treetable==0.2.5
triton==2.1.0
typer==0.12.5
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.2.3
uvicorn==0.32.0
wasabi==1.1.3
weasel==0.4.1
websockets==12.0
wrapt==1.16.0
xformers==0.0.22.post7

@Dinglet
Copy link

Dinglet commented Oct 21, 2024

I successfully installed the package using the command pip install -e . spacy==3.7.6 in a conda environment defined following:

channels:

  • pytorch
  • nvidia
  • defaults

dependencies:

  • python=3.9
  • pytorch==2.1.0
  • torchvision==0.16.0
  • torchaudio==2.1.0
  • pytorch-cuda=11.8

@xgensoft
Copy link

Hi! I created the dockerfile for fast deploy: https://github.com/xgensoft/xstools/blob/main/audiocraft/Dockerfile. Can use for github.

@simonrouard
Copy link
Contributor

Hi, we fixed the environment requirements, could you check that it works now?

@nateraw
Copy link

nateraw commented Nov 19, 2024

Can confirm everything installs correctly. Here's a Colab notebook: https://gist.github.com/nateraw/ef5b426aff9b0a5b1e4b246cc8a4750c

@nasko25
Copy link
Author

nasko25 commented Nov 22, 2024

Thanks @simonrouard I can also confirm that install succeeds for me with the latest changes and python 3.9.20

@nasko25 nasko25 closed this as completed Nov 22, 2024
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

8 participants