inosync not compatible with shipped python-pyinotify

Bug #499023 reported by Guillermo Pérez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
inosync (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: inosync

inosync is not compatible with the shipped python-pyinotify library.

It's trying to use EventsCodes.ALL_EVENTS, that doesn't exist anymore:
Traceback (most recent call last):
  File "/usr/bin/inosync", line 217, in <module>
    main()
  File "/usr/bin/inosync", line 195, in main
    wds = wm.add_watch(config.wpath, EventsCodes.ALL_EVENTS,
AttributeError: type object 'EventsCodes' has no attribute 'ALL_EVENTS'

Even trying to call the compatibility mode of the library ( http://trac.dbzteam.org/pyinotify/pyinotify-api/pyinotify-pysrc.html#compatibility_mode ), it doesn't work, so the change doesn't seem to be straightforward:
Traceback (most recent call last):
  File "/usr/bin/inosync", line 229, in <module>
    main()
  File "/usr/bin/inosync", line 208, in main
    rec = True, auto_add = True)
  File "/usr/lib/pymodules/python2.6/pyinotify.py", line 1436, in add_watch
    auto_add)
  File "/usr/lib/pymodules/python2.6/pyinotify.py", line 1369, in __add_watch
    mask)
ctypes.ArgumentError: argument 3: <type 'exceptions.TypeError'>: Don't know how to convert parameter 3

ProblemType: Bug
Architecture: i386
Date: Mon Dec 21 13:10:19 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: inosync 0.2-1 [modified: usr/bin/inosync]
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: inosync
Uname: Linux 2.6.31-16-generic i686

Revision history for this message
Guillermo Pérez (bisho) wrote :
Revision history for this message
Guillermo Pérez (bisho) wrote :

Information about incompatible changes:

http://trac.dbzteam.org/pyinotify/wiki/LastDevelopments

Revision history for this message
Ryan Niebur (ryan52) wrote :

this has been fixed in version 0.2-2.

Changed in inosync (Ubuntu):
status: New → Fix Released
Revision history for this message
Wessel (wessel-louwris) wrote :

0.2-2 depends on pyinotify-0.8.9 which is only available in lucid , so after installation of that pyinotify-0.8.9 from source archive I copied it to the ubuntu version of the file

cp /usr/local/lib/python2.6/dist-packages/pyinotify.py /usr/share/pyshared/pyinotify.py

And copied the 0.2-2 version of inosync.py to /usr/bin/inosync

Thanks for your update!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.