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

NameError: name 'base_package' is not defined is showing #502

Closed
PRCbubu opened this issue Jan 28, 2025 · 2 comments
Closed

NameError: name 'base_package' is not defined is showing #502

PRCbubu opened this issue Jan 28, 2025 · 2 comments

Comments

@PRCbubu
Copy link

PRCbubu commented Jan 28, 2025

🔴 If you have installed AllTalk in a custom Python environment, I will only be able to provide limited assistance/support. AllTalk draws on a variety of scripts and libraries that are not written or managed by myself, and they may fail, error or give strange results in custom built python environments.

🔴 Please generate a diagnostics report and upload the "diagnostics.log" as this helps me understand your configuration.

https://github.com/erew123/alltalk_tts/tree/main?#-how-to-make-a-diagnostics-report-file

Describe the bug
When I'm trying start the textgen AI, this is happening.

To Reproduce
Start the Oogabooga's textgen AI with Alltalk extension.

Screenshots

Image

Text/logs

01:08:21-475906 INFO Starting Text generation web UI
01:08:21-475906 INFO Loading settings from "settings.yaml"
01:08:21-491532 INFO Loading the extension "alltalk_tts"
[AllTalk TTS] _ _ _ _____ _ _ _____ _____ ____
[AllTalk TTS] / \ | | |_ | | | | __ | | _/ ___|
[AllTalk TTS] / _ \ | | | | |/ | | |/ / | | | | \___ \ [AllTalk TTS] / ___ \| | | | | (_| | | < | | | | ___) | [AllTalk TTS] /_/ \_\_|_| |_|\__,_|_|_|\_\ |_| |_| |____/ [AllTalk TTS] [AllTalk TTS] Start-up Mode : Text-gen-webui mode [AllTalk TTS] WAV file deletion : Disabled [AllTalk TTS] Github updated : 26th January 2025 at 00:38 Branch: alltalkbeta [AllTalk ENG] Transcoding : ffmpeg found D:\StableDiffution\text-generation-webui\installer_files\env\Lib\site-packages\deepspeed\runtime\zero\linear.py:47: FutureWarning:torch.cuda.amp.custom_fwd(args...)is deprecated. Please usetorch.amp.custom_fwd(args..., device_type='cuda')instead. @autocast_custom_fwd D:\StableDiffution\text-generation-webui\installer_files\env\Lib\site-packages\deepspeed\runtime\zero\linear.py:66: FutureWarning:torch.cuda.amp.custom_bwd(args...)is deprecated. Please usetorch.amp.custom_bwd(args..., device_type='cuda')` instead.
@autocast_custom_bwd
[AllTalk ENG] DeepSpeed version : Not available
[AllTalk ENG] Python Version : 3.11.11
[AllTalk ENG] PyTorch Version : 2.4.1+cu121
[AllTalk ENG] CUDA Version : 12.1
[AllTalk ENG]
[AllTalk ENG] Model/Engine : Piper Ready
[AllTalk ENG] Load time : 0.00 seconds.
[AllTalk TTS]
[AllTalk TTS] API Address : 127.0.0.1:7851
[AllTalk TTS] Gradio Light: http://127.0.0.1:7852
[AllTalk TTS] Gradio Dark : http://127.0.0.1:7852?__theme=dark
[AllTalk TTS]
[AllTalk TTS] AllTalk WIKI: https://github.com/erew123/alltalk_tts/wiki
[AllTalk TTS] Errors Help : https://github.com/erew123/alltalk_tts/wiki/Error-Messages-List
[AllTalk TTS]
01:08:30-538930 ERROR Failed to load the extension "alltalk_tts".
Traceback (most recent call last):
File "D:\StableDiffution\text-generation-webui\modules\extensions.py", line 37, in load_extensions
extension = importlib.import_module(f"extensions.{name}.script")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\StableDiffution\text-generation-webui\installer_files\env\Lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\StableDiffution\text-generation-webui\extensions\alltalk_tts\script.py", line 2665, in
load_engine_configs(_state)
File "D:\StableDiffution\text-generation-webui\extensions\alltalk_tts\script.py", line 2647, in load_engine_configs
if base_package:
^^^^^^^^^^^^
NameError: name 'base_package' is not defined

Desktop (please complete the following information):
AllTalk was updated: [approx. date]
Custom Python environment: [yes/no give details if yes]
Text-generation-webUI was updated: [approx. date]

Additional context
Add any other context about the problem here.

@erew123
Copy link
Owner

erew123 commented Jan 30, 2025

Hi @PRCbubu Im going to assume that the above will resolve your problem. Ill close the ticket for now, but get back if you need to. Please be aware of the following support availability so my time is limited to respond.

Thanks

@erew123 erew123 closed this as completed Jan 30, 2025
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