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

AttributeError: 'ComfyUIManagerLogger' object has no attribute 'isatty' #43

Closed
dtyty1895 opened this issue Mar 15, 2024 · 18 comments
Closed

Comments

@dtyty1895
Copy link

image

@AlekPet
Copy link
Owner

AlekPet commented Mar 15, 2024

Hey, I'll see when I have time.
#41

@cxyfreedom
Copy link

same problem

@AlekPet
Copy link
Owner

AlekPet commented Mar 15, 2024

I looked, if I remove the comfyui manager, then everything works. Must watch.

@cxyfreedom
Copy link

cxyfreedom commented Mar 15, 2024

I looked, if I remove the comfyui manager, then everything works. Must watch.

I don't this error detail. My solution is vim /site-packages/stanza/utils/get_tqdm.py to below code.

# if sys.stderr is not None and sys.stderr.isatty():
if sys.stderr is not None and getattr(sys.stderr, "isatty", None) and sys.stderr.isatty():

Then extension is worked.

@AlekPet
Copy link
Owner

AlekPet commented Mar 15, 2024

You can correct the code in the modules so that the manager does not demolish it.

Fix module tqdm:
../python_embeded/Lib/site-packages/stanza/utils/get_tqdm.py

Line 34:

    if sys.stderr is not None and sys.stderr.isatty():

Change to:

    if sys.stderr is not None and hasattr(sys.stderr, "isatty") and sys.stderr.isatty():

@mufenglyf
Copy link

image
This is the manager's prompt

@VedanthB
Copy link

VedanthB commented Mar 15, 2024

sae error, how can i fix this ?

@dtyty1895
Copy link
Author

@cxyfreedom @AlekPet Thank u ! it can work !

@dtyty1895
Copy link
Author

@VedanthB Just follow the above and it will work !

@VedanthB
Copy link

@dtyty1895 i am running comfy UI on a colab notebook, where can i find /site-packages/stanza/utils/get_tqdm.py ?

@AlekPet
Copy link
Owner

AlekPet commented Mar 15, 2024

@dtyty1895 i am running comfy UI on a colab notebook, where can i find /site-packages/stanza/utils/get_tqdm.py ?

If you don't need ArgosTranslateNode, delete the folder in custom_nodes #41

@VedanthB
Copy link

@AlekPet I need the translate node

@AlekPet
Copy link
Owner

AlekPet commented Mar 15, 2024

@AlekPet I need the translate node

Alternatively, remove (temporarily) the manager or remove it from the nodes, or wait for the stanza update (stanfordnlp/stanza#1367) or use another translator.

@dtyty1895
Copy link
Author

@VedanthB I help you find the stanza path in Colab, you need to modify the content described above.
image

@hmongdev
Copy link

hmongdev commented Mar 16, 2024

You can correct the code in the modules so that the manager does not demolish it.

Fix module tqdm: ../python_embeded/Lib/site-packages/stanza/utils/get_tqdm.py

Line 34:

    if sys.stderr is not None and sys.stderr.isatty():

Change to:

    if sys.stderr is not None and hasattr(sys.stderr, "isatty") and sys.stderr.isatty():

This works! Thank you.

  1. Find the get_tqdm.py file:

Screenshot 2024-03-15 213540

  1. Change line 34
    if sys.stderr is not None and hasattr(sys.stderr, "isatty") and sys.stderr.isatty():

Screenshot 2024-03-15 213733

  1. Save File
  2. Restart ComfyUI

Enjoy 🥳

@kiklauss
Copy link

You can correct the code in the modules so that the manager does not demolish it.
Fix module tqdm: ../python_embeded/Lib/site-packages/stanza/utils/get_tqdm.py
Line 34:

    if sys.stderr is not None and sys.stderr.isatty():

Change to:

    if sys.stderr is not None and hasattr(sys.stderr, "isatty") and sys.stderr.isatty():

This works! Thank you.

  1. Find the get_tqdm.py file:

Screenshot 2024-03-15 213540

  1. Change line 34
    if sys.stderr is not None and hasattr(sys.stderr, "isatty") and sys.stderr.isatty():

Screenshot 2024-03-15 213733

  1. Save File
  2. Restart ComfyUI

Enjoy 🥳

This works! Thank you.

@alexbofa
Copy link

Hello
You need to go to ManagerInstall PIP packages → put stanza==1.2.3 and restart

@jacochen
Copy link

Hello You need to go to ManagerInstall PIP packages → put stanza==1.2.3 and restart

This works! Thank you.

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

9 participants