Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #10415 (new)

Opened 11 years ago

Last modified 8 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)

listing.txt (22.9 KB) - added by bpindelski 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by bpindelski

comment:1 Changed 11 years ago by bpindelski

  • Owner set to jmoore

comment:2 Changed 11 years ago by spli

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.

Last edited 11 years ago by spli (previous) (diff)

comment:3 Changed 11 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 11 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 8 years ago by jamoore

  • Milestone changed from 5.x to Unscheduled
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.69809 sec.)

We're Hiring!