[Matplotlib-users] Cannot connect NavigationToolbar2QT

Thomas Caswell tcaswell at gmail.com
Wed Aug 3 09:38:25 EDT 2016


This is the same as https://github.com/matplotlib/matplotlib/issues/6853

which is fixed by https://github.com/matplotlib/matplotlib/pull/6854

Tom

On Wed, Aug 3, 2016 at 9:06 AM Helmut Jarausch <jarausch at skynet.be> wrote:

> Hi,
>
> I haven't used Matplotlib for a while but now I cannot use it anymore.
> Even the simplest vector plot gives
>
> import matplotlib.pyplot as plt
> >>> x=[0.0,0.1,0.2,0.3,0.4,0.5]
> >>> y=[x[i]**2 for i in range(0,6)]
> >>> plt.plot(x,y)
> QObject::connect: Cannot connect NavigationToolbar2QT::message(QString)
> to (null)::_show_message()
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line
> 3147, in plot
>      ax = gca()
>    File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line
> 928, in gca
>      return gcf().gca(**kwargs)
>    File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line
> 578, in gcf
>      return figure()
>    File "/usr/lib64/python3.5/site-packages/matplotlib/pyplot.py", line
> 527, in figure
>      **kwargs)
>    File
> "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py",
> line 43, in new_figure_manager
>      return new_figure_manager_given_figure(num, thisFig)
>    File
> "/usr/lib64/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py",
> line 51, in new_figure_manager_given_figure
>      return FigureManagerQT(canvas, num)
>    File
> "/usr/lib64/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()
>
>
> Has anybody got an idea what's going wrong here?
>
> I have compiled Matploblib from source on my Gentoo system using Python
> 3.5.2  with the gtk3 and qt5 backend.
>
> Many thanks for a hint,
> Helmut
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160803/29f85a3f/attachment.html>


More information about the Matplotlib-users mailing list