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

MatplotLibGallery Demo error: 'Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure' #13

Open
unununununununun opened this issue Jul 28, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@unununununununun
Copy link

Throws an error when trying to draw
image

Solution:
pip install pyqt5

...then works ok

image

@peardox
Copy link
Contributor

peardox commented Aug 1, 2022

Maybe add a pyqt5 component?

@lmbelo lmbelo self-assigned this Aug 2, 2022
@lmbelo
Copy link
Member

lmbelo commented Aug 2, 2022

I'd love a pull request introducing pyqt5.

@lmbelo lmbelo added the enhancement New feature or request label Aug 2, 2022
@peardox
Copy link
Contributor

peardox commented Aug 2, 2022

I'll go find a selection of handy modules to add to the collection as there are others that are obvious (keras springs to the top of the list but then so do more...)

So far I've only built ones I'll actually use myself (or to fix a Issue for CV2_Contrib)

@peardox
Copy link
Contributor

peardox commented Aug 5, 2022

pyqt5

Should have assigned to me - doing it now (want rembg + boto3 for personal uses)
I can do simple stuff like this without problem (the more esoteric stuff I need help with)

@peardox
Copy link
Contributor

peardox commented Aug 5, 2022

Crap - QT5 non MIT

PyQt5 is dual licensed on all platforms under the Riverbank Commercial License and the GPL v3. Your PyQt5 license must be compatible with your Qt license. If you use the GPL version then your own code must also use a compatible license.

Including (extremely short) readmes for new modules

@peardox
Copy link
Contributor

peardox commented Aug 5, 2022

I just wrote the pyqt5 component and tested it with this demo - result was an assertion error

This test was simply a case of dropping the component on the form and selecting the env.

Examining the demo there's no setup, install or import so possibly something is going wrong at that stage

See #15

@peardox
Copy link
Contributor

peardox commented Aug 5, 2022

@unununununununun

#16 makes it work

There is still an error on starting but I think this is just not having initialised QT5 or something. After the initial issue charts now plot

Just add a PyQT5 component to your form and set it's environment as it's almost there.

Can someone who knows how QT5 works suggest how to stop the startup junk pls?

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

No branches or pull requests

3 participants