Github messages for voidlinux
 help / color / mirror / Atom feed
From: tornaria <tornaria@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] python3-matplotlib-3.6.0_1: ModuleNotFoundError: No module named 'contourpy'
Date: Sun, 09 Oct 2022 22:41:35 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39845@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2613 bytes --]

New issue by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/39845

Description:
### Is this a new report?

Yes

### System Info

Void 5.19.10_1 x86_64

### Package(s) Affected

python3-matplotlib-3.6.0_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

Not a bug, upstream says:
```
For packagers, this release contains some changes to dependencies:

  * Python 3.8 is now required.
  * NumPy 1.19 is now required.
  * The ContourPy package is now required for contouring.
```
(https://discourse.matplotlib.org/t/matplotlib-announce-ann-matplotlib-3-6-0/23129)

So this should be fixed just by packaging `python3-contourpy`, presumably without the need to change matplotlib itself.



### Expected behaviour

A contour object is created and can be shown:
```
...
>>> ax.contourf(X, Y, Z, levels=levels)
<matplotlib.contour.QuadContourSet object at 0x7f8e831ebd60>
>>> 
>>> plt.show()
```

This actually works after downgrading to `python3-matplotlib-3.5.3_1`

### Actual behaviour

Example from https://matplotlib.org/stable/plot_types/arrays/contourf.html#sphx-glr-plot-types-arrays-contourf-py
```
$ python
Python 3.10.7 (main, Sep  7 2022, 15:23:13) [GCC 10.2.1 20201203] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> import numpy as np
>>> 
>>> plt.style.use('_mpl-gallery-nogrid')
>>> 
>>> # make data
>>> X, Y = np.meshgrid(np.linspace(-3, 3, 256), np.linspace(-3, 3, 256))
>>> Z = (1 - X/2 + X**5 + Y**3) * np.exp(-X**2 - Y**2)
>>> levels = np.linspace(Z.min(), Z.max(), 7)
>>> 
>>> # plot
>>> fig, ax = plt.subplots()
>>> 
>>> ax.contourf(X, Y, Z, levels=levels)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/matplotlib/__init__.py", line 1423, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "/usr/lib/python3.10/site-packages/matplotlib/axes/_axes.py", line 6382, in contourf
    contours = mcontour.QuadContourSet(self, *args, **kwargs)
  File "/usr/lib/python3.10/site-packages/matplotlib/contour.py", line 794, in __init__
    kwargs = self._process_args(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/matplotlib/contour.py", line 1419, in _process_args
    import contourpy
ModuleNotFoundError: No module named 'contourpy'
```

### Steps to reproduce

Try the example from https://matplotlib.org/stable/plot_types/arrays/contourf.html#sphx-glr-plot-types-arrays-contourf-py

             reply	other threads:[~2022-10-09 20:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-09 20:41 tornaria [this message]
2022-10-10  0:01 ` misuchiru03
2022-10-10  1:43 ` misuchiru03
2022-10-11 16:24 ` classabbyamp
2022-10-11 16:24 ` [ISSUE] [CLOSED] " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39845@inbox.vuxu.org \
    --to=tornaria@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).