Skip to content

CI: mpl test failures #24088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jreback opened this issue Dec 4, 2018 · 5 comments
Closed

CI: mpl test failures #24088

jreback opened this issue Dec 4, 2018 · 5 comments
Labels
CI Continuous Integration
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Dec 4, 2018

https://travis-ci.org/pandas-dev/pandas/jobs/463295292; keep failing even with a restart.

=================================== FAILURES ===================================
_____________________ TestTSPlot.test_is_error_nozeroindex _____________________
[gw0] linux -- Python 3.6.6 /home/travis/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0x7f049594ef98>
    def test_is_error_nozeroindex(self):
        # GH11858
        i = np.array([1, 2, 3])
        a = DataFrame(i, index=i)
>       _check_plot_works(a.plot, xerr=a)
pandas/tests/plotting/test_datetimelike.py:89: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pandas/tests/plotting/test_datetimelike.py:1562: in _check_plot_works
    pickle.dump(fig, path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
m = <bound method AffineBase.transform of <matplotlib.transforms.BlendedAffine2D object at 0x7f0495e0e390>>
    def _pickle_method(m):
        """Handle pickling issues with class instance."""
>       if m.im_self is None:
E       AttributeError: 'function' object has no attribute 'im_self'
../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/statsmodels/graphics/functional.py:32: AttributeError
________________________ TestTSPlot.test_timedelta_plot ________________________
[gw0] linux -- Python 3.6.6 /home/travis/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.plotting.test_datetimelike.TestTSPlot object at 0x7f04951ab208>
    def test_timedelta_plot(self):
        # test issue #8711
        s = Series(range(5), timedelta_range('1day', periods=5))
        _, ax = self.plt.subplots()
>       _check_plot_works(s.plot, ax=ax)
pandas/tests/plotting/test_datetimelike.py:1450: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pandas/tests/plotting/test_datetimelike.py:1562: in _check_plot_works
    pickle.dump(fig, path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
m = <bound method AffineBase.transform of <matplotlib.transforms.BlendedAffine2D object at 0x7f0494f0b160>>
    def _pickle_method(m):
        """Handle pickling issues with class instance."""
>       if m.im_self is None:
E       AttributeError: 'function' object has no attribute 'im_self'
../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/statsmodels/graphics/functional.py:32: AttributeError
@jreback jreback added the CI Continuous Integration label Dec 4, 2018
@jreback jreback added this to the 0.24.0 milestone Dec 4, 2018
@jreback
Copy link
Contributor Author

jreback commented Dec 4, 2018

cc @TomAugspurger

@TomAugspurger
Copy link
Contributor

Thanks... taking a look now.

@TomAugspurger
Copy link
Contributor

@tacaswell what kinds of guarantees does matplotlib make for pickling figures?

@h-vetinari
Copy link
Contributor

It might be related to this statsmodel bug: statsmodels/statsmodels#4772
Unfortunately, it doesn't look like a statsmodel 0.10 is on the horizon: https://github.com/statsmodels/statsmodels/milestone/11

The last comment in that thread seems to provide a workaround.

@TomAugspurger
Copy link
Contributor

Weird... thanks @h-vetinari. I'd rather have to carry that patch around. How about skipping in that case?

        if PY3 and not 'statsmodels' in sys.modules:
            with ensure_clean(return_filelike=True) as path:
                pickle.dump(fig, path)

raspbian-autopush pushed a commit to raspbian-packages/pandas that referenced this issue Oct 4, 2019
Author: Rebecca N. Palmer <[email protected]>
Bug: pandas-dev/pandas#24088
Forwarded: not-needed


Gbp-Pq: Name xfail_statsmodels_bug.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

No branches or pull requests

3 participants