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

Can not Start Pylustrator #54

Open
PhysXu opened this issue Jan 12, 2023 · 8 comments
Open

Can not Start Pylustrator #54

PhysXu opened this issue Jan 12, 2023 · 8 comments

Comments

@PhysXu
Copy link

PhysXu commented Jan 12, 2023

When I run import pylustrator, there always has an error of No module named 'matplotlib.backends.backend_qtagg'
Could you give some suggestions to solve this issue?
image

@rgerum
Copy link
Owner

rgerum commented Jan 19, 2023

which matplotlib version are you using? I guess it's a matplotlib version issue.

@PhysXu
Copy link
Author

PhysXu commented Jan 20, 2023

which matplotlib version are you using? I guess it's a matplotlib version issue.

Thanks very much for the reply.
The version of matplotlib is 3.4.3, please see below:
image
I have tried it in Jupyter_lab and Jupyter_notebook, the same error.

BTW, as I am new to Python, What can I do if I need to install a certain version of matplotlib?

@rgerum
Copy link
Owner

rgerum commented Jan 20, 2023

you can use

pip install matplotlib==3.6.2

in the command line.

But I will have a look at see that I can fix it to work also with the older matplotlib version again.

@PhysXu
Copy link
Author

PhysXu commented Jan 20, 2023

you can use

pip install matplotlib==3.6.2

in the command line.

But I will have a look at see that I can fix it to work also with the older matplotlib version again.

Thanks for the reply.
I noted in the pylustrator website, it said that ** The package depends on:

numpy, matplotlib, pyqt5, qtpy, qtawesome, scikit-image, natsort**.
Could you tell me which version of those packages I need to install to support PyLustrator?
Thanks very much!

@rgerum
Copy link
Owner

rgerum commented Jan 20, 2023

natsort = ">=2.0.0"
numpy = ">=1.0.3"
matplotlib = ">=2.0.2"
PyQt5 = ">=5.6"
qtawesome = ">=0.5.0"
scikit-image = ">=0.7.0"

this is what minimal versions should be supported. But apparently there is a problem with the support of older matplotlib versions. if you use matplotlib==3.6.2 it should work.

@PhysXu
Copy link
Author

PhysXu commented Jan 21, 2023

natsort = ">=2.0.0" numpy = ">=1.0.3" matplotlib = ">=2.0.2" PyQt5 = ">=5.6" qtawesome = ">=0.5.0" scikit-image = ">=0.7.0"

this is what minimal versions should be supported. But apparently there is a problem with the support of older matplotlib versions. if you use matplotlib==3.6.2 it should work.

Succeed after I updated my matplotlib!
Thanks very much for your help!

@PhysXu
Copy link
Author

PhysXu commented Jan 21, 2023

natsort = ">=2.0.0" numpy = ">=1.0.3" matplotlib = ">=2.0.2" PyQt5 = ">=5.6" qtawesome = ">=0.5.0" scikit-image = ">=0.7.0"

this is what minimal versions should be supported. But apparently there is a problem with the support of older matplotlib versions. if you use matplotlib==3.6.2 it should work.

I have an additional question:
As I used the JupyterLab, after I close the window of pylustrator, the cell was still running/stuck.
Please see below:
image

How to solve/avoid this?

@rgerum
Copy link
Owner

rgerum commented Feb 28, 2023

I tried around a bit and I think if you remove the %matplotlib qt pylustrator opens and the cell finishes after pylustrator has been closed.

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

2 participants