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

OSError: [Errno 24] Too many open files: ' #271

Open
lucatortiglione opened this issue Jan 7, 2024 · 1 comment
Open

OSError: [Errno 24] Too many open files: ' #271

lucatortiglione opened this issue Jan 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lucatortiglione
Copy link

I have just ran yamlfix on folders with several yaml files

(pythonvenv) [root@luca-vmwarevirtualplatform bin]# yamlfix -v --check /home/luca/Documenti/GitHub/devicetype-library
Traceback (most recent call last):
File "/home/luca/pythonvenv/bin/yamlfix", line 8, in
sys.exit(cli())
^^^^^
File "/home/luca/pythonvenv/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/luca/pythonvenv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/luca/pythonvenv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/luca/pythonvenv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/luca/pythonvenv/lib/python3.11/site-packages/yamlfix/entrypoints/cli.py", line 106, in cli
files_to_fix = [file.open("r+") for file in real_files]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/luca/pythonvenv/lib/python3.11/site-packages/yamlfix/entrypoints/cli.py", line 106, in
files_to_fix = [file.open("r+") for file in real_files]
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/pathlib.py", line 1044, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 24] Too many open files: '/home/luca/Documenti/GitHub/devicetype-library/device-types/Arista/DCS-7280CR2K-60-DC-F.yaml'

(pythonvenv) [root@luca-vmwarevirtualplatform bin]# python -c "import yamlfix.version; print(yamlfix.version.version_info())"

 yamlfix: 1.16.0
 Python: 3.11.6
 Platform: Linux-6.1.71-1-lts-x86_64-with-glibc2.38
@lucatortiglione lucatortiglione added the bug Something isn't working label Jan 7, 2024
@lyz-code
Copy link
Owner

Hi @lucatortiglione thanks for taking the time to open the issue. Sadly since the start of the year I'm not maintaining the project for the moment so I'm not going to be able to fix this issue. If you submit a PR though I'll be glad to review it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants