Skip to content

test_boxplot catche DeprecationWarning on jessie with python 3.4 #8647

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
yarikoptic opened this issue Oct 27, 2014 · 13 comments
Closed

test_boxplot catche DeprecationWarning on jessie with python 3.4 #8647

yarikoptic opened this issue Oct 27, 2014 · 13 comments
Labels
Testing pandas testing functions or related to the test suite Visualization plotting
Milestone

Comments

@yarikoptic
Copy link
Contributor

======================================================================
FAIL: test_boxplot (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python3/dist-packages/pandas/tests/test_graphics.py", line 1821, in test_boxplot
    subplots=True, logy=True)
  File "/usr/lib/python3.4/contextlib.py", line 66, in __exit__
    next(self.gen)
  File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python3/dist-packages/pandas/util/testing.py", line 1627, in assert_produces_warning
    % extra_warnings)
AssertionError: Caused unexpected warning(s): ['DeprecationWarning'].
python3.4 ci/print_versions.py; \
    cd build/; xvfb-run -a -s "-screen 0 1280x1024x24 -noreset" \
      python3.4 /usr/bin/nosetests -s -v -A 'not network and not disabled' --exclude test_bar_log  pandas;

INSTALLED VERSIONS
------------------
commit: None
python: 3.4.2.final.0
python-bits: 64
OS: Linux
OS-release: 3.2.0-4-amd64
machine: x86_64
processor: 
byteorder: little
LC_ALL: C
LANG: C

pandas: 0.15.0
nose: 1.3.4
Cython: 0.20.1post0
numpy: 1.8.2
scipy: 0.14.0
statsmodels: None
IPython: None
sphinx: 1.2.3
patsy: None
dateutil: 2.0
pytz: 2012c
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.3.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None
@jreback jreback added Testing pandas testing functions or related to the test suite Visualization plotting labels Oct 27, 2014
@jreback jreback added this to the 0.15.1 milestone Oct 27, 2014
@jreback
Copy link
Contributor

jreback commented Oct 27, 2014

@TomAugspurger can you repro this?

@TomAugspurger
Copy link
Contributor

Wasn't able to reproduce. Let me set up an env with mpl 1.3, but I'm not sure why that would matter.

Oh, actually it might matter if matplotlib is the one producing the DeprecationWarning.

@TomAugspurger
Copy link
Contributor

OK... able to reproduce kind of. The test fails with an uncaught DeprecationWarning, but when I step through in the interpreter I don't get a DeprecationWarning. I'll keep digging.

@yarikoptic
Copy link
Contributor Author

how well digging ended up @TomAugspurger ? ;-)

@tacaswell
Copy link
Contributor

I can't reproduce this with pandas master + mpl 1.4.2 from conda.

I looked at the code briefly and grew confused by the wall of indirection and objects, can you point me to where it is raising from?

@yarikoptic
Copy link
Contributor Author

(Pdb) print([(w_.category, w_.filename, w_.lineno, w_.line, w_.message) for w_ in w if w_.category.__name__ == 'DeprecationWarning'])
[(<class 'DeprecationWarning'>, '/usr/lib/python3/dist-packages/matplotlib/backends/backend_agg.py', 517, None, DeprecationWarning('npy_PyFile_Dup is deprecated, use npy_PyFile_Dup2',))]

you are welcome

@tacaswell
Copy link
Contributor

Ah, sorry, I was confused before. This only shows up on 1.3.1, but not 1.4.2 or master?

@sandrotosi was trying to get 1.4.2 into jessie, at it is someplace along the pipeline https://buildd.debian.org/status/package.php?p=matplotlib

@yarikoptic
Copy link
Contributor Author

Now that jessie is frozen there is no guarantee that 1.4.2 would get into jessie :-/

@yarikoptic
Copy link
Contributor Author

and yes -- that was a jessie-only problem iirc

@sandrotosi
Copy link

I submitted an unblock for mpl before the freeze, hopefully it will make it (finger crossed)

@yarikoptic
Copy link
Contributor Author

just an update that issue persists and unfortunately mpl 1.4 didn't make it to jessie (yet at least)

@jreback
Copy link
Contributor

jreback commented Dec 4, 2014

This build is now in master: https://travis-ci.org/jreback/pandas/jobs/42937609

it will run the slow tests on 3.4 (this does not show up on 2.7)

@TomAugspurger have a look?

@jreback
Copy link
Contributor

jreback commented Dec 5, 2014

skipped here: 80a730c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Visualization plotting
Projects
None yet
Development

No branches or pull requests

5 participants