Skip to content

Frequently Asked Questions

kjw1 edited this page Oct 10, 2012 · 8 revisions
  • 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 if a new directory is created inside, it is not automatically watched
    • You'll most likely want to use an additional argument auto_add=True when calling the method add_watch()
    • You also must watch for IN_CREATE events, or new directories won't be watched.