Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Import failed' #1

Open
glennamarshall opened this issue Jan 17, 2024 · 5 comments
Open

'Import failed' #1

glennamarshall opened this issue Jan 17, 2024 · 5 comments

Comments

@glennamarshall
Copy link

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
Copy link

szriru commented Jan 17, 2024

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
Copy link
Author

cant find this file anywhere

@DavideAlidosi
Copy link

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
Copy link

badgids commented Jan 21, 2024

@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
Copy link

Worked as well for me! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants