ThinkSound icon indicating copy to clipboard operation
ThinkSound copied to clipboard

Issues with install and gradio

Open gravis778 opened this issue 1 year ago • 1 comments

Note that I manually downloaded the checkpoints, so its showing they are already installed - I submitted a fix to the setup_windows.bat to pull the checkpoints from the correct URL

Building wheel for wget (setup.py) ... done Created wheel for wget: filename=wget-3.2-py3-none-any.whl size=9712 sha256=1313589be7f5ef61988c4a2cac96c33fd45dee844297be7668f87ebd1b5382a1 Stored in directory: C:\Users\gravi\AppData\Local\Temp\pip-ephem-wheel-cache-z4w45slg\wheels\8b\f1\7f\5c94f0a7a505ca1c81cd1d9208ae2064675d97582078e6c769 Successfully built encodec argbind julius pathtools progressbar randomname fire wget Installing collected packages: wget, webencodings, wcwidth, trampoline, sentencepiece, pytz, pydub, pure-eval, progressbar, pathtools, mpmath, gin-config, braceexpand, argparse, appdirs, xyzservices, wrapt, websockets, urllib3, uc-micro-py, tzdata, typing-extensions, traitlets, tornado, threadpoolctl, termcolor, tensorboard-data-server, sympy, sniffio, smmap, six, setproctitle, semantic-version, safetensors, rpds-py, regex, pyyaml, python-multipart, pyparsing, pygments, pycparser, psutil, protobuf, propcache, prompt_toolkit, platformdirs, pillow, parso, param, packaging, orjson, numpy, networkx, narwhals, mdurl, markupsafe, markdown2, markdown, llvmlite, kornia_rs, kiwisolver, joblib, jmespath, importlib-resources, idna, h11, grpcio, future, ftfy, fsspec, frozenlist, fonttools, filelock, ffmpy, executing, einops, docstring-parser, decorator, cycler, configparser, colorcet, colorama, charset_normalizer, certifi, bleach, audioread, attrs, async-timeout, asttokens, annotated-types, alias-free-torch, aioitertools, aiohappyeyeballs, aiofiles, absl-py, werkzeug, webdataset, typing-inspection, tqdm, tifffile, stack_data, sentry-sdk, scipy, requests, referencing, PyWavelets, pyviz-comms, python-dateutil, pydantic-core, plotly, pedalboard, opencv-python, numba, multidict, matplotlib-inline, markdown-it-py, linkify-it-py, lightning-utilities, lazy-loader, jinja2, jedi, imageio, httpcore, h5py, gitdb, flatten-dict, fire, fastcore, exceptiongroup, einops-exts, docker-pycreds, contourpy, Click, cffi, argbind, aiosignal, yarl, uvicorn, torch, tensorboard, soundfile, scikit-learn, scikit-image, rich, resampy, randomname, pystoi, pyloudnorm, pydantic, pooch, pandas, mdit-py-plugins, matplotlib, jsonschema-specifications, ipython, huggingface_hub, GitPython, botocore, anyio, x-transformers, wandb, vector-quantize-pytorch, torchvision, torchsde, torchmetrics, torchdiffeq, torchaudio, tokenizers, starlette, pynndescent, local-attention, librosa, kornia, julius, jsonschema, httpx, ema-pytorch, dctorch, bokeh, auraloss, aiohttp, accelerate, v-diffusion-pytorch, umap-learn, transformers, torchlibrosa, torch-stoi, panel, jsonmerge, gradio-client, fastapi, encodec, clip-anytorch, clean-fid, altair, aiobotocore, s3fs, pytorch_lightning, laion-clap, k-diffusion, holoviews, gradio, descript-audiotools, prefigure, lightning, descript-audio-codec, aeiou, thinksound Successfully installed Click-8.2.1 GitPython-3.1.44 PyWavelets-1.4.1 absl-py-2.3.1 accelerate-1.8.1 aeiou-0.0.20 aiobotocore-2.23.0 aiofiles-23.2.1 aiohappyeyeballs-2.6.1 aiohttp-3.12.14 aioitertools-0.12.0 aiosignal-1.4.0 alias-free-torch-0.0.6 altair-5.5.0 annotated-types-0.7.0 anyio-4.9.0 appdirs-1.4.4 argbind-0.3.9 argparse-1.4.0 asttokens-3.0.0 async-timeout-5.0.1 attrs-25.3.0 audioread-3.0.1 auraloss-0.4.0 bleach-6.2.0 bokeh-3.7.3 botocore-1.38.27 braceexpand-0.1.7 certifi-2025.7.14 cffi-1.17.1 charset_normalizer-3.4.2 clean-fid-0.1.35 clip-anytorch-2.6.0 colorama-0.4.6 colorcet-3.1.0 configparser-7.2.0 contourpy-1.3.2 cycler-0.12.1 dctorch-0.1.2 decorator-5.2.1 descript-audio-codec-1.0.0 descript-audiotools-0.7.2 docker-pycreds-0.4.0 docstring-parser-0.16 einops-0.7.0 einops-exts-0.0.4 ema-pytorch-0.2.3 encodec-0.1.1 exceptiongroup-1.3.0 executing-2.2.0 fastapi-0.116.1 fastcore-1.8.5 ffmpy-0.6.0 filelock-3.18.0 fire-0.7.0 flatten-dict-0.4.2 fonttools-4.58.5 frozenlist-1.7.0 fsspec-2025.5.1 ftfy-6.3.1 future-1.0.0 gin-config-0.5.0 gitdb-4.0.12 gradio-3.50.0 gradio-client-0.6.1 grpcio-1.73.1 h11-0.16.0 h5py-3.14.0 holoviews-1.21.0 httpcore-1.0.9 httpx-0.28.1 huggingface_hub-0.33.4 idna-3.10 imageio-2.37.0 importlib-resources-5.12.0 ipython-8.37.0 jedi-0.19.2 jinja2-3.1.6 jmespath-1.0.1 joblib-1.5.1 jsonmerge-1.9.2 jsonschema-4.24.0 jsonschema-specifications-2025.4.1 julius-0.2.7 k-diffusion-0.1.1 kiwisolver-1.4.8 kornia-0.8.1 kornia_rs-0.1.9 laion-clap-1.1.4 lazy-loader-0.4 librosa-0.9.2 lightning-2.5.1.post0 lightning-utilities-0.14.3 linkify-it-py-2.0.3 llvmlite-0.43.0 local-attention-1.8.6 markdown-3.8.2 markdown-it-py-3.0.0 markdown2-2.5.3 markupsafe-2.1.5 matplotlib-3.10.3 matplotlib-inline-0.1.7 mdit-py-plugins-0.4.2 mdurl-0.1.2 mpmath-1.3.0 multidict-6.6.3 narwhals-1.47.0 networkx-3.4.2 numba-0.60.0 numpy-1.23.5 opencv-python-4.11.0.86 orjson-3.10.18 packaging-24.2 pandas-2.0.2 panel-1.7.4 param-2.2.1 parso-0.8.4 pathtools-0.1.2 pedalboard-0.7.4 pillow-10.4.0 platformdirs-4.3.8 plotly-6.2.0 pooch-1.8.2 prefigure-0.0.9 progressbar-2.5 prompt_toolkit-3.0.51 propcache-0.3.2 protobuf-3.19.6 psutil-7.0.0 pure-eval-0.2.3 pycparser-2.22 pydantic-2.11.7 pydantic-core-2.33.2 pydub-0.25.1 pygments-2.19.2 pyloudnorm-0.1.1 pynndescent-0.5.13 pyparsing-3.2.3 pystoi-0.4.1 python-dateutil-2.9.0.post0 python-multipart-0.0.20 pytorch_lightning-2.1.0 pytz-2025.2 pyviz-comms-3.0.6 pyyaml-6.0.2 randomname-0.2.1 referencing-0.36.2 regex-2024.11.6 requests-2.32.4 resampy-0.4.3 rich-14.0.0 rpds-py-0.26.0 s3fs-2025.5.1 safetensors-0.5.3 scikit-image-0.24.0 scikit-learn-1.7.0 scipy-1.15.3 semantic-version-2.10.0 sentencepiece-0.1.99 sentry-sdk-2.33.0 setproctitle-1.3.6 six-1.17.0 smmap-5.0.2 sniffio-1.3.1 soundfile-0.10.2 stack_data-0.6.3 starlette-0.47.1 sympy-1.13.1 tensorboard-2.19.0 tensorboard-data-server-0.7.2 termcolor-3.1.0 thinksound-0.0.16 threadpoolctl-3.6.0 tifffile-2025.5.10 tokenizers-0.21.2 torch-2.6.0 torch-stoi-0.2.3 torchaudio-2.6.0 torchdiffeq-0.2.5 torchlibrosa-0.1.0 torchmetrics-0.11.4 torchsde-0.2.6 torchvision-0.21.0 tornado-6.5.1 tqdm-4.67.1 traitlets-5.14.3 trampoline-0.1.2 transformers-4.53.2 typing-extensions-4.14.1 typing-inspection-0.4.1 tzdata-2025.2 uc-micro-py-1.0.3 umap-learn-0.5.9.post2 urllib3-2.5.0 uvicorn-0.35.0 v-diffusion-pytorch-0.0.2 vector-quantize-pytorch-1.9.14 wandb-0.15.4 wcwidth-0.2.13 webdataset-0.2.48 webencodings-0.5.1 websockets-11.0.3 werkzeug-3.1.3 wget-3.2 wrapt-1.17.2 x-transformers-1.26.6 xyzservices-2025.4.0 yarl-1.20.1 The system cannot find the file specified. Installing Git LFS... Git LFS initialized. Cloning pretrained models... fatal: destination path 'ckpts' already exists and is not an empty directory. Setup complete! You can now run demo.bat Press any key to continue . . .

(thinksound) S:\ThinkSound>python app.py S:\ThinkSound\app.py:160: GradioDeprecationWarning: optional parameter is deprecated, and it has no effect gr.Textbox(label="Caption (optional)", optional=True), S:\ThinkSound\app.py:161: GradioDeprecationWarning: optional parameter is deprecated, and it has no effect gr.Textbox(label="CoT Description (optional)", lines=6, optional=True), Running on local URL: http://127.0.0.1:7860 IMPORTANT: You are using gradio version 3.50.0, however version 4.44.1 is available, please upgrade.

To create a public link, set share=True in launch(). start C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\librosa\util\files.py:10: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import resource_filename Traceback (most recent call last): File "S:\ThinkSound\extract_latents.py", line 10, in from data_utils.v2a_utils.feature_utils_224 import FeaturesUtils as OriginalFeatures File "S:\ThinkSound\data_utils\v2a_utils\feature_utils_224.py", line 3, in import open_clip ModuleNotFoundError: No module named 'open_clip' Traceback (most recent call last): File "C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\gradio\queueing.py", line 407, in call_prediction output = await route_utils.call_process_api( File "C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\gradio\route_utils.py", line 226, in call_process_api output = await app.get_blocks().process_api( File "C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\gradio\blocks.py", line 1559, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\gradio\blocks.py", line 1447, in postprocess_data prediction_value = block.postprocess(prediction_value) File "C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\gradio\components\video.py", line 273, in postprocess processed_files = (self._format_video(y), None) File "C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\gradio\components\video.py", line 350, in _format_video video = self.make_temp_copy_if_needed(video) File "C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\gradio\components\base.py", line 233, in make_temp_copy_if_needed temp_dir = self.hash_file(file_path) File "C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\gradio\components\base.py", line 197, in hash_file with open(file_path, "rb") as f: OSError: [Errno 22] Invalid argument: 'C:\Users\gravi\AppData\Local\Programs\Miniconda3\envs\thinksound\lib\site-packages\librosa\util\files.py:10: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\n from pkg_resources import resource_filename\nTraceback (most recent call last):\n File "S:\ThinkSound\extract_latents.py", line 10, in \n from data_utils.v2a_utils.feature_utils_224 import FeaturesUtils as OriginalFeatures\n File "S:\ThinkSound\data_utils\v2a_utils\feature_utils_224.py", line 3, in \n import open_clip\nModuleNotFoundError: No module named 'open_clip'\n'

gravis778 avatar Jul 15 '25 17:07 gravis778

You can solve this by running:

pip install open_clip_torch==2.32.0

Alternatively, you can try reinstalling ThinkSound with:

pip install thinksound --upgrade

liuhuadai avatar Jul 16 '25 02:07 liuhuadai