pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
43.3k stars 17.8k forks source link

DR/NWK: 0.12.0: nosetests: one fail #4427

Closed bluefir closed 11 years ago

bluefir commented 11 years ago

Python 2.7.5, Windows 7 64-bit

.........................F.........SSS.....SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.SSS.................S............ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ .......................SSSS......................S.............................. ..........................SSSSSSSSSS...................SS....................... ................................................................................ ...........................................................................S.... ...................SSSSSSS.........................................S............ ..................................S............................................. ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ......................can't invoke "event" command: application has been destro yed while executing "event generate $w <>" (procedure "ttk::ThemeChanged" line 6) invoked from within "ttk::ThemeChanged" ................................................................................ ................................................................................ ................................................................................ ............S................................................................... ................................................................................ .S.............................................................................. ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ .............................................S.................................. ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ..................................S............................................. ............................................S................................... ................................................................................ ...........................................S..................S...S............S SS.........S............SS............SS.....SSSS............................... ................................................................................ ................................................................................ ................................................................................ ................................................................................

..........................................

FAIL: Throws an exception when DataReader can't get a 200 response from

Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\util\testing.py", line 765, in netw ork_wrapper return t(_args, *_kwargs) File "C:\Python27\lib\site-packages\pandas\io\tests\test_data.py", line 370, i n test_fred 15984.1) AssertionError: DATE 2013-01-01 16535.3 Name: GDP, dtype: float64 != 15984.1

Ran 3661 tests in 179.605s

FAILED (SKIP=137, failures=1)

jreback commented 11 years ago

thanks for the report; suspect it will work if you try again (that said we have been trying to squash failures like this)

bluefir commented 11 years ago

Uninstalled, installed and tried again. Still fails. Is this a big problem or just an annoyance?

jreback commented 11 years ago

the test is prob too restrictive and tests data which may have (and prob did change) as this works on all of the travis builds.

bluefir commented 11 years ago

Cool. Closing. Thanks for the quick response!

jreback commented 11 years ago

actually going to leave this open....its a prod to get the test fixed...thanks!

cpcloud commented 11 years ago

this seems to always change between those two values....what's up with that?

jreback commented 11 years ago

I think the last number was just revised...that's why this test is bogus

cpcloud commented 11 years ago

i know, but it goes back and forth every 2-3 weeks

jtratner commented 11 years ago

Also, the docstring on that test needs to be removed... It's totally wrong.

jreback commented 11 years ago

this is fixed in master now

bluefir commented 11 years ago

I did a fresh install of python and pandas and started getting nosetest errors for HDFStore. What's going on? Did I grab some of the more recent versions of some packages that are not supported yet?


Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\io\tests\test_pytables.py", line 24 93, in test_select_as_multiple result = store.select('df1', ['A>0', 'B>0']) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 458, in selec t return TableIterator(self, func, nrows=s.nrows, start=start, stop=stop, auto _close=auto_close).get_values() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 984, in get_v alues results = self.func(self.start, self.stop) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 451, in func return s.read(where=where, start=_start, stop=_stop, columns=columns, **kwar gs) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3153, in read

if not self.read_axes(where=where, **kwargs): File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 2524, in read _axes values = self.selection.select() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3747, in sele ct return self.table.table.readWhere(self.condition, start=self.start, stop=sel f.stop) File "C:\Python27\lib\site-packages\tables\table.py", line 1453, in readWhere self._where(condition, condvars, start, stop, step) ] File "C:\Python27\lib\site-packages\tables\table.py", line 1405, in _where compiled = self._compileCondition(condition, condvars) File "C:\Python27\lib\site-packages\tables\table.py", line 1284, in _compileCo ndition compiled = compile_condition(condition, typemap, indexedcols, copycols) File "C:\Python27\lib\site-packages\tables\conditions.py", line 396, in compil e_condition func = NumExpr(expr, signature, copy_args=copycols) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 552, in NumEx pr context = getContext(kwargs, frame_depth=1) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 473, in getCo ntext raise ValueError("Unknown keyword argument '%s'" % d.popitem()[0]) ValueError: Unknown keyword argument 'copy_args'

ERROR: test_select_dtypes (pandas.io.tests.test_pytables.TestHDFStore)

Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\io\tests\test_pytables.py", line 20 33, in test_select_dtypes result = store.select('df', [Term('ts', '>=', Timestamp('2012-02-01'))]) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 458, in selec t return TableIterator(self, func, nrows=s.nrows, start=start, stop=stop, auto _close=auto_close).get_values() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 984, in get_v alues results = self.func(self.start, self.stop) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 451, in func return s.read(where=where, start=_start, stop=_stop, columns=columns, **kwar gs) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3153, in read

if not self.read_axes(where=where, **kwargs):

