-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Using matplotlib 2.1.0rc1 seems to corrupt PySide #9162
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
Comments
It looks to come from From what I tested, replacing:
by |
attn: @anntzer |
In my hand failure with pyside bisects back to #8394 and reverting it with
appears to fix the issue (although it would be nice to know why). I was going to say we definitely need to test pyside too, but right now the interactive backend mini-test-suite is Py3 only and this issue appears to be Py2 only. |
Looks like the first thing to do is actually
to fix https://bugreports.qt.io/browse/PYSIDE-75 -- this appears to also work with pyqt5-py3. I haven't tried all the combos but it does make sense to pass bytes as argv anyways. This does not fix the issue with the example code by the OP though (which is not subject to this bug as they explicitly create the QApp themselves). |
And the patch proposed by the OP also looks fine to me. |
This patch also solves the issue and seems to work for what I tested (PySide, PyQt4 on python2, PyQt5 (5.6 and 5.9) on python3 on Windows).
(patch updated after more testing) If you are happy with this patch or the previous one, I can test further and make a PR. |
See #9040 for why we switched to using super throughout. Please check whether your patch is subject to the same issue (I can't tell). |
I could not reproduced #9040 with both patches. In #8618, a patch similar to the second one I proposed was already proposed but the I made 2 branches with the two patches:
|
Closed by #9169. |
Bug report
Bug summary
Hi. We are using CI of our project with PySide and pre releases of matplotlib. We notice that since 2.1.0rc1 all our tests fails with this kind or error message:
After introspection we think that the problem come from matplotlib 2.1.0rc1, but it was too difficult to identify why. Using the previour version of matplotlib does not occur any problem.
The problem looks critical.
Any idea why this issue happens?
Code for reproduction
Actual outcome
Expected outcome
As you can see, after the use of
canvas = FigureCanvas(fig)
, we are not able anymore to instantiate a very simple custom widget. Using old or new way to call inherited__init__
do not change anything.Matplotlib version
Our CI is on Windows.
But I can reproduce it on my system with a fresh virtualenv, compiling everything using pip: numpy, matplotlib and PySide.
The text was updated successfully, but these errors were encountered: