Skip to content

Error Opening GUI #89

Description

@ape33

When opening an energy file I suddenly get an error which i didn't get previously:

pqenalyzer k_water-md-01.en
INFO: Detected PQ energy input.
Traceback (most recent call last):
  File "/home/ape/.conda/envs/pq/bin/pqenalyzer", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/PQEnalyzer/__main__.py", line 141, in main
    app.build()
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/PQEnalyzer/apps/app.py", line 100, in build
    self.__auto_refresh_control_event()
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/PQEnalyzer/apps/app.py", line 216, in __auto_refresh_control_event
    if self.__start_file_watcher():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/PQEnalyzer/apps/app.py", line 236, in __start_file_watcher
    if watcher.start():
       ^^^^^^^^^^^^^^^
  File "<@beartype(PQEnalyzer.apps.file_watcher.FileChangeWatcher.start) at 0x7f28f7e8aac0>", line 10, in start
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/PQEnalyzer/apps/file_watcher.py", line 63, in start
    self.observer.start()
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/watchdog/observers/api.py", line 264, in start
    emitter.start()
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/watchdog/utils/__init__.py", line 75, in start
    self.on_thread_start()
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/watchdog/observers/inotify.py", line 119, in on_thread_start
    self._inotify = InotifyBuffer(path, recursive=self.watch.is_recursive, event_mask=event_mask)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/watchdog/observers/inotify_buffer.py", line 30, in __init__
    self._inotify = Inotify(path, recursive=recursive, event_mask=event_mask)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 149, in __init__
    Inotify._raise_error()
  File "/home/ape/.conda/envs/pq/lib/python3.12/site-packages/watchdog/observers/inotify_c.py", line 438, in _raise_error
    raise OSError(errno.EMFILE, "inotify instance limit reached")
OSError: [Errno 24] inotify instance limit reached

I get this on the main branch. What could be the issue?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions