Skip to main content

[Errno 24]: Too many open files

This error occurs when the number of open files exceeds the limit set by your operating system. In Weave, this may happen because you’re working with large image datasets. Weave uses PIL for image processing, which keeps file descriptors open for the duration of the program. To resolve this issue, increase the system limit for open files to 65,536 using ulimit:
ulimit -n 65536

Troubleshooting