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 · 6 comments
Open

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

jp000 opened this issue Jul 3, 2023 · 6 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.

@bje-
Copy link
Contributor

bje- commented Dec 19, 2024

For now, Gooey should just pin the colored version at < 2.

@sbillinge
Copy link
Collaborator

Thanks for the report. Over the winter break I will be looking into what can be fixed for an update early next year. I appreciate your inputs. Just a heads-up.

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

7 participants