File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 2524, in read _axes values = self.selection.select() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3747, in sele ct return self.table.table.readWhere(self.condition, start=self.start, stop=sel f.stop) File "C:\Python27\lib\site-packages\tables\table.py", line 1453, in readWhere self._where(condition, condvars, start, stop, step) ] File "C:\Python27\lib\site-packages\tables\table.py", line 1405, in _where compiled = self._compileCondition(condition, condvars) File "C:\Python27\lib\site-packages\tables\table.py", line 1284, in _compileCo ndition compiled = compile_condition(condition, typemap, indexedcols, copycols) File "C:\Python27\lib\site-packages\tables\conditions.py", line 396, in compil e_condition func = NumExpr(expr, signature, copy_args=copycols) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 552, in NumEx pr context = getContext(kwargs, frame_depth=1) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 473, in getCo ntext raise ValueError("Unknown keyword argument '%s'" % d.popitem()[0]) ValueError: Unknown keyword argument 'copy_args'

ERROR: test_select_with_many_inputs (pandas.io.tests.test_pytables.TestHDFStore)


Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\io\tests\test_pytables.py", line 20 86, in test_select_with_many_inputs result = store.select('df', [Term('ts', '>=', Timestamp('2012-02-01'))]) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 458, in selec t return TableIterator(self, func, nrows=s.nrows, start=start, stop=stop, auto _close=auto_close).get_values() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 984, in get_v alues results = self.func(self.start, self.stop) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 451, in func return s.read(where=where, start=_start, stop=_stop, columns=columns, **kwar gs) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3153, in read

if not self.read_axes(where=where, **kwargs): File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 2524, in read _axes values = self.selection.select() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3747, in sele ct return self.table.table.readWhere(self.condition, start=self.start, stop=sel f.stop) File "C:\Python27\lib\site-packages\tables\table.py", line 1453, in readWhere self._where(condition, condvars, start, stop, step) ] File "C:\Python27\lib\site-packages\tables\table.py", line 1405, in _where compiled = self._compileCondition(condition, condvars) File "C:\Python27\lib\site-packages\tables\table.py", line 1284, in _compileCo ndition compiled = compile_condition(condition, typemap, indexedcols, copycols) File "C:\Python27\lib\site-packages\tables\conditions.py", line 396, in compil e_condition func = NumExpr(expr, signature, copy_args=copycols) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 552, in NumEx pr context = getContext(kwargs, frame_depth=1) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 473, in getCo ntext raise ValueError("Unknown keyword argument '%s'" % d.popitem()[0]) ValueError: Unknown keyword argument 'copy_args'

ERROR: test_string_select (pandas.io.tests.test_pytables.TestHDFStore)

Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\io\tests\test_pytables.py", line 23 23, in test_string_select result = store.select('df',Term('x=none')) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 458, in selec t return TableIterator(self, func, nrows=s.nrows, start=start, stop=stop, auto _close=auto_close).get_values() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 984, in get_v alues results = self.func(self.start, self.stop) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 451, in func return s.read(where=where, start=_start, stop=_stop, columns=columns, **kwar gs) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3153, in read

if not self.read_axes(where=where, **kwargs):

File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 2524, in read _axes values = self.selection.select() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3747, in sele ct return self.table.table.readWhere(self.condition, start=self.start, stop=sel f.stop) File "C:\Python27\lib\site-packages\tables\table.py", line 1453, in readWhere self._where(condition, condvars, start, stop, step) ] File "C:\Python27\lib\site-packages\tables\table.py", line 1405, in _where compiled = self._compileCondition(condition, condvars) File "C:\Python27\lib\site-packages\tables\table.py", line 1284, in _compileCo ndition compiled = compile_condition(condition, typemap, indexedcols, copycols) File "C:\Python27\lib\site-packages\tables\conditions.py", line 396, in compil e_condition func = NumExpr(expr, signature, copy_args=copycols) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 552, in NumEx pr context = getContext(kwargs, frame_depth=1) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 473, in getCo ntext raise ValueError("Unknown keyword argument '%s'" % d.popitem()[0]) ValueError: Unknown keyword argument 'copy_args'

ERROR: test_table_append_with_timezones (pandas.io.tests.test_pytables.TestHDFSt

ore)

Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\io\tests\test_pytables.py", line 13 62, in test_table_append_with_timezones compare(store.select('df_tz',where=Term('A','>=',df.A[3])),df[df.A>=df.A[3]] ) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 458, in selec t return TableIterator(self, func, nrows=s.nrows, start=start, stop=stop, auto _close=auto_close).get_values() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 984, in get_v alues results = self.func(self.start, self.stop) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 451, in func return s.read(where=where, start=_start, stop=_stop, columns=columns, **kwar gs) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3153, in read

if not self.read_axes(where=where, **kwargs):

