Open jayvdb opened 5 years ago
Upgrading to pyexcel 0.5.10 (current) did not fix the problem.
Instead it introduced three failures.
[ 68s] ======================================================================
[ 68s] FAIL: test_column_series (tests.test_io.TestJSON)
[ 68s] ----------------------------------------------------------------------
[ 68s] Traceback (most recent call last):
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 115, in test_column_series
[ 68s] self._check_test_file('column_series')
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 181, in _check_test_file
[ 68s] super(TestJSON, self)._check_test_file(name)
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 30, in _check_test_file
[ 68s] self.assertEqual(written_content, expected)
[ 68s] AssertionError: '{"pyexcel_sheet1": "<generator object to_records at 0x7f5ecfad2960>"}' != '{"pyexcel_sheet1": [{"Column 1": 1, "Column 2": 2, "Column 3": 3}, {"Column 1": 4, "Column 2": 5, "Column 3": 6}, {"Column 1": 7, "Column 2": 8, "Column 3": 9}]}'
[ 68s] -------------------- >> begin captured logging << --------------------
[ 68s] pyexcel.internal.source_plugin.SourcePluginManager: DEBUG: load me now:sheet-read
[ 68s] pyexcel.internal.source_plugin.SourcePluginManager: DEBUG: load me now:sheet-write
[ 68s] pyexcel.internal.plugins.IOPluginManager: DEBUG: import pyexcel_text.jsonr.Jsonifier
[ 68s] pyexcel.internal.plugins.IOPluginManager: DEBUG: load <class 'pyexcel_text.jsonr.Jsonifier'> now for 'json'
[ 68s] --------------------- >> end captured logging << ---------------------
[ 68s]
[ 68s] ======================================================================
[ 68s] FAIL: test_column_series_irregular_columns (tests.test_io.TestJSON)
[ 68s] ----------------------------------------------------------------------
[ 68s] Traceback (most recent call last):
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 127, in test_column_series_irregular_columns
[ 68s] self._check_test_file('column_series_irregular_columns')
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 181, in _check_test_file
[ 68s] super(TestJSON, self)._check_test_file(name)
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 30, in _check_test_file
[ 68s] self.assertEqual(written_content, expected)
[ 68s] AssertionError: '{"pyexcel_sheet1": "<generator object to_records at 0x7f5ecfaf5230>"}' != '{"pyexcel_sheet1": [{"Column 1": 1, "Column 2": 2, "Column 3": 3}, {"Column 1": 4, "Column 2": 5, "Column 3": 6}, {"Column 1": 7, "Column 2": 8, "Column 3": ""}]}'
[ 68s] -------------------- >> begin captured logging << --------------------
[ 68s] pyexcel.internal.source_plugin.SourcePluginManager: DEBUG: load me now:sheet-read
[ 68s] pyexcel.internal.source_plugin.SourcePluginManager: DEBUG: load me now:sheet-write
[ 68s] pyexcel.internal.plugins.IOPluginManager: DEBUG: load <class 'pyexcel_text.jsonr.Jsonifier'> now for 'json'
[ 68s] --------------------- >> end captured logging << ---------------------
[ 68s]
[ 68s] ======================================================================
[ 68s] FAIL: test_row_series (tests.test_io.TestJSON)
[ 68s] ----------------------------------------------------------------------
[ 68s] Traceback (most recent call last):
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 151, in test_row_series
[ 68s] self._check_test_file('row_series')
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 181, in _check_test_file
[ 68s] super(TestJSON, self)._check_test_file(name)
[ 68s] File "/home/abuild/rpmbuild/BUILD/pyexcel-text-0.2.7.1/tests/test_io.py", line 30, in _check_test_file
[ 68s] self.assertEqual(written_content, expected)
[ 68s] AssertionError: '{"pyexcel_sheet1": "<generator object to_records at 0x7f5ecfaf5280>"}' != '{"pyexcel_sheet1": [{"Row 1": 1, "Row 2": 4, "Row 3": 7}, {"Row 1": 2, "Row 2": 5, "Row 3": 8}, {"Row 1": 3, "Row 2": 6, "Row 3": 9}]}'
[ 68s] -------------------- >> begin captured logging << --------------------
[ 68s] pyexcel.internal.source_plugin.SourcePluginManager: DEBUG: load me now:sheet-read
[ 68s] pyexcel.internal.source_plugin.SourcePluginManager: DEBUG: load me now:sheet-write
[ 68s] pyexcel.internal.plugins.IOPluginManager: DEBUG: load <class 'pyexcel_text.jsonr.Jsonifier'> now for 'json'
[ 68s] --------------------- >> end captured logging << ---------------------
[ 68s]
[ 68s] ----------------------------------------------------------------------
Using pyexcel-io 0.5.11 (current) and pyexcel 0.5.7 (old)
tests/requirements.txt
doesnt list any other extensions so the only relevant dependency ispyexcel>=0.5.0
.My guess is a later version of pyexcel is needed.