Is there an existing issue for this?
- [X] I have searched the existing issues
OS
Windows
GPU
cuda
VRAM
No response
What happened?
Site package failed to load. transformers.models.clip.modeling_clip . 'NoneType' object has no attribute 'message_types_by_name'
Screenshots
Traceback (most recent call last):
File "D:\StableDiffusion\invokeAI\scripts\configure_invokeai.py", line 23, in
from transformers import CLIPTokenizer, CLIPTextModel
File "", line 1075, in _handle_fromlist
File "D:\Anaconda3\envs\invokeai\lib\site-packages\transformers\utils\import_utils.py", line 993, in getattr
value = getattr(module, name)
File "D:\Anaconda3\envs\invokeai\lib\site-packages\transformers\utils\import_utils.py", line 992, in getattr
module = self._get_module(self._class_to_module[name])
File "D:\Anaconda3\envs\invokeai\lib\site-packages\transformers\utils\import_utils.py", line 1004, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback):
'NoneType' object has no attribute 'message_types_by_name'
""
"The configure script crashed or was cancelled."
"InvokeAI is not ready to run. To run preload_models.py again,"
"run the command 'update.bat' in this directory."
"Press any key to continue"
Additional context
No response
Contact Details
No response
I have a similar/same type of error message. I started the installation, it ended with an error message. I started the update as instructed, here is the error message. This is on Linux.
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/mnt/y1c-eepos2022-07/StaDif2/invokeAI/scripts/preload_models.py", line 8, in
import configure_invokeai
File "/mnt/y1c-eepos2022-07/StaDif2/invokeAI/scripts/configure_invokeai.py", line 23, in
from transformers import CLIPTokenizer, CLIPTextModel
File "", line 1055, in _handle_fromlist
File "/mnt/y1c-eepos2022-07/StaDif2/invokeAI/installer_files/env/envs/invokeai/lib/python3.9/site-packages/transformers/utils/import_utils.py", line 993, in getattr
value = getattr(module, name)
File "/mnt/y1c-eepos2022-07/StaDif2/invokeAI/installer_files/env/envs/invokeai/lib/python3.9/site-packages/transformers/utils/import_utils.py", line 992, in getattr
module = self._get_module(self._class_to_module[name])
File "/mnt/y1c-eepos2022-07/StaDif2/invokeAI/installer_files/env/envs/invokeai/lib/python3.9/site-packages/transformers/utils/import_utils.py", line 1004, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.models.clip.modeling_clip because of the following error (look up to see its traceback):
'NoneType' object has no attribute 'message_types_by_name'
Resolved with fresh install using latest installer.