File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 2524, in read _axes values = self.selection.select() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3747, in sele ct return self.table.table.readWhere(self.condition, start=self.start, stop=sel f.stop) File "C:\Python27\lib\site-packages\tables\table.py", line 1453, in readWhere self._where(condition, condvars, start, stop, step) ] File "C:\Python27\lib\site-packages\tables\table.py", line 1405, in _where compiled = self._compileCondition(condition, condvars) File "C:\Python27\lib\site-packages\tables\table.py", line 1284, in _compileCo ndition compiled = compile_condition(condition, typemap, indexedcols, copycols) File "C:\Python27\lib\site-packages\tables\conditions.py", line 396, in compil e_condition func = NumExpr(expr, signature, copy_args=copycols) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 552, in NumEx pr context = getContext(kwargs, frame_depth=1) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 473, in getCo ntext raise ValueError("Unknown keyword argument '%s'" % d.popitem()[0]) ValueError: Unknown keyword argument 'copy_args'

ERROR: test_terms (pandas.io.tests.test_pytables.TestHDFStore)

Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\io\tests\test_pytables.py", line 15 67, in test_terms 'major_axis<20000108'), Term('minor_axis', '=', ['A', 'B'])]) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 458, in selec t return TableIterator(self, func, nrows=s.nrows, start=start, stop=stop, auto _close=auto_close).get_values() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 984, in get_v alues results = self.func(self.start, self.stop) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 451, in func return s.read(where=where, start=_start, stop=_stop, columns=columns, **kwar gs) File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 2875, in read

if not self.read_axes(where=where, **kwargs):

File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 2524, in read _axes values = self.selection.select() File "C:\Python27\lib\site-packages\pandas\io\pytables.py", line 3747, in sele ct return self.table.table.readWhere(self.condition, start=self.start, stop=sel f.stop) File "C:\Python27\lib\site-packages\tables\table.py", line 1453, in readWhere self._where(condition, condvars, start, stop, step) ] File "C:\Python27\lib\site-packages\tables\table.py", line 1405, in _where compiled = self._compileCondition(condition, condvars) File "C:\Python27\lib\site-packages\tables\table.py", line 1284, in _compileCo ndition compiled = compile_condition(condition, typemap, indexedcols, copycols) File "C:\Python27\lib\site-packages\tables\conditions.py", line 396, in compil e_condition func = NumExpr(expr, signature, copy_args=copycols) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 552, in NumEx pr context = getContext(kwargs, frame_depth=1) File "C:\Python27\lib\site-packages\numexpr\necompiler.py", line 473, in getCo ntext raise ValueError("Unknown keyword argument '%s'" % d.popitem()[0]) ValueError: Unknown keyword argument 'copy_args'

FAIL: Throws an exception when DataReader can't get a 200 response from

Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\util\testing.py", line 765, in netw ork_wrapper return t(_args, *_kwargs) File "C:\Python27\lib\site-packages\pandas\io\tests\test_data.py", line 370, i n test_fred 15984.1) AssertionError: DATE 2013-01-01 16535.3 Name: GDP, dtype: float64 != 15984.1

FAIL: test_bar_log (pandas.tests.test_graphics.TestDataFramePlots)

Traceback (most recent call last): File "C:\Python27\lib\site-packages\pandas\tests\test_graphics.py", line 504, in test_bar_log self.assertEqual(ax.yaxis.get_ticklocs()[0], 1.0) AssertionError: 0.10000000000000001 != 1.0


Ran 3661 tests in 190.758s

FAILED (SKIP=136, errors=18, failures=2)

jreback commented 11 years ago

show pandas/ci/print_versions()

bluefir commented 11 years ago

I don't have ci folder, remember? :-)

bluefir commented 11 years ago

The answer is numexpr 2.2.1. I reverted back to 2.1 and the errors went away.

cpcloud commented 11 years ago

The plotting stuff has nothing to do with numexpr so that can't have solved the problem entirely

jreback commented 11 years ago

@cpcloud looks like 2.2.1 just came out, and of course changed stuff which breaks older PyTables......

https://code.google.com/p/numexpr/wiki/ReleaseNotes

jreback commented 11 years ago

@bluefir

when this error happend, you were running: py2.7, ne 2.2.1, and what version of PyTables?

bluefir commented 11 years ago

2.4.0

jreback commented 11 years ago

@bluefir thanks....was a API breaking change on numexpr....dumb what they did..keep at 2.1!

cpcloud commented 11 years ago

@bluefir sorry about this ... very annoying .. i've raised an issue over at numexpr

https://code.google.com/p/numexpr/issues/detail?id=115

bluefir commented 11 years ago

No need to apologize! Especially since it's not your fault. You guys do a great job and are very responsive. Things like this will happen every once in a while. Are you going to adjust to numexpr 2.2.1 for 0.13 release or is switching to the new numexpr version totally useless?

jreback commented 11 years ago

put up a big fat warning.....recommend for now you DONt upgrade beyond 2.1

http://pandas.pydata.org/pandas-docs/dev/install.html#recommended-dependencies