[Matplotlib-users] prohibited to create memoryview without Py_buffer

fedora-33
mplcairo-0.3
rpm -qa python3-matplotlib-*
python3-matplotlib-tk-3.3.2-1.fc33.x86_64
python3-matplotlib-qt4-3.3.2-1.fc33.x86_64
python3-matplotlib-data-3.3.2-1.fc33.noarch
python3-matplotlib-data-fonts-3.3.2-1.fc33.noarch
python3-matplotlib-qt5-3.3.2-1.fc33.x86_64

This happened when I tried so save a plot to pdf using the gui. I got a dialog error box with the message:
prohibited to create memoryview without Py_buffer

···

Those who don’t understand recursion are doomed to repeat it

4 things:

  1. this is python3.9
  2. it is mplcairo. Selecting default backend save to pdf succeeds.
  3. the message is coming from pybind11.
  4. occurs when saving to pdf and svg, but not png (others not tested)
···

Those who don’t understand recursion are doomed to repeat it

Thanks for the quick response!

I didn’t realize mplcairo was packaged for fedora and have been using the local pip installed version. The fixed version is not yet pip installable?

···

Those who don’t understand recursion are doomed to repeat it

You need to install from master, e.g. pip install git+[https://github.com/matplotlib/mplcairo](https://github.com/matplotlib/mplcairo`). Otherwise you get the version from PyPI, which is the last release (0.3.0), which was not marked as not compatible with Py3.9 given that Py3.9 had not been released yet at that point and that I therefore did not know it would require pybind11 2.6.0 and would be compatible :slight_smile:
Antony

···

On Thu, Nov 12, 2020 at 2:16 PM Neal Becker <ndbecker2@gmail.com> wrote:

Thanks for the quick response!

I didn’t realize mplcairo was packaged for fedora and have been using the local pip installed version. The fixed version is not yet pip installable?

On Thu, Nov 12, 2020 at 8:09 AM Antony Lee <antony.lee@institutoptique.fr> wrote:

Thanks for the report.
I am aware of the issue and it has been fixed in mplcairo master (at ddbc01c to be precise). This arose because a backwards-incompatible change in the latest pybind11 (2.6.0) broke mplcairo. I am somewhat puzzled, though, by how mplcairo managed to pass Fedora’s CI (things broke locally as well).
In any case mplcairo should be repackaged for Fedora 33 (attn. Elliott, I guess :slight_smile: also, do you have an idea wrt. how mplcairo managed to pass the tests on Fedora’s CI?) using the current HEAD (or backporting just the relevant commit, although that may not apply cleanly…) to support Py39. (I may tag a new release too but no guarantees on the date for that.)
Antony

On Thu, Nov 12, 2020 at 1:41 PM Neal Becker <ndbecker2@gmail.com> wrote:

4 things:

  1. this is python3.9
  2. it is mplcairo. Selecting default backend save to pdf succeeds.
  3. the message is coming from pybind11.
  4. occurs when saving to pdf and svg, but not png (others not tested)

On Thu, Nov 12, 2020 at 7:31 AM Neal Becker <ndbecker2@gmail.com> wrote:

fedora-33
mplcairo-0.3
rpm -qa python3-matplotlib-*
python3-matplotlib-tk-3.3.2-1.fc33.x86_64
python3-matplotlib-qt4-3.3.2-1.fc33.x86_64
python3-matplotlib-data-3.3.2-1.fc33.noarch
python3-matplotlib-data-fonts-3.3.2-1.fc33.noarch
python3-matplotlib-qt5-3.3.2-1.fc33.x86_64

This happened when I tried so save a plot to pdf using the gui. I got a dialog error box with the message:
prohibited to create memoryview without Py_buffer

Those who don’t understand recursion are doomed to repeat it

Those who don’t understand recursion are doomed to repeat it


Matplotlib-users mailing list
Matplotlib-users@python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

Those who don’t understand recursion are doomed to repeat it

Thanks for the report.
I am aware of the issue and it has been fixed in mplcairo master (at ddbc01c to be precise). This arose because a backwards-incompatible change in the latest pybind11 (2.6.0) broke mplcairo. I am somewhat puzzled, though, by how mplcairo managed to pass Fedora’s CI (things broke locally as well).
In any case mplcairo should be repackaged for Fedora 33 (attn. Elliott, I guess :slight_smile: also, do you have an idea wrt. how mplcairo managed to pass the tests on Fedora’s CI?) using the current HEAD (or backporting just the relevant commit, although that may not apply cleanly…) to support Py39. (I may tag a new release too but no guarantees on the date for that.)
Antony

···

On Thu, Nov 12, 2020 at 1:41 PM Neal Becker <ndbecker2@gmail.com> wrote:

4 things:

  1. this is python3.9
  2. it is mplcairo. Selecting default backend save to pdf succeeds.
  3. the message is coming from pybind11.
  4. occurs when saving to pdf and svg, but not png (others not tested)

On Thu, Nov 12, 2020 at 7:31 AM Neal Becker <ndbecker2@gmail.com> wrote:

fedora-33
mplcairo-0.3
rpm -qa python3-matplotlib-*
python3-matplotlib-tk-3.3.2-1.fc33.x86_64
python3-matplotlib-qt4-3.3.2-1.fc33.x86_64
python3-matplotlib-data-3.3.2-1.fc33.noarch
python3-matplotlib-data-fonts-3.3.2-1.fc33.noarch
python3-matplotlib-qt5-3.3.2-1.fc33.x86_64

This happened when I tried so save a plot to pdf using the gui. I got a dialog error box with the message:
prohibited to create memoryview without Py_buffer

Those who don’t understand recursion are doomed to repeat it

Those who don’t understand recursion are doomed to repeat it


Matplotlib-users mailing list
Matplotlib-users@python.org
https://mail.python.org/mailman/listinfo/matplotlib-users