Re: Isues between Matplotlib TkAgg and wxPython

"[email protected]" <[email protected]> Sun, 26 Jun 2022 10:01:56 -0700 (PDT)
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
------=_Part_2790_971002458.1656262916071
Content-Type: multipart/alternative; 
	boundary="----=_Part_2791_663961305.1656262916071"

------=_Part_2791_663961305.1656262916071
Content-Type: text/plain; charset="UTF-8"

It turned out that some external modules imported to my code initialized 
matplotlib with the TkAgg backend, which was causing the trouble. I was 
able to fix the issue by modifying the external modules to avoid this.

On Friday, 24 June 2022 at 10:14:07 UTC+2 [email protected] wrote:

> 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/3feb258e-7f8c-435c-ae27-c62ffc082063n%40googlegroups.com.

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

It turned out that some external modules imported to my code initialized ma=
tplotlib with the TkAgg backend, which was causing the trouble. I was able =
to fix the issue by modifying the external modules to avoid this.<br><br><d=
iv class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Friday, =
24 June 2022 at 10:14:07 UTC+2 [email protected] wrote:<br/></div><blockquo=
te class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left: 1px sol=
id rgb(204, 204, 204); padding-left: 1ex;"><div>Dear all</div><div><br></di=
v><div>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.</div><div><br><=
/div><div>Then I run my code, I get this error: &quot;Cannot load backend &=
#39;TkAgg&#39; which requires the &#39;tk&#39; interactive framework, as &#=
39;wx&#39; is currently running&quot;</div><div><br></div><div>Digging deep=
er I found that the error happens at this call (when the frame containing t=
he Matplotlib panel is being set up):</div><div><br></div><div>=C2=A0=C2=A0=
 self.figure =3D plt.figure()</div><div><br></div><div>Does anyone have an =
idea what is happening here or what I should be looking for?</div><div><br>=
</div><div>Matthias<br></div></blockquote></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/3feb258e-7f8c-435c-ae27-c62ffc082063n%40googlegro=
ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d=
/msgid/wxpython-users/3feb258e-7f8c-435c-ae27-c62ffc082063n%40googlegroups.=
com</a>.<br />

------=_Part_2791_663961305.1656262916071--

------=_Part_2790_971002458.1656262916071--