python-dotenv icon indicating copy to clipboard operation
python-dotenv copied to clipboard

Too many open files

Open kamranisbest opened this issue 1 year ago • 2 comments

/lib/python3.11/site-packages/dotenv/main.py", line 56, in _get_stream OSError: [Errno 24] Too many open files: '.env'

Tried updating ulimit but issue remains same.

kamranisbest avatar Mar 04 '24 00:03 kamranisbest

I have checked the following methods and no error occurred. Ubuntu 20.04 python3.11

$ ulimit -n
1024

.env

TESTVALUE=foo

I tried the parse method because the parse method uses the _get_stream method.

main.py

from dotenv.main import DotEnv

dotenv = DotEnv("./.env")

print(list(dotenv.parse()))

otoyuzu705 avatar Jul 28 '24 05:07 otoyuzu705

@theskumar @kamranisbest I'd be grateful for your feedback on @otoyuzu705's comment. I helped him with his investigation.

tokibito avatar Aug 07 '24 14:08 tokibito

It would be quite challenging for me to assist unless there's a way to replicate the issue. If you're certain it's a problem with this package, I'd be eager to help if there's a way to recreate it.

theskumar avatar Mar 28 '25 14:03 theskumar