Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many open files #505

Open
kamranisbest opened this issue Mar 4, 2024 · 2 comments
Open

Too many open files #505

kamranisbest opened this issue Mar 4, 2024 · 2 comments

Comments

@kamranisbest
Copy link

/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.

@otoyuzu705
Copy link

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()))

@tokibito
Copy link

tokibito commented Aug 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants