The application worked perfectly during the initial session. I was able to use --attention sage2 and generate content successfully (it also worked without the sageattention flag before). During one session, I believe I changed a setting in the UI related to preloading models. After this change, the application continued to function correctly until I closed it.
Upon trying to restart the application, it consistently fails and crashes with an AttributeError, pointing to a circular import. The error occurs regardless of the startup command used. I cannot start it with the default python wgp.py command, nor can I start it with previous, working command-line arguments like python wgp.py --compile --attention sage2 --profile 3.
I suspect, but am not certain, that the problem was triggered by changing the "preload model" setting in the UI, and this is now preventing any successful startup.
Error Log / Traceback
(wan2gp) D:\Wan2GP>python wgp.py
Loading Model 'ckpts/Wan14BT2VFusioniX_fp16.safetensors' ...
Loading Module 'ckpts/wan2.1_Vace_14B_module_mbf16.safetensors' ...
Traceback (most recent call last):
File "D:\Wan2GP\wgp.py", line 16, in
import wan
File "D:\Wan2GP\wan_init_.py", line 3, in
from .text2video import WanT2V
File "D:\Wan2GP\wan\text2video.py", line 31, in
from wgp import update_loras_slists
File "D:\Wan2GP\wgp.py", line 2554, in
wan_model, offloadobj, transformer = load_models(transformer_type)
File "D:\Wan2GP\wgp.py", line 2510, in load_models
wan_model, pipe = load_wan_model(model_file_list, model_type, base_model_type, quantizeTransformer = quantizeTransformer, dtype = transformer_dtype, VAE_dtype = VAE_dtype, mixed_precision_transformer = mixed_precision_transformer, save_quantized = save_quantized)
File "D:\Wan2GP\wgp.py", line 2378, in load_wan_model
model_factory = wan.WanT2V
AttributeError: partially initialized module 'wan' has no attribute 'WanT2V' (most likely due to a circular import). Did you mean: 'WanI2V'?
System Information
OS: Microsoft Windows 11 [Version 10.0.26100.4484]
Environment: Conda (wan2gp)
GPU: NVIDIA RTX 6000 Pro Blackwell
The application worked perfectly during the initial session. I was able to use --attention sage2 and generate content successfully (it also worked without the sageattention flag before). During one session, I believe I changed a setting in the UI related to preloading models. After this change, the application continued to function correctly until I closed it.
Upon trying to restart the application, it consistently fails and crashes with an AttributeError, pointing to a circular import. The error occurs regardless of the startup command used. I cannot start it with the default python wgp.py command, nor can I start it with previous, working command-line arguments like python wgp.py --compile --attention sage2 --profile 3.
I suspect, but am not certain, that the problem was triggered by changing the "preload model" setting in the UI, and this is now preventing any successful startup.
Error Log / Traceback
(wan2gp) D:\Wan2GP>python wgp.py
Loading Model 'ckpts/Wan14BT2VFusioniX_fp16.safetensors' ...
Loading Module 'ckpts/wan2.1_Vace_14B_module_mbf16.safetensors' ...
Traceback (most recent call last):
File "D:\Wan2GP\wgp.py", line 16, in
import wan
File "D:\Wan2GP\wan_init_.py", line 3, in
from .text2video import WanT2V
File "D:\Wan2GP\wan\text2video.py", line 31, in
from wgp import update_loras_slists
File "D:\Wan2GP\wgp.py", line 2554, in
wan_model, offloadobj, transformer = load_models(transformer_type)
File "D:\Wan2GP\wgp.py", line 2510, in load_models
wan_model, pipe = load_wan_model(model_file_list, model_type, base_model_type, quantizeTransformer = quantizeTransformer, dtype = transformer_dtype, VAE_dtype = VAE_dtype, mixed_precision_transformer = mixed_precision_transformer, save_quantized = save_quantized)
File "D:\Wan2GP\wgp.py", line 2378, in load_wan_model
model_factory = wan.WanT2V
AttributeError: partially initialized module 'wan' has no attribute 'WanT2V' (most likely due to a circular import). Did you mean: 'WanI2V'?
System Information