chaojie / ComfyUI-MotionCtrl-SVD

79 stars 5 forks source link

'Import failed' #1

Open glennamarshall opened 5 months ago

glennamarshall commented 5 months ago

Can't get this running - followed all instructions - nodes won't show up with demo workflow - all red - says 'import failed' in comfyui manager.

szriru commented 5 months ago

if the error comes from fire/formatting_windows.py, fix the code if sys.stdout.isatty() and platform.release() == '10': to if hasattr(sys.stdout, "isatty") and sys.stdout.isatty() and platform.release() == '10':

its at line 38 in C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\fire\formatting_windows.py in my case.

glennamarshall commented 5 months ago

cant find this file anywhere

DavideAlidosi commented 5 months ago

if the error comes from fire/formatting_windows.py, fix the code if sys.stdout.isatty() and platform.release() == '10': to if hasattr(sys.stdout, "isatty") and sys.stdout.isatty() and platform.release() == '10':

its at line 38 in C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\fire\formatting_windows.py in my case.

Thanks, that's work for me!

badgids commented 5 months ago

@szriru has the correct solution. I was also experiencing a "module not found: isatty" error and editing the the refrenced file with the presented solution fixed the error. Everything installed flawlessly afterwards and it works as expected.

I installed ComfyUI manually via Conda, so my file location was slightly different, it residing in my user home directory in my .conda directory.

if the error comes from fire/formatting_windows.py, fix the code if sys.stdout.isatty() and platform.release() == '10': to if hasattr(sys.stdout, "isatty") and sys.stdout.isatty() and platform.release() == '10':

its at line 38 in C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\fire\formatting_windows.py in my case.

Nebuluss commented 5 months ago

Worked as well for me! thanks