alpertunga-bile / prompt-generator-comfyui

Custom AI prompt generator node for the ComfyUI
MIT License
72 stars 8 forks source link

[BUG]Import failed No module named 'keras.engine' #8

Closed ultimatech-cn closed 5 months ago

ultimatech-cn commented 5 months ago

Describe the bug Windows portable version. When starting got following error message:

Cannot import E:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\prompt-generator-comfyui module for custom nodes: Failed to import optimum.onnxruntime.modeling_ort because of the following error (look up to see its traceback):
Failed to import transformers.modeling_tf_utils because of the following error (look up to see its traceback):
No module named 'keras.engine'

Operating System

Python Version

Transformers and optimum packages versions Name: transformers Version: 4.26.1 Name: optimum Version: 1.17.1

ComfyUI Commit

prompt-generator-comfyui Commit

alpertunga-bile commented 5 months ago

Hello, thanks for reporting. It seems your transformers package is not up-to-date. The package version may be causing the problem. Please follow this troubleshooting package update section and let me know if the issue is going on

ultimatech-cn commented 5 months ago

Thanks, problem solved.