Regression
OmeroPy.test.integration.tablestest.test_service.TestTables.testMask (from pytest)
Error Message
omero.InternalException: exception ::omero::InternalException
{
serverStackTrace = Traceback (most recent call last):
File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 71, in exc_handler
rv = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 31, in handler
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/tables.py", line 285, in addData
self.storage.append(cols)
File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 96, in with_lock
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/hdfstorageV2.py", line 85, in flush_after
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/hdfstorageV2.py", line 514, in append
col.append(self.__mea) # Potential corruption !!!
^^^^^^^^^^^^^^^^^^^^^^
File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/columns.py", line 543, in append
masks.append(numpy.fromstring(x, count=len(x),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: The binary mode of fromstring is removed, use frombuffer instead
serverExceptionClass =
message = Internal exception
}Stacktrace
self = <test_service.TestTables object at 0x7fdff3b4b090>
def testMask(self):
grid = self.client.sf.sharedResources()
repoMap = grid.repositories()
repoObj = repoMap.descriptions[0]
table = grid.newTable(repoObj.id.val, "/test")
assert table
mask = self.createMaskCol()
table.initialize([mask])
> table.addData([mask])
test/integration/tablestest/test_service.py:120:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = 3aa67d8f-2c17-47ea-9909-83f8171ca65c/Table-38c00368-949f-4557-b426-40328ad6a67a -t -e 1.1:tcp -h 172.18.0.11 -p 36999 -t 60000
cols = [object #0 (::omero::grid::MaskColumn)
{
name = mask
description = desc
imageId =
{
[0] = 1
... [0] = 16
[1] = 17
[2] = 18
[3] = 19
[4] = 20
}
}
}]
_ctx = None
def addData(self, cols, _ctx=None):
> return _M_omero.grid.Table._op_addData.invoke(self, ((cols, ), _ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E omero.InternalException: exception ::omero::InternalException
E {
E serverStackTrace = Traceback (most recent call last):
E File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 71, in exc_handler
E rv = func(*args, **kwargs)
E ^^^^^^^^^^^^^^^^^^^^^
E File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 31, in handler
E return func(*args, **kwargs)
E ^^^^^^^^^^^^^^^^^^^^^
E File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/tables.py", line 285, in addData
E self.storage.append(cols)
E File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 96, in with_lock
E return func(*args, **kwargs)
E ^^^^^^^^^^^^^^^^^^^^^
E File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/hdfstorageV2.py", line 85, in flush_after
E return func(*args, **kwargs)
E ^^^^^^^^^^^^^^^^^^^^^
E File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/hdfstorageV2.py", line 514, in append
E col.append(self.__mea) # Potential corruption !!!
E ^^^^^^^^^^^^^^^^^^^^^^
E File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/columns.py", line 543, in append
E masks.append(numpy.fromstring(x, count=len(x),
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ValueError: The binary mode of fromstring is removed, use frombuffer instead
E
E serverExceptionClass =
E message = Internal exception
E }
../../../../.venv3/lib64/python3.11/site-packages/omero_Tables_ice.py:1273: InternalException