[Matplotlib-users] mplcairo crashes python3.10

Antony Lee antony.lee at institutoptique.fr
Tue Dec 7 09:13:19 EST 2021


This is a known issue; you need to upgrade to mplcairo master or wait for a
new release.
Best,
Antony

On Tue, Dec 7, 2021 at 1:58 PM Neal Becker <ndbecker2 at gmail.com> wrote:

> I'm using Fedora 35, with python3.10
> mplcairo is  python3-mplcairo-0.4-3.fc35.x86_64, but I've also tried
> pip install mplcairo and get the same result.
>
> In matplotlibrc I have
> backend: module://mplcairo.qt
>
> Any simple plot to the screen results in:
> -------------------
> In [2]: Traceback (most recent call last):
>   File "/usr/lib64/python3.10/site-packages/mplcairo/qt.py", line 36,
> in paintEvent
>     pixel_ratio = self.pixel_ratio
> AttributeError: 'FigureCanvasQTCairo' object has no attribute 'pixel_ratio'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/usr/lib64/python3.10/site-packages/mplcairo/qt.py", line 38,
> in paintEvent
>     pixel_ratio = self._dpi_ratio
> AttributeError: 'FigureCanvasQTCairo' object has no attribute '_dpi_ratio'
> ---------------
>
> I had been using this same setup for quite some time, but perhaps it's
> the update to Fedora34 that is now triggering the issue.
> Any ideas?  I've already adapted many of my scripts to use
> mplcairo.multipage so need this to work again.
>
> Thanks,
> Neal
>
> --
> Those who don't understand recursion are doomed to repeat it
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/matplotlib-users/attachments/20211207/734e6d2c/attachment.html>


More information about the Matplotlib-users mailing list