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
PyQt5 pyplot error #6858
Comments
Duplicate #6853 |
Closed by #6854 |
I am having similar output after updating (with portage): Error message is: With my current configuration this can be reproduced with plotting script using matplotlib, enough should be just: I use matplotlib 1.4.3 If sip, PyQt4 and PyQt5 are downgraded to previously used versions, everything runs smoothly. |
As you can see from the milestone, this bug was fixed in 2.0.0; 1.4.3 is very old now. |
Hi! QObject::connect: Cannot connect NavigationToolbar2QT::message(QString) to (null)::_show_message() Does anybody know which is the problem and how to solve it?? Thank you |
@fstefanoni this was fixed in matplotlib 1.5.3 you will have to upgrade to at least that version to get the fix |
@jenshnielsen thank you very much!! Now it works:) |
Ubuntu 16.04
Python 3.5.2
matplotlib 1.5.1
PyQt5 5.7
Installed using pip in anaconda
QObject::connect: Cannot connect NavigationToolbar2QT::message(QString) to (null)::_show_message()
Traceback (most recent call last):
File "test_conv.py", line 14, in
plt.plot(xvals)
File "/home/padraig/.local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 3147, in plot
ax = gca()
File "/home/padraig/.local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 928, in gca
return gcf().gca(*_kwargs)
File "/home/padraig/.local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 578, in gcf
return figure()
File "/home/padraig/.local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 527, in figure
*_kwargs)
File "/home/padraig/.local/lib/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", line 43, in new_figure_manager
return new_figure_manager_given_figure(num, thisFig)
File "/home/padraig/.local/lib/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", line 51, in new_figure_manager_given_figure
return FigureManagerQT(canvas, num)
File "/home/padraig/.local/lib/python3.5/site-packages/matplotlib/backends/backend_qt5.py", line 465, in init
self.toolbar.message.connect(self._show_message)
TypeError: connect() failed between NavigationToolbar2QT.message[str] and _show_message()
The text was updated successfully, but these errors were encountered: