Isues between Matplotlib TkAgg and wxPython

"[email protected]" <[email protected]> Fri, 24 Jun 2022 01:14:06 -0700 (PDT)
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
------=_Part_1750_662593290.1656058446893
Content-Type: multipart/alternative; 
	boundary="----=_Part_1751_1826064631.1656058446893"

------=_Part_1751_1826064631.1656058446893
Content-Type: text/plain; charset="UTF-8"

Dear all

I have project using wxPython with Matplotlib. They played very well 
together until recently, after some software upgrade of my Linux machine. I 
did not touch my code when the problem started to appear.

Then I run my code, I get this error: "Cannot load backend 'TkAgg' which 
requires the 'tk' interactive framework, as 'wx' is currently running"

Digging deeper I found that the error happens at this call (when the frame 
containing the Matplotlib panel is being set up):

   self.figure = plt.figure()

Does anyone have an idea what is happening here or what I should be looking 
for?

Matthias

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/b9f6924a-6747-4f52-9f4f-2041632b6d38n%40googlegroups.com.

------=_Part_1751_1826064631.1656058446893
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div>Dear all</div><div><br></div><div>I have project using wxPython with M=
atplotlib. They played very well together until recently, after some softwa=
re upgrade of my Linux machine. I did not touch my code when the problem st=
arted to appear.</div><div><br></div><div>Then I run my code, I get this er=
ror: "Cannot load backend 'TkAgg' which requires the 'tk' interactive frame=
work, as 'wx' is currently running"</div><div><br></div><div>Digging deeper=
 I found that the error happens at this call (when the frame containing the=
 Matplotlib panel is being set up):</div><div><br></div><div>&nbsp;&nbsp; s=
elf.figure =3D plt.figure()</div><div><br></div><div>Does anyone have an id=
ea what is happening here or what I should be looking for?</div><div><br></=
div><div>Matthias<br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wxpy=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/wxpython-users/b9f6924a-6747-4f52-9f4f-2041632b6d38n%40googlegro=
ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d=
/msgid/wxpython-users/b9f6924a-6747-4f52-9f4f-2041632b6d38n%40googlegroups.=
com</a>.<br />

------=_Part_1751_1826064631.1656058446893--

------=_Part_1750_662593290.1656058446893--