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?