Skip to content

OSError: [Errno 24] Too many open files: 'oaib.txt' #15

@ollieglass

Description

@ollieglass

redacted stack trace:

  File "/Users/.../.asdf/installs/python/3.12.4/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/Users/.../.asdf/installs/python/3.12.4/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/.../.asdf/installs/python/3.12.4/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/Users/.../summarise_pdfs.py", line 20, in create_bullet_points
    return await batch.run()
           ^^^^^^^^^^^^^^^^^
  File "/Users/.../env/lib/python3.12/site-packages/oaib/Batch.py", line 405, in run
    await gather(*self.__workers)
  File "/Users/.../env/lib/python3.12/site-packages/oaib/Batch.py", line 294, in __worker
    proceed = self._next(i)
              ^^^^^^^^^^^^^
  File "/Users/.../env/lib/python3.12/site-packages/oaib/Batch.py", line 267, in _next
    self.log(f"REQUESTS: {self.__queue.qsize()}", worker=i)
  File "/Users/.../env/lib/python3.12/site-packages/oaib/Batch.py", line 141, in log
    with open(self.logdir, "a") as file:
         ^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 24] Too many open files: 'oaib.txt'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions