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

Linux Mint LTS NVIDIA installation bug reports #433

Open
RustoMCSpit opened this issue Dec 21, 2024 · 22 comments
Open

Linux Mint LTS NVIDIA installation bug reports #433

RustoMCSpit opened this issue Dec 21, 2024 · 22 comments

Comments

@RustoMCSpit
Copy link

Traceback (most recent call last):
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/gradio/queueing.py", line 624, in process_events
    response = await route_utils.call_process_api(
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api
    output = await app.get_blocks().process_api(
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 2015, in process_api
    result = await self.call_function(
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/gradio/blocks.py", line 1562, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
  File "/home/desktoppc/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/desktoppc/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/home/desktoppc/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/gradio/utils.py", line 865, in wrapper
    response = f(*args, **kwargs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/decorators/gradio_dict_decorator.py", line 133, in wrapper
    result_dict = fn(**_get_mapped_args(inputs, list_args), outputs=outputs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/extensions/builtin/extension_decorator_save_ffmpeg/main.py", line 75, in wrapper
    result_dict = fn(*args, **kwargs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/extensions/builtin/extension_decorator_save_ffmpeg/main.py", line 65, in wrapper
    result_dict = fn(*args, **kwargs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/extensions/builtin/extension_decorator_save_waveform/main.py", line 29, in wrapper
    result_dict = fn(*args, **kwargs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/extensions/builtin/extension_decorator_average_execution_time/main.py", line 27, in wrapper
    result = fn(*args, **kwargs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/rvc_tab/rvc_tab.py", line 58, in wrapper
    return fn(*args, **kwargs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/decorators/decorator_apply_torch_seed.py", line 7, in wrapper
    return fn(*args, **kwargs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/decorators/decorator_save_metadata.py", line 8, in wrapper
    result_dict = fn(*args, **kwargs)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/decorators/decorator_save_wav.py", line 16, in wrapper
    _save_wav(result_dict)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/decorators/decorator_save_wav.py", line 10, in _save_wav
    write_wav(path, SAMPLE_RATE, audio_array)
  File "/home/desktoppc/.local/lib/python3.10/site-packages/scipy/io/wavfile.py", line 798, in write
    dkind = data.dtype.kind
AttributeError: 'NoneType' object has no attribute 'dtype'

AttributeError: 'NoneType' object has no attribute 'dtype', ensure that the variable audio_array is not None before passing it to the write_wav function.

@rsxdalv
Copy link
Owner

rsxdalv commented Dec 21, 2024 via email

@RustoMCSpit
Copy link
Author

RustoMCSpit commented Dec 21, 2024

no install log, ive wiped clean and am trying again for the fourth time! surprised that the app is accessing packages outside of the env

im on Linux Mint LTS with a NVIDIA GPU. A lot of the applications aren't working, is there a debug mode where I can send you the log output?

output.log

heres my new install, hope that log is the log youre looking for

@RustoMCSpit
Copy link
Author

RustoMCSpit commented Dec 21, 2024

getting this error with some of the programs

Failed to load Bark TTS tab. Please check your configuration.

Error: Detected that PyTorch and TorchAudio were compiled with different CUDA versions. PyTorch has CUDA version 12.1 whereas TorchAudio has CUDA version 11.8. Please install the TorchAudio version that matches your PyTorch version.

Stacktrace: Traceback (most recent call last): File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/server.py", line 62, in run_tab module = importlib.import_module(module_name) File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
Failed to load SeamlessM4Tv2Model tab. Please check your configuration.

Error: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)

Stacktrace: Traceback (most recent call last): File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/server.py", line 62, in run_tab module = importlib.import_module(module_name) File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "

ive tried doing this

pip uninstall torch torchaudio

and then this

pip install torch==2.1.0+cu121 torchaudio==2.3.1+cu121 -f https://download.pytorch.org/whl/torch_stable.html

in my python env but that doesnt work

the only thing that works is the legacy version of RVC, nothing else runs. i installed with the installer

@RustoMCSpit
Copy link
Author

desktoppc@homeuser:~/Desktop/audiocomfyui$ source tts-generation-webui-main/ttsui-env/bin/activate && cd tts-generation-webui-main && ./start_tts_webui.sh
/usr/bin/curl
/usr/bin/tar
/usr/bin/bzip2
Checking if the Micromamba/Conda environment is already installed
Micromamba/Conda environment already installed in /home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env, skipping installation


Starting init app (version: 0.0.6)...


Checking conda installation...
>conda --version
conda 24.11.2

Pulling updates from tts-generation-webui
>git pull
Already up to date.
Current git version: 0adb352584c124e205bab4f8dabfcc434a46a6ca

No updates found, skipping...
2024-12-21 20:56:58.698 GMT [365212] LOG:  starting PostgreSQL 16.4 on x86_64-conda-linux-gnu, compiled by x86_64-conda-linux-gnu-cc (conda-forge gcc 13.3.0-1) 13.3.0, 64-bit
2024-12-21 20:56:58.698 GMT [365212] LOG:  listening on IPv4 address "127.0.0.1", port 7773
2024-12-21 20:56:58.699 GMT [365212] LOG:  listening on Unix socket "/tmp/.s.PGSQL.7773"
2024-12-21 20:56:58.703 GMT [365242] LOG:  database system was shut down at 2024-12-21 20:51:59 GMT
2024-12-21 20:56:58.708 GMT [365212] LOG:  database system is ready to accept connections
Gtk-Message: 20:56:58.826: Failed to load module "xapp-gtk3-module"

> [email protected] start
> next start

  ▲ Next.js 13.5.6
  - Local:        http://localhost:3000

 ✓ Ready in 362ms
Starting server...

Loading decorator extension Decorator Save Ogg
  Skipping disabled decorator extension decorator_disabled
  Decorator decorator_save_flac loaded
  Decorator decorator_save_flac_generator loaded
  Decorator decorator_save_ogg loaded
  Decorator decorator_save_ogg_generator loaded
  Done in 0.00 seconds. (Decorator Save Ogg)

Loading decorator extension Decorator Save Waveform
  Decorator decorator_save_waveform_plot loaded
  Done in 0.24 seconds. (Decorator Save Waveform)

Loading decorator extension Decorator Average Execution Time
  Decorator decorator_average_execution_time loaded
  Done in 0.00 seconds. (Decorator Average Execution Time)

Starting React UI...
Starting Postgres...
Starting Gradio server...
 Gradio interface options:
  inline:               False
  inbrowser:            True
  share:                False
  debug:                False
  max_threads:          40
  auth:                 None
  auth_message:         None
  prevent_thread_lock:  False
  show_error:           False
  server_name:          127.0.0.1
  server_port:          7770
  height:               500
  width:                100%
  favicon_path:         None
  ssl_keyfile:          None
  ssl_certfile:         None
  ssl_keyfile_password: None
  ssl_verify:           True
  quiet:                True
  show_api:             True
  _frontend:            True
Loading Bark TTS tab...
Failed to load Bark TTS tab. Please check your configuration.
Error: Detected that PyTorch and TorchAudio were compiled with different CUDA versions. PyTorch has CUDA version 12.1 whereas TorchAudio has CUDA version 11.8. Please install the TorchAudio version that matches your PyTorch version.
Stacktrace: Traceback (most recent call last):
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/server.py", line 62, in run_tab
    module = importlib.import_module(module_name)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/bark/bark_tab.py", line 9, in <module>
    from tts_webui.history_tab.voices_tab import voices_tab
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/history_tab/voices_tab.py", line 10, in <module>
    from tts_webui.bark.get_audio_from_npz import get_audio_from_full_generation
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/bark/get_audio_from_npz.py", line 3, in <module>
    from bark.generation import (
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/bark/__init__.py", line 1, in <module>
    from .api import generate_audio, text_to_semantic, semantic_to_waveform, save_as_prompt
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/bark/api.py", line 5, in <module>
    from .generation import codec_decode, generate_coarse, generate_fine, generate_text_semantic
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/bark/generation.py", line 6, in <module>
    from encodec import EncodecModel
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/encodec/__init__.py", line 12, in <module>
    from .model import EncodecModel
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/encodec/model.py", line 19, in <module>
    from .utils import _check_checksum, _linear_overlap_add, _get_checkpoint_url
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/encodec/utils.py", line 14, in <module>
    import torchaudio
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/__init__.py", line 2, in <module>
    from . import _extension  # noqa  # usort: skip
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/__init__.py", line 42, in <module>
    _check_cuda_version()
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/utils.py", line 175, in _check_cuda_version
    raise RuntimeError(
RuntimeError: Detected that PyTorch and TorchAudio were compiled with different CUDA versions. PyTorch has CUDA version 12.1 whereas TorchAudio has CUDA version 11.8. Please install the TorchAudio version that matches your PyTorch version.

  Done in 1.16 seconds. (Bark TTS)

Loading Bark Voice Clone tab...
Failed to load Bark Voice Clone tab. Please check your configuration.
Error: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
Stacktrace: Traceback (most recent call last):
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/server.py", line 62, in run_tab
    module = importlib.import_module(module_name)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/bark/clone/tab_voice_clone.py", line 1, in <module>
    import torchaudio
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/__init__.py", line 2, in <module>
    from . import _extension  # noqa  # usort: skip
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/__init__.py", line 42, in <module>
    _check_cuda_version()
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/utils.py", line 168, in _check_cuda_version
    version = torchaudio.lib._torchaudio.cuda_version()
AttributeError: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)

  Done in 0.00 seconds. (Bark Voice Clone)

Loading Tortoise TTS tab...
  Done in 0.09 seconds. (Tortoise TTS)

Loading SeamlessM4Tv2Model tab...
Failed to load SeamlessM4Tv2Model tab. Please check your configuration.
Error: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/gradio/components/dropdown.py:226: UserWarning: The value passed into gr.Dropdown() is not in the list of choices. Please update the list of choices to include: None or set allow_custom_value=True.
  warnings.warn(
Stacktrace: Traceback (most recent call last):
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/server.py", line 62, in run_tab
    module = importlib.import_module(module_name)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/seamlessM4T/seamless_tab.py", line 3, in <module>
    import torchaudio
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/__init__.py", line 2, in <module>
    from . import _extension  # noqa  # usort: skip
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/__init__.py", line 42, in <module>
    _check_cuda_version()
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/utils.py", line 168, in _check_cuda_version
    version = torchaudio.lib._torchaudio.cuda_version()
AttributeError: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)

  Done in 0.00 seconds. (SeamlessM4Tv2Model)

Loading Valle-X tab...
  Done in 0.01 seconds. (Valle-X)

Loading MMS tab...
  Done in 0.03 seconds. (MMS)

Loading MahaTTS tab...
  Done in 0.01 seconds. (MahaTTS)

Loading StyleTTS2 tab...
  Done in 0.01 seconds. (StyleTTS2)

Loading Stable Audio tab...
  Done in 0.02 seconds. (Stable Audio)

Loading MAGNeT tab...
  Done in 0.01 seconds. (MAGNeT)

Loading MusicGen tab...
  Done in 0.01 seconds. (MusicGen)

Loading RVC tab...
  Done in 0.01 seconds. (RVC)

Loading UVR5 tab...
  Done in 0.01 seconds. (UVR5)

Loading Demucs tab...
Failed to load Demucs tab. Please check your configuration.
Error: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
Stacktrace: Traceback (most recent call last):
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/server.py", line 62, in run_tab
    module = importlib.import_module(module_name)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/demucs/demucs_tab.py", line 1, in <module>
    import torchaudio
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/__init__.py", line 2, in <module>
    from . import _extension  # noqa  # usort: skip
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/__init__.py", line 42, in <module>
    _check_cuda_version()
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/utils.py", line 168, in _check_cuda_version
    version = torchaudio.lib._torchaudio.cuda_version()
AttributeError: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)

  Done in 0.00 seconds. (Demucs)

Loading Vocos tab...
Failed to load Vocos tab. Please check your configuration.
Error: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
Stacktrace: Traceback (most recent call last):
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/server.py", line 62, in run_tab
    module = importlib.import_module(module_name)
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/vocos/vocos_tabs.py", line 2, in <module>
    from tts_webui.vocos.vocos_tab_bark import vocos_tab_bark
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/tts_webui/vocos/vocos_tab_bark.py", line 2, in <module>
    import torchaudio
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/__init__.py", line 2, in <module>
    from . import _extension  # noqa  # usort: skip
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/__init__.py", line 42, in <module>
    _check_cuda_version()
  File "/home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main/installer_files/env/lib/python3.10/site-packages/torchaudio/_extension/utils.py", line 168, in _check_cuda_version
    version = torchaudio.lib._torchaudio.cuda_version()
AttributeError: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)

  Done in 0.00 seconds. (Vocos)

Loading Gallery History Extension...
  Done in 0.01 seconds. (Gallery History Extension)

Loading FFMPEG Metadata Extension...
  Done in 0.00 seconds. (FFMPEG Metadata Extension)

Loading Simple Remixer Extension...
Failed to load Simple Remixer Extension tab. Please check your configuration.
Error: partially initialized module 'torchaudio' has no attribute 'lib' (most likely due to a circular import)
Gtk-Message: 20:57:01.091: Failed to load module "xapp-gtk3-module"
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: GFX: CanvasTranslator failed creating WebGL shared context (t=88.486) [GFX1-]: GFX: CanvasTranslator failed creating WebGL shared context
DEBUG:google.cloud.storage._opentelemetry_tracing:This service is instrumented using OpenTelemetry. OpenTelemetry or one of its components could not be imported; please add compatible versions of opentelemetry-api and opentelemetry-instrumentation packages in order to get Storage Tracing data.
INFO:rvc.configs.config:Found GPU NVIDIA GeForce RTX 2070 SUPER
INFO:rvc.configs.config:Use None instead
INFO:rvc.configs.config:is_half:True, device:cuda:0
INFO:rvc.modules.vc.modules:Get sid: BuzzLightyearBS.pth
INFO:rvc.modules.vc.modules:Loading: data/models/rvc/checkpoints/BuzzLightyearBS/BuzzLightyearBS.pth
DEBUG:rvc.lib.infer_pack.models:gin_channels: 256, self.spk_embed_dim: 109
INFO:rvc.modules.vc.modules:Select index: 
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): huggingface.co:443
DEBUG:urllib3.connectionpool:https://huggingface.co:443 "HEAD /lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt HTTP/1.1" 302 0
INFO:fairseq.tasks.hubert_pretraining:current directory is /home/desktoppc/Desktop/audiocomfyui/tts-generation-webui-main
INFO:fairseq.tasks.hubert_pretraining:HubertPretrainingTask Config {'_name': 'hubert_pretraining', 'data': 'metadata', 'fine_tuning': False, 'labels': ['km'], 'label_dir': 'label', 'label_rate': 50.0, 'sample_rate': 16000, 'normalize': False, 'enable_padding': False, 'max_keep_size': None, 'max_sample_size': 250000, 'min_sample_size': 32000, 'single_target': False, 'random_crop': True, 'pad_audio': False}
INFO:fairseq.models.hubert.hubert:HubertModel Config: {'_name': 'hubert', 'label_rate': 50.0, 'extractor_mode': default, 'encoder_layers': 12, 'encoder_embed_dim': 768, 'encoder_ffn_embed_dim': 3072, 'encoder_attention_heads': 12, 'activation_fn': gelu, 'layer_type': transformer, 'dropout': 0.1, 'attention_dropout': 0.1, 'activation_dropout': 0.0, 'encoder_layerdrop': 0.05, 'dropout_input': 0.1, 'dropout_features': 0.1, 'final_dim': 256, 'untie_final_proj': True, 'layer_norm_first': False, 'conv_feature_layers': '[(512,10,5)] + [(512,3,2)] * 4 + [(512,2,2)] * 2', 'conv_bias': False, 'logit_temp': 0.1, 'target_glu': False, 'feature_grad_mult': 0.1, 'mask_length': 10, 'mask_prob': 0.8, 'mask_selection': static, 'mask_other': 0.0, 'no_mask_overlap': False, 'mask_min_space': 1, 'mask_channel_length': 10, 'mask_channel_prob': 0.0, 'mask_channel_selection': static, 'mask_channel_other': 0.0, 'no_mask_channel_overlap': False, 'mask_channel_min_space': 1, 'conv_pos': 128, 'conv_pos_groups': 16, 'conv_pos_batch_norm': False, 'latent_temp': [2.0, 0.5, 0.999995], 'skip_masked': False, 'skip_nomask': False, 'checkpoint_activations': False, 'required_seq_len_multiple': 2, 'depthwise_conv_kernel_size': 31, 'attn_type': '', 'pos_enc_type': 'abs', 'fp16': False}

@RustoMCSpit RustoMCSpit changed the title Attribute Error bug report Linux Mint LTS NVIDIA installation bug reports Dec 21, 2024
@RustoMCSpit
Copy link
Author

Do you have the installation log?

is there anything else you need?

@rsxdalv
Copy link
Owner

rsxdalv commented Dec 29, 2024

Thanks, I dug into the logs to see that it is supposedly installing the correct versions:

    pytorch-2.3.1              |py3.10_cuda11.8_cudnn8.7.0_0        1.56 GB  pytorch
    pytorch-cuda-11.8          |       h7e8668a_6           7 KB  pytorch
    pytorch-mutex-1.0          |             cuda           3 KB  pytorch
    pyyaml-6.0.2               |  py310h5eee18b_0         193 KB
    svt-av1-1.4.1              |       hcb278e6_0         2.4 MB  conda-forge
    sympy-1.13.3               |  py310h06a4308_0        11.3 MB
    torchaudio-2.3.1           |      py310_cu118         6.2 MB  pytorch
    torchtriton-2.3.1          |            py310       177.3 MB  pytorch
    torchvision-0.18.1         |      py310_cu118         8.2 MB  pytorch

Python 3.10, Cuda 11.8.

Error: Detected that PyTorch and TorchAudio were compiled with different CUDA versions. PyTorch has CUDA version 12.1 whereas TorchAudio has CUDA version 11.8. Please install the TorchAudio version that matches your PyTorch version.

This implies that the pytorch used by the app is a different one from the conda installation; however, I cannot see any evidence of it in the install log, it all appears to be installed under tts-generation-webui.
One way to check it would be to do pip show torch with the venv/conda activated (installer_scripts/conda_env_bash.sh)

By the way, this is wrong:
pip install torch==2.1.0+cu121 torchaudio==2.3.1+cu121 -f https://download.pytorch.org/whl/torch_stable.html
torch and torchaudio versions should be in lockstep. Often this is ensured by installing torch==2.x.x and leaving torchaudio to be selected automatically, or in your case it would be:

pip install torch==2.3.1+cu121 torchaudio==2.3.1+cu121

@RustoMCSpit
Copy link
Author

I'll try this all later!

@RustoMCSpit
Copy link
Author

RustoMCSpit commented Jan 9, 2025

pip install torch==2.3.1+cu121 torchaudio==2.3.1+cu121
ERROR: Could not find a version that satisfies the requirement torch==2.3.1+cu121 (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1)
ERROR: No matching distribution found for torch==2.3.1+cu121

By removing the cu121 and doing pip install torch==2.3.1 torchaudio==2.3.1, it worked. This is an install script problem, it's listed wrong
However it results in this

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
audiocraft 1.4.0a1 requires hydra-core>=1.1, but you have hydra-core 1.0.7 which is incompatible.
torchvision 0.20.1 requires torch==2.5.1, but you have torch 2.3.1 which is incompatible.
xformers 0.0.29.post1 requires torch==2.5.1, but you have torch 2.3.1 which is incompatible.

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 10, 2025

Without +cu it will most probably install the CPU only version. I forgot torchvision, if you add it to the install torch command, it will select the correct version automatically.

@RustoMCSpit
Copy link
Author

Without +cu it will most probably install the CPU only version. I forgot torchvision, if you add it to the install torch command, it will select the correct version automatically.

can you give me the command so i can copy and paste it, im a bit confused at this point

@RustoMCSpit
Copy link
Author

?

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 22, 2025

pip install torch==2.3.1 torchaudio==2.3.1 torchvision

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 22, 2025

pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121

@RustoMCSpit
Copy link
Author

pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121

when do i do this after a fresh git clone? before or after ./start_tts_webui.sh

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 22, 2025

pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121

when do i do this after a fresh git clone? before or after ./start_tts_webui.sh

You could probably do it on the old installation and fix it. But remember that you need to do it in the virtual environment of the project, so if you use start_tts then first install, then run this with installer_scripts/conda_env_bash.sh to have the environment active and install PyTorch in the right place.

@RustoMCSpit
Copy link
Author

RustoMCSpit commented Jan 22, 2025

installer_scripts/conda_env_bash.sh

i see this file but i have never once used it.

what i did was simple.

  1. i created a venv called audioenv
  2. ./start_tts_webui.sh
  3. pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121

installer_scripts/conda_env_bash.sh

what is the file above for

./conda_env_bash.sh 
./conda_env_bash.sh: line 3: ./installer_files/mamba/micromamba: No such file or directory

@RustoMCSpit
Copy link
Author

RustoMCSpit commented Jan 22, 2025

Failed to load Bark TTS tab. Please check your configuration.

Error: Detected that PyTorch and TorchAudio were compiled with different CUDA versions. PyTorch has CUDA version 12.1 whereas TorchAudio has CUDA version 11.8. Please install the TorchAudio version that matches your PyTorch version.

Stacktrace: Traceback (most recent call last): File "/home/chris/Desktop/webui-audio/tts-generation-webui/server.py", line 62, in run_tab module = importlib.import_module(module_name) File "/home/chris/Desktop/webui-audio/tts-generation-webui/installer_files/env/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
pip show torch
Name: torch
Version: 2.3.1+cu121
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page: https://pytorch.org/
Author: PyTorch Team
Author-email: [email protected]
License: BSD-3
Location: /home/chris/Desktop/webui-audio/tts-generation-webui/ttsui-env/lib/python3.12/site-packages
Requires: filelock, fsspec, jinja2, networkx, nvidia-cublas-cu12, nvidia-cuda-cupti-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-runtime-cu12, nvidia-cudnn-cu12, nvidia-cufft-cu12, nvidia-curand-cu12, nvidia-cusolver-cu12, nvidia-cusparse-cu12, nvidia-nccl-cu12, nvidia-nvtx-cu12, sympy, typing-extensions
pip show torchaudio
Name: torchaudio
Version: 2.3.1+cu121
Summary: An audio package for PyTorch
Home-page: https://github.com/pytorch/audio
Author: Soumith Chintala, David Pollack, Sean Naren, Peter Goldsborough, Moto Hira, Caroline Chen, Jeff Hwang, Zhaoheng Ni, Xiaohui Zhang
Author-email: [email protected]
License: 
Location: /home/chris/Desktop/webui-audio/tts-generation-webui/ttsui-env/lib/python3.12/site-packages
Requires: torch
ip show torchvision
Name: torchvision
Version: 0.18.1+cu121
Summary: image and video datasets and models for torch deep learning
Home-page: https://github.com/pytorch/vision
Author: PyTorch Core Team
Author-email: [email protected]
License: BSD
Location: /home/chris/Desktop/webui-audio/tts-generation-webui/ttsui-env/lib/python3.12/site-packages
Requires: numpy, pillow, torch
Required-by: 

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 22, 2025

So, if you use start_tts it has its own virtual environment.
What you described likely means that you have a separate virtual environment (that tts webui does not interact with, unless you go full manual install and use python server.py at the end) which has the correct Pytorch versions, and the conda virtual environment that remains broken.

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 22, 2025

@RustoMCSpit
Copy link
Author

So, if you use start_tts it has its own virtual environment.
What you described likely means that you have a separate virtual environment (that tts webui does not interact with, unless you go full manual install and use python server.py at the end) which has the correct Pytorch versions, and the conda virtual environment that remains broken.

wait so if i just run start_tts, thats a virtual environment itself? i made my own venv and then when into start_tts. so the venv i made has the correct pytorch versions, but the start_tts venv does not.

pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121

how do i run this command after running start_tts (the terminal does not let me input anything while it it running)

@RustoMCSpit
Copy link
Author

@RustoMCSpit
Copy link
Author

you should specify that start_tts is its own venv in the readme and that you do not need and shouldnt use another venv before accessing it or it will break it

Installation

    Download the [latest version](https://github.com/rsxdalv/tts-generation-webui/archive/refs/heads/main.zip) and extract it.
    Run start_tts_webui.bat or start_tts_webui.sh to start the server. It will ask you to select the GPU/Chip you are using. Once everything has installed, it will start the Gradio server at http://localhost:7770/ and the React UI at http://localhost:3000/.
    Output log will be available in the installer_scripts/output.log file.

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

2 participants