Skip to content

[TST] Upcoming dependency test failures #22772

Closed

Description

@github-actions

The weekly build with nightly wheels from numpy and pandas
has failed. Check the logs for any updates that need to be
made in matplotlib.

Activity

  1. tacaswell commented on Apr 4, 2022

    @tacaswell
    Member

    @greglucas I think there is something wrong with the bot that we got 4 of these? Maybe the whole action needs to fast-fail?

    Would it also be possible to add a link to the logs in the message?

  2. tacaswell commented on Apr 4, 2022

    @tacaswell
    Member

    https://github.com/matplotlib/matplotlib/actions/runs/2080875930

    The issue is #22766 which is now fixed.

    ___________________ test_clip_path_disables_compositing[pdf] ___________________
    3155
    [gw0] linux -- Python 3.8.12 /opt/hostedtoolcache/Python/3.8.12/x64/bin/python
    3156
    
    3157
    ext = 'pdf'
    3158
    request = <FixtureRequest for <Function test_clip_path_disables_compositing[pdf]>>
    3159
    args = (), kwargs = {}, file_name = 'test_clip_path_disables_compositing[pdf]'
    3160
    fig_test = <Figure size 640x480 with 1 Axes>
    3161
    fig_ref = <Figure size 640x480 with 1 Axes>, figs = []
    3162
    test_image_path = PosixPath('/home/runner/work/matplotlib/matplotlib/result_images/test_image/test_clip_path_disables_compositing[pdf].pdf')
    3163
    ref_image_path = PosixPath('/home/runner/work/matplotlib/matplotlib/result_images/test_image/test_clip_path_disables_compositing[pdf]-expected.pdf')
    3164
    
    3165
        @pytest.mark.parametrize("ext", extensions)
    3166
        def wrapper(*args, ext, request, **kwargs):
    3167
            if 'ext' in old_sig.parameters:
    3168
                kwargs['ext'] = ext
    3169
            if 'request' in old_sig.parameters:
    3170
                kwargs['request'] = request
    3171
        
    3172
            file_name = "".join(c for c in request.node.name
    3173
                                if c in ALLOWED_CHARS)
    3174
            try:
    3175
                fig_test = plt.figure("test")
    3176
                fig_ref = plt.figure("reference")
    3177
                with _collect_new_figures() as figs:
    3178
                    func(*args, fig_test=fig_test, fig_ref=fig_ref, **kwargs)
    3179
                if figs:
    3180
                    raise RuntimeError('Number of open figures changed during '
    3181
                                       'test. Make sure you are plotting to '
    3182
                                       'fig_test or fig_ref, or if this is '
    3183
                                       'deliberate explicitly close the '
    3184
                                       'new figure(s) inside the test.')
    3185
                test_image_path = result_dir / (file_name + "." + ext)
    3186
                ref_image_path = result_dir / (file_name + "-expected." + ext)
    3187
    >           fig_test.savefig(test_image_path)
    3188
    
    3189
    lib/matplotlib/testing/decorators.py:476: 
    3190
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    3191
    lib/matplotlib/figure.py:3080: in savefig
    3192
        self.canvas.print_figure(fname, **kwargs)
    3193
    lib/matplotlib/backend_bases.py:2266: in print_figure
    3194
        result = print_method(
    3195
    lib/matplotlib/backend_bases.py:2132: in <lambda>
    3196
        print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
    3197
    lib/matplotlib/backends/backend_pdf.py:2760: in print_pdf
    3198
        file.finalize()
    3199
    lib/matplotlib/backends/backend_pdf.py:805: in finalize
    3200
        self.writeImages()
    3201
    lib/matplotlib/backends/backend_pdf.py:1739: in writeImages
    3202
        self._writeImg(data, ob.id, smaskObject)
    3203
    lib/matplotlib/backends/backend_pdf.py:1703: in _writeImg
    3204
        img = img.convert(mode='P', dither=Image.NONE,
    3205
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    3206
    
    3207
    name = 'NONE'
    3208
    
    3209
        def __getattr__(name):
    3210
            deprecated = "deprecated and will be removed in Pillow 10 (2023-07-01). "
    3211
            categories = {"NORMAL": 0, "SEQUENCE": 1, "CONTAINER": 2}
    3212
            if name in categories:
    3213
                warnings.warn(
    3214
                    "Image categories are " + deprecated + "Use is_animated instead.",
    3215
                    DeprecationWarning,
    3216
                    stacklevel=2,
    3217
                )
    3218
                return categories[name]
    3219
            elif name in ("NEAREST", "NONE"):
    3220
    >           warnings.warn(
    3221
                    name
    3222
                    + " is "
    3223
                    + deprecated
    3224
                    + "Use Resampling.NEAREST or Dither.NONE instead.",
    3225
                    DeprecationWarning,
    3226
                    stacklevel=2,
    3227
                )
    3228
    E           DeprecationWarning: NONE is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
    3229
    
    3230
    /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/PIL/Image.py:67: DeprecationWarning
    
  3. greglucas commented on Apr 5, 2022

    @greglucas
    Contributor

    Good suggestions, see #22785 for adding both of those to the scheduled job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions