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

Problem with "colored" library for richtext-control #887

Open
jp000 opened this issue Jul 3, 2023 · 4 comments
Open

Problem with "colored" library for richtext-control #887

jp000 opened this issue Jul 3, 2023 · 4 comments

Comments

@jp000
Copy link

jp000 commented Jul 3, 2023

When setting richtext_controls=True in Gooey's decorator, the library "colored" version 2.2.2 makes exceptions due to an api change from version 1.4.4
colored was updated in june 2023

Detected on windows 10
Python 3.9

@dalonsoa
Copy link

dalonsoa commented Aug 8, 2023

I can confirm this

@Lauszus
Copy link

Lauszus commented Aug 16, 2023

Just to add on this. This is the exception:

  File "gooey/python_bindings/gooey_decorator.py", line 123, in run_gooey
  File "gooey/gui/application.py", line 21, in run
  File "gooey/gui/application.py", line 27, in build_app
  File "gooey/gui/application.py", line 40, in _build_app
  File "gooey/gui/containers/application.py", line 47, in __init__
  File "gooey/gui/components/console.py", line 21, in __init__
  File "gooey/gui/components/widgets/richtextconsole.py", line 45, in __init__
AttributeError: 'function' object has no attribute 'ESC'

I solved this for now by specifying the colored version when installing:

pip install gooey==1.0.8.1 colored==1.4.4

@jcfuentes
Copy link

any plans on updating this to colored 2.2.3?

@Entropy0
Copy link

colored==1.4.4

This makes the exception go away but at least for me (python 3.11 on windows) the output is not being formatted.

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