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
"Unexpected null receiver" when using python -c #4195
Comments
Please don't use attn @mfitzp thoughts on the Qt issue? |
Unfortunately I'm not able to reproduce the error to test (on PyQt5), but the error results from an attempt by Qt to post (send) an event to an object that has been deleted. Since it's happening at shutdown it's probably a an object delete ordering issue. I can't find any reference to manual deletion of objects, so it might be a Python garbage collection thing. This block in
There is a signal on all
e.g.
@anntzer can you test the above and see if it solves the issue? If it helps it I'll test vs. PyQt4 and PySide also. |
This doesn't seem to help (i.e. I see the same issue). re pylab: I know the issues wit pylab and actually use OO-style for most of my programs (especially as I usually write full GUIs) but I'd have thought that it's still OK for one-off programs (that are directly given at the command line and not even written to an actual file...). |
For what you are doing, it is fine so long as you are aware of the caveats. pylab "plot([1, 2], [3, 4])" and then tuck away everything before and the plt.show() into the alias? On Fri, Mar 6, 2015 at 2:41 PM, Antony Lee notifications@github.com wrote:
|
That's a good idea:
|
I have a feeling that the other developers are going to shun me at the next On Fri, Mar 6, 2015 at 4:19 PM, Antony Lee notifications@github.com wrote:
|
We should make pylab print out a giant ascii art banner and a short essay (Mostly joking) On Fri, Mar 6, 2015, 16:37 Benjamin Root notifications@github.com wrote:
|
In fact, I see the same issue with IPython:
|
@anntzer As I can't reproduce it's difficult to work out a solution. Can you give me the your full system specification (Windows/Mac/Linux + version; version of matplotlib; version of PyQt5; version of Qt5)? I'll try to match your build and see where that gets me. |
|
Can't reproduce this anymore even though I am still using the same versions of all packages on the same machine. Feel free to close. |
Sometimes I use
python -c ...
to plot something quickly from the terminal. With the Qt5Agg backend, closing the window leads to a (rather benign) error being printed on the terminal:The text was updated successfully, but these errors were encountered: