You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to happen because Python uses the Windows CP949 encoding under the Korean system locale, while the PyTorch template file is encoded in UTF-8.
Solution
In Stability Matrix, I opened:
Settings > Environment Variables > Edit
Then I added the following environment variable:
PYTHONUTF8=1
After saving the setting, I completely closed Stability Matrix, including the tray process, and restarted it.
The TorchCompileModelAdvanced node then worked correctly.
Setting PYTHONUTF8=1 in Stability Matrix is the appropriate solution when launching ComfyUI through Stability Matrix.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered a Failed to compile model error when using the TorchCompileModelAdvanced node from ComfyUI-KJNodes.
Environment
Windows 11 with Korean system locale
Stability Matrix
ComfyUI 0.28.0
Python 3.11.13
PyTorch 2.13.0 + CUDA 13.0
NVIDIA RTX 4090
Error
The underlying exception was:
UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2
The error occurred while torch.compile was importing PyTorch Inductor and reading an internal kernel template:
torch._inductor.kernel.mm_grouped.py
torch._inductor.utils.load_template()
f.read()
This appears to happen because Python uses the Windows CP949 encoding under the Korean system locale, while the PyTorch template file is encoded in UTF-8.
Solution
In Stability Matrix, I opened:
Settings > Environment Variables > Edit
Then I added the following environment variable:
PYTHONUTF8=1
After saving the setting, I completely closed Stability Matrix, including the tray process, and restarted it.
The TorchCompileModelAdvanced node then worked correctly.
Setting PYTHONUTF8=1 in Stability Matrix is the appropriate solution when launching ComfyUI through Stability Matrix.
Beta Was this translation helpful? Give feedback.
All reactions