Task #10415 (new)
Opened 12 years ago
Last modified 9 years ago
Bug: tablestest suite from OmeroPy fails with Python 2.6
Reported by: | bpindelski | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | Unscheduled |
Component: | OmeroPy | Version: | n.a. |
Keywords: | n.a. | Cc: | spli |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
When running ./build.py -f components/tools/OmeroPy/build.xml test -DTEST=tablestest a set of errors is thrown. See attached console output. Josh suggested it might be related to the canUpdate() method in OmeroPy/test/tablestest/servants.py.
Attachments (1)
Change History (6)
Changed 12 years ago by bpindelski
comment:1 Changed 12 years ago by bpindelski
- Owner set to jmoore
comment:2 Changed 12 years ago by spli
comment:3 Changed 12 years ago by jmoore
Simon: Yes. Every remote method in Ice has an optional last parameter code generated for it taking a Map<String, String>, which we make use of for security concerns (e.g. keys like "omero.user", "omero.group", ...)
comment:4 Changed 12 years ago by spli
I think there's two separate issues here:
- Most of the tablestest.servants tests are failing due to the aforementioned canUpdate() method expecting 2 parameters but receiving 3. This also fails with Python 2.7- does it work for anyone?
- The tablestest.service tests all pass on dev-4.4 with Python 2.7. The linked listing.txt shows all these tests are failing with omero.ValidationException(Already initialized), no idea if this is a Python 2.6 issue or something to do with PyTables?/HDF5 being incorrectly installed- there's some ominous error messages from line 33 onwards (HDF5-DIAG: Error detected in HDF5 (1.8. thread 0:)
It's probably also worth mentioning that tablestest.service.TestTables.test2098 seems to always fail on the develop branch (works on dev 4.4).
====================================================================== FAIL: test2098 (tablestest.service.TestTables) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/simon/work/openmicroscopy.dev/components/tools/OmeroPy/test/tablestest/service.py", line 135, in test2098 self.assertEquals(self.client.sha1(p), file.sha1.val) AssertionError: 'da39a3ee5e6b4b0d3255bfef95601890afd80709' != 'UNKNOWN' ----------------------------------------------------------------------
comment:5 Changed 9 years ago by jamoore
- Milestone changed from 5.x to Unscheduled
Is there some Ice voodoo which means IAdmin.canUpdate(IObject) can accept a second context parameter even though it's not declared? Or is it just silently ignored? mocked_admin_service.canUpdate only takes the one param.