<div dir="ltr">Hi Rodrigo,<div><br></div><div>Thanks for your bug report, for looking into it, and trying to come up with a potential solution.</div><div><br></div><div>As Thiago mentioned, this is a known issue. In version 1.4.1 (tagged but not released), the import of the offending module (`tikzplotlitb`) only occurs when the module is needed.</div><div>If you want to give it a try, you can install this version of kuibit with:</div><div>```</div><div>pip install -U git+<a href="https://github.com/sbozzolo/kuibit.git@141">https://github.com/sbozzolo/kuibit.git@141</a><br></div><div>```</div><div><br></div><div>There is a pull request to `tikzplotlib` that does what you suggested: <a href="https://github.com/nschloe/tikzplotlib/pull/604">https://github.com/nschloe/tikzplotlib/pull/604</a> . However, it has not been merged yet. Unfortunately, `tikzplotlib` hasn't seen too much work as of lately...</div><div><br></div><div>Please, let us know if you encounter further issues.</div><div><br></div><div>Best,</div><div>Gabriele</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 6, 2024 at 7:39 AM Thiago Assumpção <<a href="mailto:assumpcaothiago@gmail.com">assumpcaothiago@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Rodrigo,<br><br></div>I believe you are experiencing the same issue reported here: <a href="https://github.com/Sbozzolo/kuibit/issues/37" target="_blank">https://github.com/Sbozzolo/kuibit/issues/37</a><br><br></div>A possible workaround is to use kuibit in an environment with matplotlib 3.7.<br><br></div>Best,<br></div>Thiago<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 6, 2024 at 10:12 AM Rodrigo Berté <<a href="mailto:berte.rodrigo@gmail.com" target="_blank">berte.rodrigo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Sir/Madam,<br><br>I am a new user of kuibit and I would like to report a bug (at least that is how it appears to me) and a possible solution to it.<br><br>I am running Ubuntu through the Windows subsystem for Linux (Windows 10) and when trying to run a kuibit script to plot some data from the single star simulation tov_EV (<a href="https://github.com/EinsteinToolkit/jupyter-et/blob/master/tutorial-server/notebooks/CactusTutorial.ipynb" target="_blank">https://github.com/EinsteinToolkit/jupyter-et/blob/master/tutorial-server/notebooks/CactusTutorial.ipynb</a>), the following error is shown:<br><br>File "/home/USER/.local/lib/python3.10/site-packages/tikzplotlib/_axes.py", line 3, in <module><br> from matplotlib.backends.backend_pgf import (<br>ImportError: cannot import name 'common_texification' from 'matplotlib.backends.backend_pgf'<br><br>Apparently the function "common_texification" has been discontinued and replaced by "_tex_escape" (as shown in matplotlib.backends.backend_pgf in the Spyder files - the Python compiler I use in Windows).<br><br>@_api.deprecated("3.6")<br>def common_texification(text):<br> return _tex_escape(text)<br><br>So, by replacing the instances of "common_texification" (6 I believe) by "_tex_escape" in the _axes.py module of the tikzplotlib library, the kuibit functions in Ubuntu seem to run smoothly. <br><br>I am a relatively inexperienced user of Ubuntu/WSL/Python and I am not sure how much this is considered a bug, but I hope that this could be useful for others.<br><br>Many thanks,<br>Rodrigo<br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span><span><p class="MsoNormal"><span>Dr. Rodrigo Berté</span></p><p class="MsoNormal"><span></span></p></span></span><div><span><span> Goiânia-GO, Brazil</span></span></div></div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@einsteintoolkit.org" target="_blank">Users@einsteintoolkit.org</a><br>
<a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.org/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@einsteintoolkit.org" target="_blank">Users@einsteintoolkit.org</a><br>
<a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.org/mailman/listinfo/users</a><br>
</blockquote></div>