[ome-devel] Errors running scripts

Colin Blackburn c.blackburn at dundee.ac.uk
Fri Sep 24 17:56:57 BST 2010


Hi Chris,

On 24/09/2010 17:21, Wood, Christopher wrote:
> After editing the scripts as you suggested, and restarting omero, I get the following:
>
> Traceback (most recent call last):
>    File "./script", line 41, in ?
>      import omero.util.script_utils as scriptUtil
>    File "/OMERO/omero_dist/lib/python/omero/util/script_utils.py", line 45, in ?
>      from omero.util.OmeroPopo import EllipseData as EllipseData
>    File "/OMERO/omero_dist/lib/python/omero/util/OmeroPopo.py", line 83
>      class DataObject():
>                       ^
> SyntaxError: invalid syntax

If you change that line to:

class DataObject(object):

you should be fine. Another Python 2.4 issue.

Colin


>
>
> On 9/24/10 9:34 AM, "Josh Moore"<josh at glencoesoftware.com>  wrote:
>
>
>
> On Sep 24, 2010, at 4:32 PM, Wood, Christopher wrote:
>> Do you recommend updating Python?  My server has 2.4 right now.
>
> Not really. For the upcoming 4.2.1 release, we intend to remove all the Python 2.5-specific syntax to make Python 2.4 work.
>
> Sorry for the inconvenience.
> ~Josh.
>
>
>> On 9/24/10 9:30 AM, "Josh Moore"<josh at glencoesoftware.com>  wrote:
>>
>> Hi Christopher,
>>
>> this is a problem with the script using Python 2.5+ syntax. See ticket https://trac.openmicroscopy.org.uk/omero/ticket/2832 for an explanation.
>>
>> In your case, remove the line 726 (except:raise) to make the script work.
>>
>> Cheers,
>> ~Josh.
>>
>>
>> On Sep 24, 2010, at 4:17 PM, Wood, Christopher wrote:
>>
>>> Hi,
>>> I am getting the following  errors when running the  "Split View Figure" script:
>>> This happens with any image, and also happens with export movie
>>>
>>> See below:
>>>>  From /OMERO/Files/Dir-003/3407
>>>
>>> File "./script", line 727
>>>   finally: client.closeSession()
>>>         ^
>>> SyntaxError: invalid syntax
>>
>
>
> _______________________________________________
> ome-devel mailing list
> ome-devel at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel



More information about the ome-devel mailing list