"Too many open files" error

69 views
Skip to first unread message

noelle

unread,
Oct 15, 2012, 9:10:52 AM10/15/12
to mako-d...@googlegroups.com
Hi,

Has anyone had the message "too many open files"?
Line 150 in template.py (_compile_from_file method)
Has anyone a solution to this problem (different from modifying template.py)?

Thanking you in advance

smallfish

unread,
Oct 15, 2012, 9:27:46 AM10/15/12
to mako-d...@googlegroups.com
check the system(*nix) ulimit conf. just like this:

$ ulimit -n
256 -- default value

you can set the temp value, example: ulimit -n 65535 (just the current shell env)

can write this command into profile/bashrc etc.
--



--
You received this message because you are subscribed to the Google Groups "Mako Templates for Python" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mako-discuss/-/7cVVV2_wk7oJ.
To post to this group, send email to mako-d...@googlegroups.com.
To unsubscribe from this group, send email to mako-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mako-discuss?hl=en.

Michael Bayer

unread,
Oct 15, 2012, 11:34:47 AM10/15/12
to mako-d...@googlegroups.com
hi there -

"line 150 of template.py" is meaningless without knowing the exact release version of Mako that you're using.    I see the file you attached to my trac is copyright 2010, which means it is two years out of date.   I can't do a diff since I don't know which version to diff against.

Please test against the latest release of Mako first (version 0.7.2), and if the problem persists, please let me know specifically what the issue is.  We can reopen the ticket then.



Reply all
Reply to author
Forward
0 new messages