Skip to content

Frequently Asked Questions

seb-m edited this page Mar 17, 2011 · 8 revisions

Errors

  • I always get WD=-1 or the message No space left on device (ENOSPC) whenever I try to add a new watch
    • You must have reached your quota of watches, type sysctl -n fs.inotify.max_user_watches to read your current limit and type sysctl -n -w fs.inotify.max_user_watches=16384 to modify (increase) it.
  • Pyinotify seems to miss some events
  • How can I use Pyinotify on MacOSX or on Windows ?
    • You can't, Pyinotify exclusively works under Linux
  • I've watched a directory with argument rec=True but after that new directory created inside are not automatically watched
    • You'll most likely want to use an additional argument auto_add=True when calling the method add_watch()
Clone this wiki locally