View previous topic :: View next topic |
Author |
Message |
mao n00b
Joined: 22 Mar 2017 Posts: 43 Location: Poland
|
Posted: Wed Mar 22, 2017 11:12 am Post subject: [SOLVED] matplotlib-1.4.3 conflict with PyQt5-5.7.1 |
|
|
Hi, I'm new here. I've been using gentoo for a while and I really like the distro.
But to the point; recently (19.03) I updated PyQt5 package (along with sip and PyQt4), but using these with matplotlib 1.4.3 seems not to be possible. Each time I try to use matplotlib features, I get the following:
File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 921, in subplot fig = gcf()
File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 462, in gcf return figure()
File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 435, in figure **kwargs)
File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_qt5agg.py", line 48, in new_figure_manager return new_figure_manager_given_figure(num, thisFig)
File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_qt5agg.py", line 56, in new_figure_manager_given_figure return FigureManagerQT(canvas, num)
File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 481, in __init__self.toolbar.message.connect(self._show_message)
TypeError: connect() failed between NavigationToolbar2QT.message[str] and _show_message()
This is of course a bug, that was fixed in matplotlib-2.0.0
Unfortunately I cannot downgrade PyQt5 (5.5.1 is not available anymore). For now I only use stable packages.
Is there anyone who have encountered similar problem and can advise me with a solution?
Regards
Last edited by mao on Fri Mar 31, 2017 6:35 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30911 Location: here
|
Posted: Wed Mar 22, 2017 12:17 pm Post subject: |
|
|
And try to install version 9999 (live) of matplotlib? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
|
Back to top |
|
|
mao n00b
Joined: 22 Mar 2017 Posts: 43 Location: Poland
|
Posted: Wed Mar 22, 2017 1:00 pm Post subject: |
|
|
Thanks for response
fedeliallalinea wrote: | And try to install version 9999 (live) of matplotlib? |
I did try just now, I emerged matplotlib-9999 (thus departing my resolution to use only stable packages), then also emerged backports-functools-lru-cache , as I was getting error message
...
ImportError: No module named backports.functools_lru_cache
Everyhing works smoothly now. Thanks.
asturm wrote: | https://bugs.gentoo.org/show_bug.cgi?id=613350 |
I didn't see that bug rerport, but I did indeed get the same result.
So, I'm going to stick to live version of matplotlib, until version 2.0.0 is available and marked stable. |
|
Back to top |
|
|
mao n00b
Joined: 22 Mar 2017 Posts: 43 Location: Poland
|
Posted: Fri Mar 31, 2017 6:36 am Post subject: |
|
|
I'm marking the problem as solved. |
|
Back to top |
|
|
mao n00b
Joined: 22 Mar 2017 Posts: 43 Location: Poland
|
Posted: Wed Jan 24, 2018 9:57 am Post subject: |
|
|
And matplotlib-2.1.0-r1 has just been stabilized for amd64!
That feeling of joy. |
|
Back to top |
|
|
|