Python Add Watch (LiveReload) No Such File or Directory

Aug 20, 2018

I am using livereload and bump into the following error

add_watch: cannot watch somefile.py WD=-1, Errno=No such file or directory (ENOENT)

Check watch limit (default should be 8192)

cat /proc/sys/fs/inotify/max_user_watches

Increase watch limit

sudo sysctl fs.inotify.max_user_watches=16384

Permanently increase watch limit

echo 16384 | sudo tee -a /proc/sys/fs/inotify/max_user_watches

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.