Cannot mix incompatible Qt library (version 0x50b01) with this library (version 0x50b02) Aborted (core dumped)

My code was running correctly, but now with the following ERROR message:

*Cannot mix incompatible Qt library (version 0x50b01) with this library
(version 0x50b02)*
*Aborted (core dumped)*

I actually just want to use *matplotlib* as:

import matplotlib.pyplot as plt
import matplotlib.dates as md

Now, whenever I want to use matplotlib, I got the above error...

Can anybody help?

Cheers

···

--

Pei JIA, Ph.D.

Email: jp4work at gmail.com
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20181008/3b17c36c/attachment.html>

Did you just recently upgraded to matplotlib v3.0? I am guessing somehow
that upgrade also did some things to your QT libraries as well. You can try
changing your default backend to something like TkAgg so that it doesn't
try the QT based backends.

···

On Mon, Oct 8, 2018 at 4:26 AM JIA Pei <jp4work at gmail.com> wrote:

My code was running correctly, but now with the following ERROR message:

*Cannot mix incompatible Qt library (version 0x50b01) with this library
(version 0x50b02)*
*Aborted (core dumped)*

I actually just want to use *matplotlib* as:

import matplotlib.pyplot as plt
import matplotlib.dates as md

Now, whenever I want to use matplotlib, I got the above error...

Can anybody help?

Cheers

--

Pei JIA, Ph.D.

Email: jp4work at gmail.com
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
Matplotlib-users Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20181008/b8b909fd/attachment.html&gt;

Can you do

import PyQt

without error? I suspect this is due to installation issues between Qt and
PyQt versions.

···

On Mon, Oct 8, 2018 at 10:50 AM Benjamin Root <ben.v.root at gmail.com> wrote:

Did you just recently upgraded to matplotlib v3.0? I am guessing somehow
that upgrade also did some things to your QT libraries as well. You can try
changing your default backend to something like TkAgg so that it doesn't
try the QT based backends.

On Mon, Oct 8, 2018 at 4:26 AM JIA Pei <jp4work at gmail.com> wrote:

My code was running correctly, but now with the following ERROR message:

*Cannot mix incompatible Qt library (version 0x50b01) with this library
(version 0x50b02)*
*Aborted (core dumped)*

I actually just want to use *matplotlib* as:

import matplotlib.pyplot as plt
import matplotlib.dates as md

Now, whenever I want to use matplotlib, I got the above error...

Can anybody help?

Cheers

--

Pei JIA, Ph.D.

Email: jp4work at gmail.com
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
Matplotlib-users Info Page

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
Matplotlib-users Info Page

--
Thomas Caswell
tcaswell at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20181010/6e2eaea9/attachment.html&gt;

I can successfully do

*import PyQt5*

···

-----
Welcome to Longer Vision
[url]http://www.longervision.ca[/url]
--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html

Yes, exactly...

$ pip3 show matplotlib
Name: matplotlib
Version: 3.0.0
Summary: Python plotting package
Home-page: http://matplotlib.org
Author: John D. Hunter, Michael Droettboom
Author-email: matplotlib-users at python.org
License: BSD
Location: ~/.local/lib/python3.6/site-packages
Requires: cycler, python-dateutil, kiwisolver, pyparsing, numpy
Required-by: seaborn, scikit-image, pycocotools

···

-----
Welcome to Longer Vision
[url]http://www.longervision.ca[/url]
--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html

Yes, exactly...

<code>
$ pip3 show matplotlib
Name: matplotlib
Version: 3.0.0
Summary: Python plotting package
Home-page: http://matplotlib.org
Author: John D. Hunter, Michael Droettboom
Author-email: matplotlib-users at python.org
License: BSD
Location: ~/.local/lib/python3.6/site-packages
Requires: cycler, python-dateutil, kiwisolver, pyparsing, numpy
Required-by: seaborn, scikit-image, pycocotools
</code>

···

-----
Welcome to Longer Vision
[url]http://www.longervision.ca[/url]
--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html

Problem solved...
I upgraded from Qt5.11.1 to Qt5.11.2, and reinstalled PyQt5 ...

Thank you everyone...

···

-----
Welcome to Longer Vision
[url]http://www.longervision.ca[/url]
--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html