We're Hiring!

Ubuntu 9.10 and pynotify with omero 4.1.1

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Ubuntu 9.10 and pynotify with omero 4.1.1

Postby roelof » Mon Apr 12, 2010 2:58 pm

Something I ran into getting DropBox running on an Ubuntu 9.10 install. Ubuntu 9.10 comes with python-pyinotify version 0.8.6 and python 2.6.4.

This results in the following error message:
pynotify version 0.8.6 is not compatible with Python 2.4. Install 0.8.5 or lower to use DropBox


I resolved this with a dirty hack in ~/omero_dist/lib/python/fsUtil.py:

Code: Select all
                try:
                    # 0.8.x has a __version__ attribute.
                    version = pyinotify.__version__.split('.')
                    if int(version[0]) == 0 and int(version[1]) == 8:
                        try:
                            pyinotify.PyinotifyLogger
                            current = 'LINUX_2_6_13+pyinotify_0_8'
                        except AttributeError:
                            if sys.version[:3] == '2.5':
                                current = 'LINUX_2_6_13+pyinotify_0_8'
                            else:
                               
replace this line ====>  errorString = "pynotify version %s is not compatible with Python 2.4. Install 0.8.5 or lower to use DropBox" % pyinotify.__version__
with this line =======>  current = 'LINUX_2_6_13+pyinotify_0_8'
                    # This pyinotofy has a __version__ attribute but isn't 0.8.
                    else:
                        errorString = "pyinotify 0.7 or 0.8 required. Unknown version found."
                except:
                    # 0.7.x doesn't have a __version__ attribute but there is
                    # a possibility that the installed version is 0.6 or less.
                    # That isn't tested for and might be a point of failure.
                    current = 'LINUX_2_6_13+pyinotify_0_7'


This seems to work ok, but is this going to bite me later on?
roelof
 
Posts: 3
Joined: Fri Apr 09, 2010 8:40 am

Re: Ubuntu 9.10 and pynotify with omero 4.1.1

Postby cblackburn » Tue Apr 13, 2010 12:20 pm

Hi,

If DropBox starts up okay without an exception then your hack won't come back to bite you later. The initial release of pyinotify 0.8.6 had a bug:

http://trac.dbzteam.org/pyinotify/ticket/29

which caused DropBox to fail to start. This has now been fixed in pyinotify, your install of 0.8.6 must have this bug fixed. However, I haven't updated DropBox to reflect this fix so thanks for the heads-up on this:

http://trac.openmicroscopy.org.uk/omero/ticket/2182

Colin
cblackburn
 
Posts: 85
Joined: Mon May 25, 2009 9:03 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest