Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] matplotlib-1.4.3 conflict with PyQt5-5.7.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 43
Location: Poland

PostPosted: Wed Mar 22, 2017 11:12 am    Post subject: [SOLVED] matplotlib-1.4.3 conflict with PyQt5-5.7.1 Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30911
Location: here

PostPosted: Wed Mar 22, 2017 12:17 pm    Post subject: Reply with quote

And try to install version 9999 (live) of matplotlib?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Wed Mar 22, 2017 12:20 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=613350
Back to top
View user's profile Send private message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 43
Location: Poland

PostPosted: Wed Mar 22, 2017 1:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 43
Location: Poland

PostPosted: Fri Mar 31, 2017 6:36 am    Post subject: Reply with quote

I'm marking the problem as solved.
Back to top
View user's profile Send private message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 43
Location: Poland

PostPosted: Wed Jan 24, 2018 9:57 am    Post subject: Reply with quote

And matplotlib-2.1.0-r1 has just been stabilized for amd64!
That feeling of joy.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum