Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Paul Gevers
Sat, 28 Nov 2026 08:20
Bug#1155628: igor2: autopkgtest regression on s390x: little endian assumptions?
Author: Paul Gevers
Date: Sat, 28 Nov 2026 08:20
Date: Sat, 28 Nov 2026 08:20
958 lines
72480 bytes
72480 bytes
Source: igor2
Version: 0.5.16-1
Severity: serious
User: debian-ci@lists.debian.org
Usertags: regression
X-Debbugs-CC: debian-s390@lists.debian.org
User: debian-s390@lists.debian.org
Usertags: s390x
Dear maintainer(s),
With a recent upload of igor2 the autopkgtest of igor2 fails in testing
when that autopkgtest is run with the binary packages of igor2 from
unstable. It passes when run with only packages from testing. In tabular
form:
pass fail
igor2 from testing 0.5.16-1
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it?
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[1] https://qa.debian.org/excuses.php?package=igor2
https://ci.debian.net/data/autopkgtest/testing/s390x/i/igor2/78491347/log.gz
=================================== FAILURES
===================================
142s _________________________________ test_ibw_06
__________________________________
142s 142s def test_ibw_06():
142s act = dumpibw('win-double.ibw')
142s exp = """
142s {'version': 2,
142s 'wave': {'bin_header': {'checksum': 28962,
142s 'noteSize': 0,
142s 'pictSize': 0,
142s 'wfmSize': 166},
142s 'note': '',
142s 'padding': array([], dtype=float64),
142s 'wData': array([ 5., 4., 3., 2., 1.],
dtype='float64'),
142s 'wave_header': {'aModified': 0,
142s 'bname': 'double',
142s 'botFullScale': 0.0,
142s 'creationDate': 3001587842,
142s 'dataUnits': array(['', '', '', ''],
142s dtype='|S1'),
142s 'depID': 0,
142s 'fileName': 0,
142s 'formula': 0,
142s 'fsValid': 0,
142s 'hsA': 1.0,
142s 'hsB': 0.0,
142s 'kindBits': '\\x00',
142s 'modDate': 3001587842,
142s 'next': 0,
142s 'npnts': 5,
142s 'srcFldr': 0,
142s 'swModified': 0,
142s 'topFullScale': 0.0,
142s 'type': 4,
142s 'useBits': '\\x00',
142s 'wModified': 0,
142s 'wUnused': array(['', ''],
142s dtype='|S1'),
142s 'waveNoteH': 0,
142s 'whVersion': 0,
142s 'xUnits': array(['', '', '', ''],
142s dtype='|S1')}}}
142s """
142s > assert_equal_dump_no_whitespace_no_byte(act, exp)
142s 142s tests/test_ibw.py:392: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s 142s data_a =
"{'version': 2,\n 'wave': {'bin_header': {'checksum': 28962,\n
'noteSize': 0,\n ...
'whVersion': 0,\n 'xUnits': array([b'', b'',
b'', b''], dtype='|S1')}}}"
142s data_b = "\n {'version': 2,\n 'wave': {'bin_header':
{'checksum': 28962,\n 'noteSize': 0,\n ...
'whVersion': 0,\n 'xUnits': array(['',
'', '', ''],\n dtype='|S1')}}}\n "
142s 142s def assert_equal_dump_no_whitespace_no_byte(data_a, data_b):
142s def repl(x):
142s for old, new in [
142s [" ", ""], # ignore whitespaces
142s ["b'", "'"], # ignore bytes vs str
142s ["\n", ""], # ignore newlines
142s # treat all floats as equal
142s ["float32", "float"],
142s ["float64", "float"],
142s ["'>f4'", "float"],
142s ["'>f8'", "float"],
142s ["'float'", "float"],
142s ]:
142s x = x.replace(old, new)
142s return x
142s 142s a = repl(data_a)
142s b = repl(data_b)
142s print("DBUG data_a: ", a)
142s print("DBUG data_b: ", b)
142s > assert a == b
142s ^^^^^^
142s E AssertionError
142s 142s tests/helper.py:81: AssertionError
142s ----------------------------- Captured stdout call
-----------------------------
142s DBUG data_a:
{'version':2,'wave':{'bin_header':{'checksum':28962,'noteSize':0,'pictSize':0,'wfmSize':166},'note':'','padding':array([],dtype=float),'wData':array([5.,4.,3.,2.,1.],dtype='<f8'),'wave_header':{'aModified':0,'bname':'double','botFullScale':0.0,'creationDate':3001587842,'dataUnits':array(['','','',''],dtype='|S1'),'depID':0,'fileName':0,'formula':0,'fsValid':0,'hsA':1.0,'hsB':0.0,'kindBits':'\x00','modDate':3001587842,'next':0,'npnts':5,'srcFldr':0,'swModified':0,'topFullScale':0.0,'type':4,'useBits':'\x00','wModified':0,'wUnused':array(['',''],dtype='|S1'),'waveNoteH':0,'whVersion':0,'xUnits':array(['','','',''],dtype='|S1')}}}
142s DBUG data_b:
{'version':2,'wave':{'bin_header':{'checksum':28962,'noteSize':0,'pictSize':0,'wfmSize':166},'note':'','padding':array([],dtype=float),'wData':array([5.,4.,3.,2.,1.],dtype=float),'wave_header':{'aModified':0,'bname':'double','botFullScale':0.0,'creationDate':3001587842,'dataUnits':array(['','','',''],dtype='|S1'),'depID':0,'fileName':0,'formula':0,'fsValid':0,'hsA':1.0,'hsB':0.0,'kindBits':'\x00','modDate':3001587842,'next':0,'npnts':5,'srcFldr':0,'swModified':0,'topFullScale':0.0,'type':4,'useBits':'\x00','wModified':0,'wUnused':array(['',''],dtype='|S1'),'waveNoteH':0,'whVersion':0,'xUnits':array(['','','',''],dtype='|S1')}}}
142s _________________________________ test_ibw_08
__________________________________
142s 142s def test_ibw_08():
142s act = dumpibw('win-version2.ibw')
142s exp = """
142s {'version': 2,
142s 'wave': {'bin_header': {'checksum': 1047,
142s 'noteSize': 15,
142s 'pictSize': 0,
142s 'wfmSize': 146},
142s 'note': 'This is a test.',
142s 'padding': array([], dtype=float64),
142s 'wData': array([ 5., 4., 3., 2., 1.],
dtype=float32),
142s 'wave_header': {'aModified': 0,
142s 'bname': 'version2',
142s 'botFullScale': 0.0,
142s 'creationDate': 3001251979,
142s 'dataUnits': array(['', '', '', ''],
142s dtype='|S1'),
142s 'depID': 0,
142s 'fileName': 0,
142s 'formula': 0,
142s 'fsValid': 0,
142s 'hsA': 1.0,
142s 'hsB': 0.0,
142s 'kindBits': '\\x00',
142s 'modDate': 3001573594,
142s 'next': 0,
142s 'npnts': 5,
142s 'srcFldr': 0,
142s 'swModified': 0,
142s 'topFullScale': 0.0,
142s 'type': 2,
142s 'useBits': '\\x00',
142s 'wModified': 0,
142s 'wUnused': array(['', ''],
142s dtype='|S1'),
142s 'waveNoteH': 0,
142s 'whVersion': 0,
142s 'xUnits': array(['', '', '', ''],
142s dtype='|S1')}}}
142s """
142s > assert_equal_dump_no_whitespace_no_byte(act, exp)
142s 142s tests/test_ibw.py:505: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s 142s data_a =
"{'version': 2,\n 'wave': {'bin_header': {'checksum': 1047,\n
'noteSize': 15,\n ...
'whVersion': 0,\n 'xUnits': array([b'', b'',
b'', b''], dtype='|S1')}}}"
142s data_b = "\n {'version': 2,\n 'wave': {'bin_header':
{'checksum': 1047,\n 'noteSize': 15,\n ...
'whVersion': 0,\n 'xUnits': array(['',
'', '', ''],\n dtype='|S1')}}}\n "
142s 142s def assert_equal_dump_no_whitespace_no_byte(data_a, data_b):
142s def repl(x):
142s for old, new in [
142s [" ", ""], # ignore whitespaces
142s ["b'", "'"], # ignore bytes vs str
142s ["\n", ""], # ignore newlines
142s # treat all floats as equal
142s ["float32", "float"],
142s ["float64", "float"],
142s ["'>f4'", "float"],
142s ["'>f8'", "float"],
142s ["'float'", "float"],
142s ]:
142s x = x.replace(old, new)
142s return x
142s 142s a = repl(data_a)
142s b = repl(data_b)
142s print("DBUG data_a: ", a)
142s print("DBUG data_b: ", b)
142s > assert a == b
142s ^^^^^^
142s E AssertionError
142s 142s tests/helper.py:81: AssertionError
142s ----------------------------- Captured stdout call
-----------------------------
142s DBUG data_a:
{'version':2,'wave':{'bin_header':{'checksum':1047,'noteSize':15,'pictSize':0,'wfmSize':146},'note':'Thisisatest.','padding':array([],dtype=float),'wData':array([5.,4.,3.,2.,1.],dtype='<f4'),'wave_header':{'aModified':0,'bname':'version2','botFullScale':0.0,'creationDate':3001251979,'dataUnits':array(['','','',''],dtype='|S1'),'depID':0,'fileName':0,'formula':0,'fsValid':0,'hsA':1.0,'hsB':0.0,'kindBits':'\x00','modDate':3001573594,'next':0,'npnts':5,'srcFldr':0,'swModified':0,'topFullScale':0.0,'type':2,'useBits':'\x00','wModified':0,'wUnused':array(['',''],dtype='|S1'),'waveNoteH':0,'whVersion':0,'xUnits':array(['','','',''],dtype='|S1')}}}
142s DBUG data_b:
{'version':2,'wave':{'bin_header':{'checksum':1047,'noteSize':15,'pictSize':0,'wfmSize':146},'note':'Thisisatest.','padding':array([],dtype=float),'wData':array([5.,4.,3.,2.,1.],dtype=float),'wave_header':{'aModified':0,'bname':'version2','botFullScale':0.0,'creationDate':3001251979,'dataUnits':array(['','','',''],dtype='|S1'),'depID':0,'fileName':0,'formula':0,'fsValid':0,'hsA':1.0,'hsB':0.0,'kindBits':'\x00','modDate':3001573594,'next':0,'npnts':5,'srcFldr':0,'swModified':0,'topFullScale':0.0,'type':2,'useBits':'\x00','wModified':0,'wUnused':array(['',''],dtype='|S1'),'waveNoteH':0,'whVersion':0,'xUnits':array(['','','',''],dtype='|S1')}}}
142s _________________________________ test_ibw_09
__________________________________
142s 142s @pytest.mark.skipif(not sys.maxsize > 2**32, reason="skip
on 32-bit systems.")
142s def test_ibw_09():
142s act = dumpibw('win-version5.ibw')
142s exp = """
142s {'version': 5,
142s 'wave': {'bin_header': {'checksum': 13214,
142s 'dataEUnitsSize': 0,
142s 'dimEUnitsSize': array([0, 0, 0,
0], dtype='int64'),
142s 'dimLabelsSize': array([64, 0,
0, 0], dtype='int64'),
142s 'formulaSize': 0,
142s 'noteSize': 15,
142s 'optionsSize1': 0,
142s 'optionsSize2': 0,
142s 'sIndicesSize': 0,
142s 'wfmSize': 340},
142s 'data_units': '',
142s 'dimension_units': '',
142s 'formula': '',
142s 'labels': [['', 'Column0'], [], [], []],
142s 'note': 'This is a test.',
142s 'sIndices': array([], dtype=float64),
142s 'wData': array([ 5., 4., 3., 2., 1.],
dtype=float32),
142s 'wave_header': {'aModified': 0,
142s 'bname': 'version5',
142s 'botFullScale': 0.0,
142s 'creationDate': 3001252180,
142s 'dFolder': 8108612,
142s 'dLock': 0,
142s 'dataEUnits': 0,
142s 'dataUnits': array(['', '', '', ''],
142s dtype='|S1'),
142s 'depID': 30,
142s 'dimEUnits': array([0, 0, 0, 0],
dtype='int64'),
142s 'dimLabels': array([8138784, 0,
0, 0], dtype='int64'),
142s 'dimUnits': array([['', '', '', ''],
142s ['', '', '', ''],
142s ['', '', '', ''],
142s ['', '', '', '']],
142s dtype='|S1'),
142s 'fileName': 8131824,
142s 'formula': 0,
142s 'fsValid': 0,
142s 'kindBits': '\\x00',
142s 'modDate': 3001573601,
142s 'nDim': array([5, 0, 0, 0],
dtype='int64'),
142s 'next': 8125236,
142s 'npnts': 5,
142s 'sIndices': 0,
142s 'sfA': array([ 1., 1., 1.,
1.], dtype='float64'),
142s 'sfB': array([ 0., 0., 0.,
0.], dtype='float64'),
142s 'srcFldr': -1007,
142s 'swModified': 0,
142s 'topFullScale': 0.0,
142s 'type': 2,
142s 'useBits': '\\x00',
142s 'wModified': 1,
142s 'waveNoteH': 8131596,
142s 'whUnused': array([0, 0, 0, 0, 0,
0, 0, 0, 0,
142s 0, 0, 0, 0, 0, 0, 0], dtype='int64'),
142s 'whVersion': 1,
142s 'whpad1': array(['', '', '', '',
'', ''],
142s dtype='|S1'),
142s 'whpad2': 0,
142s 'whpad3': 0,
142s 'whpad4': 0}}}
142s """
142s > assert_equal_dump_no_whitespace_no_byte(act, exp)
142s 142s tests/test_ibw.py:574: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s 142s data_a =
"{'version': 5,\n 'wave': {'bin_header': {'checksum': 13214,\n
'dataEUnitsSize': 0,\n ...
'whpad2': 0,\n 'whpad3': 0,\n
'whpad4': 0}}}"
142s data_b = "\n {'version': 5,\n 'wave': {'bin_header':
{'checksum': 13214,\n 'dataEUnitsSize':...
'whpad2': 0,\n 'whpad3': 0,\n
'whpad4': 0}}}\n "
142s 142s def assert_equal_dump_no_whitespace_no_byte(data_a, data_b):
142s def repl(x):
142s for old, new in [
142s [" ", ""], # ignore whitespaces
142s ["b'", "'"], # ignore bytes vs str
142s ["\n", ""], # ignore newlines
142s # treat all floats as equal
142s ["float32", "float"],
142s ["float64", "float"],
142s ["'>f4'", "float"],
142s ["'>f8'", "float"],
142s ["'float'", "float"],
142s ]:
142s x = x.replace(old, new)
142s return x
142s 142s a = repl(data_a)
142s b = repl(data_b)
142s print("DBUG data_a: ", a)
142s print("DBUG data_b: ", b)
142s > assert a == b
142s ^^^^^^
142s E AssertionError
142s 142s tests/helper.py:81: AssertionError
142s ----------------------------- Captured stdout call
-----------------------------
142s DBUG data_a:
{'version':5,'wave':{'bin_header':{'checksum':13214,'dataEUnitsSize':0,'dimEUnitsSize':array([0,0,0,0],dtype='int64'),'dimLabelsSize':array([64,0,0,0],dtype='int64'),'formulaSize':0,'noteSize':15,'optionsSize1':0,'optionsSize2':0,'sIndicesSize':0,'wfmSize':340},'data_units':'','dimension_units':'','formula':'','labels':[['','Column0'],[],[],[]],'note':'Thisisatest.','sIndices':array([],dtype=float),'wData':array([5.,4.,3.,2.,1.],dtype='<f4'),'wave_header':{'aModified':0,'bname':'version5','botFullScale':0.0,'creationDate':3001252180,'dFolder':8108612,'dLock':0,'dataEUnits':0,'dataUnits':array(['','','',''],dtype='|S1'),'depID':30,'dimEUnits':array([0,0,0,0],dtype='int64'),'dimLabels':array([8138784,0,0,0],dtype='int64'),'dimUnits':array([['','','',''],['','','',''],['','','',''],['','','','']],dtype='|S1'),'fileName':8131824,'formula':0,'fsValid':0,'kindBits':'\x00','modDate':3001573601,'nDim':array([5,0,0,0],dtype='int64'),'next':8125236,'npnts':5,'sIndices':0,'sfA':array([1.,1.,1.,1.],dtype=float),'sfB':array([0.,0.,0.,0.],dtype=float),'srcFldr':-1007,'swModified':0,'topFullScale':0.0,'type':2,'useBits':'\x00','wModified':1,'waveNoteH':8131596,'whUnused':array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],dtype='int64'),'whVersion':1,'whpad1':array(['','','','','',''],dtype='|S1'),'whpad2':0,'whpad3':0,'whpad4':0}}}
142s DBUG data_b:
{'version':5,'wave':{'bin_header':{'checksum':13214,'dataEUnitsSize':0,'dimEUnitsSize':array([0,0,0,0],dtype='int64'),'dimLabelsSize':array([64,0,0,0],dtype='int64'),'formulaSize':0,'noteSize':15,'optionsSize1':0,'optionsSize2':0,'sIndicesSize':0,'wfmSize':340},'data_units':'','dimension_units':'','formula':'','labels':[['','Column0'],[],[],[]],'note':'Thisisatest.','sIndices':array([],dtype=float),'wData':array([5.,4.,3.,2.,1.],dtype=float),'wave_header':{'aModified':0,'bname':'version5','botFullScale':0.0,'creationDate':3001252180,'dFolder':8108612,'dLock':0,'dataEUnits':0,'dataUnits':array(['','','',''],dtype='|S1'),'depID':30,'dimEUnits':array([0,0,0,0],dtype='int64'),'dimLabels':array([8138784,0,0,0],dtype='int64'),'dimUnits':array([['','','',''],['','','',''],['','','',''],['','','','']],dtype='|S1'),'fileName':8131824,'formula':0,'fsValid':0,'kindBits':'\x00','modDate':3001573601,'nDim':array([5,0,0,0],dtype='int64'),'next':8125236,'npnts':5,'sIndices':0,'sfA':array([1.,1.,1.,1.],dtype=float),'sfB':array([0.,0.,0.,0.],dtype=float),'srcFldr':-1007,'swModified':0,'topFullScale':0.0,'type':2,'useBits':'\x00','wModified':1,'waveNoteH':8131596,'whUnused':array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],dtype='int64'),'whVersion':1,'whpad1':array(['','','','','',''],dtype='|S1'),'whpad2':0,'whpad3':0,'whpad4':0}}}
142s _________________________________ test_ibw_10
__________________________________
142s 142s @pytest.mark.skipif(not sys.maxsize > 2**32, reason="skip
on 32-bit systems.")
142s def test_ibw_10():
142s act = dumpibw('win-zeroPointWave.ibw')
142s 142s exp = """
142s {'version': 5,
142s 'wave': {'bin_header': {'checksum': 27541,
142s 'dataEUnitsSize': 0,
142s 'dimEUnitsSize': array([0, 0, 0,
0], dtype='int64'),
142s 'dimLabelsSize': array([0, 0, 0,
0], dtype='int64'),
142s 'formulaSize': 0,
142s 'noteSize': 0,
142s 'optionsSize1': 0,
142s 'optionsSize2': 0,
142s 'sIndicesSize': 0,
142s 'wfmSize': 320},
142s 'data_units': '',
142s 'dimension_units': '',
142s 'formula': '',
142s 'labels': [[], [], [], []],
142s 'note': '',
142s 'sIndices': array([], dtype=float64),
142s 'wData': array([], dtype=float32),
142s 'wave_header': {'aModified': 3,
142s 'bname': 'zeroWave',
142s 'botFullScale': 0.0,
142s 'creationDate': 3001573964,
142s 'dFolder': 8108612,
142s 'dLock': 0,
142s 'dataEUnits': 0,
142s 'dataUnits': array(['', '', '', ''],
142s dtype='|S1'),
142s 'depID': 31,
142s 'dimEUnits': array([0, 0, 0, 0],
dtype='int64'),
142s 'dimLabels': array([0, 0, 0, 0],
dtype='int64'),
142s 'dimUnits': array([['', '', '', ''],
142s ['', '', '', ''],
142s ['', '', '', ''],
142s ['', '', '', '']],
142s dtype='|S1'),
142s 'fileName': 8125252,
142s 'formula': 0,
142s 'fsValid': 0,
142s 'kindBits': '\\x00',
142s 'modDate': 3001573964,
142s 'nDim': array([0, 0, 0, 0],
dtype='int64'),
142s 'next': 8133140,
142s 'npnts': 0,
142s 'sIndices': 0,
142s 'sfA': array([ 1., 1., 1.,
1.], dtype='float64'),
142s 'sfB': array([ 0., 0., 0.,
0.], dtype='float64'),
142s 'srcFldr': -1007,
142s 'swModified': 0,
142s 'topFullScale': 0.0,
142s 'type': 2,
142s 'useBits': '\\x00',
142s 'wModified': 1,
142s 'waveNoteH': 0,
142s 'whUnused': array([0, 0, 0, 0, 0,
0, 0, 0,
142s 0, 0, 0, 0, 0, 0, 0, 0],
dtype='int64'),
142s 'whVersion': 1,
142s 'whpad1': array(['', '', '', '',
'', ''],
142s dtype='|S1'),
142s 'whpad2': 0,
142s 'whpad3': 0,
142s 'whpad4': 0}}}
142s """
142s > assert_equal_dump_no_whitespace_no_byte(act, exp)
142s 142s tests/test_ibw.py:644: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s 142s data_a =
"{'version': 5,\n 'wave': {'bin_header': {'checksum': 27541,\n
'dataEUnitsSize': 0,\n ...
'whpad2': 0,\n 'whpad3': 0,\n
'whpad4': 0}}}"
142s data_b = "\n {'version': 5,\n 'wave': {'bin_header':
{'checksum': 27541,\n 'dataEUnitsSize':...
'whpad2': 0,\n 'whpad3': 0,\n
'whpad4': 0}}}\n "
142s 142s def assert_equal_dump_no_whitespace_no_byte(data_a, data_b):
142s def repl(x):
142s for old, new in [
142s [" ", ""], # ignore whitespaces
142s ["b'", "'"], # ignore bytes vs str
142s ["\n", ""], # ignore newlines
142s # treat all floats as equal
142s ["float32", "float"],
142s ["float64", "float"],
142s ["'>f4'", "float"],
142s ["'>f8'", "float"],
142s ["'float'", "float"],
142s ]:
142s x = x.replace(old, new)
142s return x
142s 142s a = repl(data_a)
142s b = repl(data_b)
142s print("DBUG data_a: ", a)
142s print("DBUG data_b: ", b)
142s > assert a == b
142s ^^^^^^
142s E AssertionError
142s 142s tests/helper.py:81: AssertionError
142s ----------------------------- Captured stdout call
-----------------------------
142s DBUG data_a:
{'version':5,'wave':{'bin_header':{'checksum':27541,'dataEUnitsSize':0,'dimEUnitsSize':array([0,0,0,0],dtype='int64'),'dimLabelsSize':array([0,0,0,0],dtype='int64'),'formulaSize':0,'noteSize':0,'optionsSize1':0,'optionsSize2':0,'sIndicesSize':0,'wfmSize':320},'data_units':'','dimension_units':'','formula':'','labels':[[],[],[],[]],'note':'','sIndices':array([],dtype=float),'wData':array([],dtype='<f4'),'wave_header':{'aModified':3,'bname':'zeroWave','botFullScale':0.0,'creationDate':3001573964,'dFolder':8108612,'dLock':0,'dataEUnits':0,'dataUnits':array(['','','',''],dtype='|S1'),'depID':31,'dimEUnits':array([0,0,0,0],dtype='int64'),'dimLabels':array([0,0,0,0],dtype='int64'),'dimUnits':array([['','','',''],['','','',''],['','','',''],['','','','']],dtype='|S1'),'fileName':8125252,'formula':0,'fsValid':0,'kindBits':'\x00','modDate':3001573964,'nDim':array([0,0,0,0],dtype='int64'),'next':8133140,'npnts':0,'sIndices':0,'sfA':array([1.,1.,1.,1.],dtype=float),'sfB':array([0.,0.,0.,0.],dtype=float),'srcFldr':-1007,'swModified':0,'topFullScale':0.0,'type':2,'useBits':'\x00','wModified':1,'waveNoteH':0,'whUnused':array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],dtype='int64'),'whVersion':1,'whpad1':array(['','','','','',''],dtype='|S1'),'whpad2':0,'whpad3':0,'whpad4':0}}}
142s DBUG data_b:
{'version':5,'wave':{'bin_header':{'checksum':27541,'dataEUnitsSize':0,'dimEUnitsSize':array([0,0,0,0],dtype='int64'),'dimLabelsSize':array([0,0,0,0],dtype='int64'),'formulaSize':0,'noteSize':0,'optionsSize1':0,'optionsSize2':0,'sIndicesSize':0,'wfmSize':320},'data_units':'','dimension_units':'','formula':'','labels':[[],[],[],[]],'note':'','sIndices':array([],dtype=float),'wData':array([],dtype=float),'wave_header':{'aModified':3,'bname':'zeroWave','botFullScale':0.0,'creationDate':3001573964,'dFolder':8108612,'dLock':0,'dataEUnits':0,'dataUnits':array(['','','',''],dtype='|S1'),'depID':31,'dimEUnits':array([0,0,0,0],dtype='int64'),'dimLabels':array([0,0,0,0],dtype='int64'),'dimUnits':array([['','','',''],['','','',''],['','','',''],['','','','']],dtype='|S1'),'fileName':8125252,'formula':0,'fsValid':0,'kindBits':'\x00','modDate':3001573964,'nDim':array([0,0,0,0],dtype='int64'),'next':8133140,'npnts':0,'sIndices':0,'sfA':array([1.,1.,1.,1.],dtype=float),'sfB':array([0.,0.,0.,0.],dtype=float),'srcFldr':-1007,'swModified':0,'topFullScale':0.0,'type':2,'useBits':'\x00','wModified':1,'waveNoteH':0,'whUnused':array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],dtype='int64'),'whVersion':1,'whpad1':array(['','','','','',''],dtype='|S1'),'whpad2':0,'whpad3':0,'whpad4':0}}}
142s ___________________________________ test_pxp
___________________________________
142s 142s def test_pxp():
142s > data = loadpxp(data_dir / 'polar-graphs-demo.pxp')
142s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142s 142s tests/test_pxp.py:82: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s 142s filename =
PosixPath('/var/tmp/autopkgtest_tmp.xvxURI/build/tests/data/polar-graphs-demo.pxp')
142s strict = True, ignore_unknown = True, initial_byte_order = '='
142s 142s def load(filename, strict=True, ignore_unknown=True,
initial_byte_order=None):
142s """Load a packed experiment file.
142s 142s Parameters
142s ----------
142s filename : str or file-like object
142s The path to the file or a file-like object representing
the packed
142s experiment file.
142s strict : bool, optional
142s This parameter is ignored. Defaults to True.
142s ignore_unknown : bool, optional
142s If True, ignore unknown record types. Defaults to True.
142s initial_byte_order : str or None, optional
142s The initial byte order to use for unpacking. Must be
one of '>', '=',
142s '<'. If None, '=' is used. Defaults to None.
142s 142s Returns
142s -------
142s records : list of Record
142s The records in the packed experiment file.
142s filesystem : dict
142s The filesystem structure of the packed experiment file.
142s """
142s logger.debug('loading a packed experiment file from %s',
filename)
142s records = []
142s if hasattr(filename, 'read'):
142s f = filename # filename is actually a stream object
142s else:
142s f = open(filename, 'rb')
142s byte_order = None
142s if initial_byte_order is None:
142s initial_byte_order = '='
142s try:
142s while True:
142s header_struct = setup_packed_file_record_header(
142s byte_order=initial_byte_order)
142s b = bytes(f.read(header_struct.size))
142s if not b:
142s break
142s if len(b) < header_struct.size:
142s raise ValueError(
142s ('not enough data for the next record
header ({} < {})'
142s ).format(len(b), header_struct.size))
142s logger.debug('reading a new packed experiment file
record')
142s header = header_struct.unpack_from(b)
142s if header['version'] and not byte_order:
142s need_to_reorder =
_need_to_reorder_bytes(header['version'])
142s byte_order = initial_byte_order =
_byte_order(need_to_reorder)
142s logger.debug(
142s 'get byte order from version: %s (reorder?
%s)',
142s byte_order, need_to_reorder)
142s if need_to_reorder:
142s header_struct =
setup_packed_file_record_header(
142s byte_order=byte_order)
142s header = header_struct.unpack_from(b)
142s logger.debug(
142s 'reordered version: %s', header['version'])
142s data = bytes(f.read(header['numDataBytes']))
142s if len(data) < header['numDataBytes']:
142s > raise ValueError(
142s ('not enough data for the next record ({} <
{}), '
142s 'try loading with a different initial byte
order'
142s ).format(len(b), header['numDataBytes']))
142s E ValueError: not enough data for the next
record (8 < 872415232), try loading with a different initial byte order
142s 142s /usr/lib/python3/dist-packages/igor2/packed.py:111: ValueError
142s _______________________________ test_thread_safe
_______________________________
142s 142s def test_thread_safe():
142s jobs = [
142s (data_dir / "polar-graphs-demo.pxp", None),
142s (data_dir / "packed-byteorder.pxt", ">"),
142s ]
142s > expected = {job: _pxp_fingerprint(*job) for job in jobs}
142s ^^^^^^^^^^^^^^^^^^^^^^
142s 142s tests/test_pxp.py:229: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s tests/test_pxp.py:43:
in _pxp_fingerprint
142s records, filesystem = loadpxp(path,
initial_byte_order=initial_byte_order)
142s
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ 142s 142s filename =
PosixPath('/var/tmp/autopkgtest_tmp.xvxURI/build/tests/data/polar-graphs-demo.pxp')
142s strict = True, ignore_unknown = True, initial_byte_order = '='
142s 142s def load(filename, strict=True, ignore_unknown=True,
initial_byte_order=None):
142s """Load a packed experiment file.
142s 142s Parameters
142s ----------
142s filename : str or file-like object
142s The path to the file or a file-like object representing
the packed
142s experiment file.
142s strict : bool, optional
142s This parameter is ignored. Defaults to True.
142s ignore_unknown : bool, optional
142s If True, ignore unknown record types. Defaults to True.
142s initial_byte_order : str or None, optional
142s The initial byte order to use for unpacking. Must be
one of '>', '=',
142s '<'. If None, '=' is used. Defaults to None.
142s 142s Returns
142s -------
142s records : list of Record
142s The records in the packed experiment file.
142s filesystem : dict
142s The filesystem structure of the packed experiment file.
142s """
142s logger.debug('loading a packed experiment file from %s',
filename)
142s records = []
142s if hasattr(filename, 'read'):
142s f = filename # filename is actually a stream object
142s else:
142s f = open(filename, 'rb')
142s byte_order = None
142s if initial_byte_order is None:
142s initial_byte_order = '='
142s try:
142s while True:
142s header_struct = setup_packed_file_record_header(
142s byte_order=initial_byte_order)
142s b = bytes(f.read(header_struct.size))
142s if not b:
142s break
142s if len(b) < header_struct.size:
142s raise ValueError(
142s ('not enough data for the next record
header ({} < {})'
142s ).format(len(b), header_struct.size))
142s logger.debug('reading a new packed experiment file
record')
142s header = header_struct.unpack_from(b)
142s if header['version'] and not byte_order:
142s need_to_reorder =
_need_to_reorder_bytes(header['version'])
142s byte_order = initial_byte_order =
_byte_order(need_to_reorder)
142s logger.debug(
142s 'get byte order from version: %s (reorder?
%s)',
142s byte_order, need_to_reorder)
142s if need_to_reorder:
142s header_struct =
setup_packed_file_record_header(
142s byte_order=byte_order)
142s header = header_struct.unpack_from(b)
142s logger.debug(
142s 'reordered version: %s', header['version'])
142s data = bytes(f.read(header['numDataBytes']))
142s if len(data) < header['numDataBytes']:
142s > raise ValueError(
142s ('not enough data for the next record ({} <
{}), '
142s 'try loading with a different initial byte
order'
142s ).format(len(b), header['numDataBytes']))
142s E ValueError: not enough data for the next
record (8 < 872415232), try loading with a different initial byte order
142s 142s /usr/lib/python3/dist-packages/igor2/packed.py:111: ValueError
142s ____________________________ test_thread_safe_mixed
____________________________
142s 142s def test_thread_safe_mixed():
142s ibw_jobs = [
142s data_dir / "mac-double.ibw",
142s data_dir / "win-double.ibw",
142s data_dir / "mac-version5.ibw",
142s data_dir / "win-version5.ibw",
142s ]
142s pxp_jobs = [
142s (data_dir / "polar-graphs-demo.pxp", None),
142s (data_dir / "packed-byteorder.pxt", ">"),
142s ]
142s 142s expected_ibw = {job: _ibw_fingerprint(job) for job
in ibw_jobs}
142s > expected_pxp = {job: _pxp_fingerprint(*job) for job in
pxp_jobs}
142s ^^^^^^^^^^^^^^^^^^^^^^
142s 142s tests/test_pxp.py:255: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s tests/test_pxp.py:43:
in _pxp_fingerprint
142s records, filesystem = loadpxp(path,
initial_byte_order=initial_byte_order)
142s
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ 142s 142s filename =
PosixPath('/var/tmp/autopkgtest_tmp.xvxURI/build/tests/data/polar-graphs-demo.pxp')
142s strict = True, ignore_unknown = True, initial_byte_order = '='
142s 142s def load(filename, strict=True, ignore_unknown=True,
initial_byte_order=None):
142s """Load a packed experiment file.
142s 142s Parameters
142s ----------
142s filename : str or file-like object
142s The path to the file or a file-like object representing
the packed
142s experiment file.
142s strict : bool, optional
142s This parameter is ignored. Defaults to True.
142s ignore_unknown : bool, optional
142s If True, ignore unknown record types. Defaults to True.
142s initial_byte_order : str or None, optional
142s The initial byte order to use for unpacking. Must be
one of '>', '=',
142s '<'. If None, '=' is used. Defaults to None.
142s 142s Returns
142s -------
142s records : list of Record
142s The records in the packed experiment file.
142s filesystem : dict
142s The filesystem structure of the packed experiment file.
142s """
142s logger.debug('loading a packed experiment file from %s',
filename)
142s records = []
142s if hasattr(filename, 'read'):
142s f = filename # filename is actually a stream object
142s else:
142s f = open(filename, 'rb')
142s byte_order = None
142s if initial_byte_order is None:
142s initial_byte_order = '='
142s try:
142s while True:
142s header_struct = setup_packed_file_record_header(
142s byte_order=initial_byte_order)
142s b = bytes(f.read(header_struct.size))
142s if not b:
142s break
142s if len(b) < header_struct.size:
142s raise ValueError(
142s ('not enough data for the next record
header ({} < {})'
142s ).format(len(b), header_struct.size))
142s logger.debug('reading a new packed experiment file
record')
142s header = header_struct.unpack_from(b)
142s if header['version'] and not byte_order:
142s need_to_reorder =
_need_to_reorder_bytes(header['version'])
142s byte_order = initial_byte_order =
_byte_order(need_to_reorder)
142s logger.debug(
142s 'get byte order from version: %s (reorder?
%s)',
142s byte_order, need_to_reorder)
142s if need_to_reorder:
142s header_struct =
setup_packed_file_record_header(
142s byte_order=byte_order)
142s header = header_struct.unpack_from(b)
142s logger.debug(
142s 'reordered version: %s', header['version'])
142s data = bytes(f.read(header['numDataBytes']))
142s if len(data) < header['numDataBytes']:
142s > raise ValueError(
142s ('not enough data for the next record ({} <
{}), '
142s 'try loading with a different initial byte
order'
142s ).format(len(b), header['numDataBytes']))
142s E ValueError: not enough data for the next
record (8 < 872415232), try loading with a different initial byte order
142s 142s /usr/lib/python3/dist-packages/igor2/packed.py:111: ValueError
142s _____________________ test_version7_real_long_wave_record
______________________
142s 142s def test_version7_real_long_wave_record():
142s # Derived from jilavsky's Igor Pro record; unrelated note
removed.
142s #
https://github.com/AFM-analysis/igor2/pull/33#issuecomment-6674192662
142s > records, filesystem = loadpxp(
142s data_dir / 'igor8-real-long-wave-sanitized.pxp')
142s 142s tests/test_pxp.py:342: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s 142s filename =
PosixPath('/var/tmp/autopkgtest_tmp.xvxURI/build/tests/data/igor8-real-long-wave-sanitized.pxp')
142s strict = True, ignore_unknown = True, initial_byte_order = '='
142s 142s def load(filename, strict=True, ignore_unknown=True,
initial_byte_order=None):
142s """Load a packed experiment file.
142s 142s Parameters
142s ----------
142s filename : str or file-like object
142s The path to the file or a file-like object representing
the packed
142s experiment file.
142s strict : bool, optional
142s This parameter is ignored. Defaults to True.
142s ignore_unknown : bool, optional
142s If True, ignore unknown record types. Defaults to True.
142s initial_byte_order : str or None, optional
142s The initial byte order to use for unpacking. Must be
one of '>', '=',
142s '<'. If None, '=' is used. Defaults to None.
142s 142s Returns
142s -------
142s records : list of Record
142s The records in the packed experiment file.
142s filesystem : dict
142s The filesystem structure of the packed experiment file.
142s """
142s logger.debug('loading a packed experiment file from %s',
filename)
142s records = []
142s if hasattr(filename, 'read'):
142s f = filename # filename is actually a stream object
142s else:
142s f = open(filename, 'rb')
142s byte_order = None
142s if initial_byte_order is None:
142s initial_byte_order = '='
142s try:
142s while True:
142s header_struct = setup_packed_file_record_header(
142s byte_order=initial_byte_order)
142s b = bytes(f.read(header_struct.size))
142s if not b:
142s break
142s if len(b) < header_struct.size:
142s raise ValueError(
142s ('not enough data for the next record
header ({} < {})'
142s ).format(len(b), header_struct.size))
142s logger.debug('reading a new packed experiment file
record')
142s header = header_struct.unpack_from(b)
142s if header['version'] and not byte_order:
142s need_to_reorder =
_need_to_reorder_bytes(header['version'])
142s byte_order = initial_byte_order =
_byte_order(need_to_reorder)
142s logger.debug(
142s 'get byte order from version: %s (reorder?
%s)',
142s byte_order, need_to_reorder)
142s if need_to_reorder:
142s header_struct =
setup_packed_file_record_header(
142s byte_order=byte_order)
142s header = header_struct.unpack_from(b)
142s logger.debug(
142s 'reordered version: %s', header['version'])
142s > data = bytes(f.read(header['numDataBytes']))
142s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142s E ValueError: read length must be non-negative or -1
142s 142s /usr/lib/python3/dist-packages/igor2/packed.py:109: ValueError
142s _______________________ test_igor8_long_folder_name_file
_______________________
142s 142s def test_igor8_long_folder_name_file():
142s # Igor Pro 8 experiment from issue 28, trimmed to one wave
per folder.
142s > records, filesystem = loadpxp(
142s data_dir / 'igor8-long-folder-names.pxp')
142s 142s tests/test_pxp.py:372: 142s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 142s 142s filename =
PosixPath('/var/tmp/autopkgtest_tmp.xvxURI/build/tests/data/igor8-long-folder-names.pxp')
142s strict = True, ignore_unknown = True, initial_byte_order = '='
142s 142s def load(filename, strict=True, ignore_unknown=True,
initial_byte_order=None):
142s """Load a packed experiment file.
142s 142s Parameters
142s ----------
142s filename : str or file-like object
142s The path to the file or a file-like object representing
the packed
142s experiment file.
142s strict : bool, optional
142s This parameter is ignored. Defaults to True.
142s ignore_unknown : bool, optional
142s If True, ignore unknown record types. Defaults to True.
142s initial_byte_order : str or None, optional
142s The initial byte order to use for unpacking. Must be
one of '>', '=',
142s '<'. If None, '=' is used. Defaults to None.
142s 142s Returns
142s -------
142s records : list of Record
142s The records in the packed experiment file.
142s filesystem : dict
142s The filesystem structure of the packed experiment file.
142s """
142s logger.debug('loading a packed experiment file from %s',
filename)
142s records = []
142s if hasattr(filename, 'read'):
142s f = filename # filename is actually a stream object
142s else:
142s f = open(filename, 'rb')
142s byte_order = None
142s if initial_byte_order is None:
142s initial_byte_order = '='
142s try:
142s while True:
142s header_struct = setup_packed_file_record_header(
142s byte_order=initial_byte_order)
142s b = bytes(f.read(header_struct.size))
142s if not b:
142s break
142s if len(b) < header_struct.size:
142s raise ValueError(
142s ('not enough data for the next record
header ({} < {})'
142s ).format(len(b), header_struct.size))
142s logger.debug('reading a new packed experiment file
record')
142s header = header_struct.unpack_from(b)
142s if header['version'] and not byte_order:
142s need_to_reorder =
_need_to_reorder_bytes(header['version'])
142s byte_order = initial_byte_order =
_byte_order(need_to_reorder)
142s logger.debug(
142s 'get byte order from version: %s (reorder?
%s)',
142s byte_order, need_to_reorder)
142s if need_to_reorder:
142s header_struct =
setup_packed_file_record_header(
142s byte_order=byte_order)
142s header = header_struct.unpack_from(b)
142s logger.debug(
142s 'reordered version: %s', header['version'])
142s data = bytes(f.read(header['numDataBytes']))
142s if len(data) < header['numDataBytes']:
142s > raise ValueError(
142s ('not enough data for the next record ({} <
{}), '
142s 'try loading with a different initial byte
order'
142s ).format(len(b), header['numDataBytes']))
142s E ValueError: not enough data for the next
record (8 < 872415232), try loading with a different initial byte order
142s 142s /usr/lib/python3/dist-packages/igor2/packed.py:111: ValueError
142s =========================== short test summary info
============================
142s FAILED tests/test_ibw.py::test_ibw_06 - AssertionError
142s FAILED tests/test_ibw.py::test_ibw_08 - AssertionError
142s FAILED tests/test_ibw.py::test_ibw_09 - AssertionError
142s FAILED tests/test_ibw.py::test_ibw_10 - AssertionError
142s FAILED tests/test_pxp.py::test_pxp - ValueError: not enough data
for the next...
142s FAILED tests/test_pxp.py::test_thread_safe - ValueError: not enough
data for ...
142s FAILED tests/test_pxp.py::test_thread_safe_mixed - ValueError: not
enough dat...
142s FAILED tests/test_pxp.py::test_version7_real_long_wave_record -
ValueError: r...
142s FAILED tests/test_pxp.py::test_igor8_long_folder_name_file -
ValueError: not ...
142s ========================= 9 failed, 19 passed in 0.24s
=========================
142s E: pybuild pybuild:485: test: plugin pyproject failed with: exit
code=1: cd /var/tmp/autopkgtest_tmp.xvxURI/build; python3.14 -m pytest tests
143s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i
python{version} -p 3.14 --parallel= returned exit code 13
143s make: *** [/tmp/ln2rkmSD4p/run:4: pybuild-autopkgtest] Error 25
143s pybuild-autopkgtest: error: /tmp/ln2rkmSD4p/run pybuild-autopkgtest
returned exit code 2
143s autopkgtest [20:54:28]: test pybuild-autopkgtest
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads