Tests run fine on Mac OS, but fails on others such as the Travis-CI environment (Linux-related?)
ERROR: Test Archive without metafile, but containing metadata.
Traceback (most recent call last):
File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/rows.py", line 92, in init
self.data[f['term']] = self.raw_fields[field_index]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/test/test_dwcareader.py", line 366, in test_simplecsv_archive_eml
self.assertEqual(len(dwca.rows), 3)
File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/read.py", line 258, in rows
return list(self)
File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/read.py", line 505, in next
return self.next()
File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/read.py", line 508, in next
r = self.core_file.get_row_by_position(self._corefile_pointer)
File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/files.py", line 137, in get_row_by_position
return CoreRow(l, position, self.file_descriptor)
File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/rows.py", line 111, in init
super(CoreRow, self).init(csv_line, position, datafile_descriptor)
File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/rows.py", line 95, in init
raise InvalidArchive(msg)
dwca.exceptions.InvalidArchive: The descriptor references a non-existent field (index=0)
Tests run fine on Mac OS, but fails on others such as the Travis-CI environment (Linux-related?)
ERROR: Test Archive without metafile, but containing metadata.
Traceback (most recent call last): File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/rows.py", line 92, in init self.data[f['term']] = self.raw_fields[field_index] IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/test/test_dwcareader.py", line 366, in test_simplecsv_archive_eml self.assertEqual(len(dwca.rows), 3) File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/read.py", line 258, in rows return list(self) File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/read.py", line 505, in next return self.next() File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/read.py", line 508, in next r = self.core_file.get_row_by_position(self._corefile_pointer) File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/files.py", line 137, in get_row_by_position return CoreRow(l, position, self.file_descriptor) File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/rows.py", line 111, in init super(CoreRow, self).init(csv_line, position, datafile_descriptor) File "/home/travis/build/BelgianBiodiversityPlatform/python-dwca-reader/dwca/rows.py", line 95, in init raise InvalidArchive(msg) dwca.exceptions.InvalidArchive: The descriptor references a non-existent field (index=0)
Ran 106 tests in 0.711s FAILED (errors=1)