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

Error on refresh #21

Open
JosselinSomervilleRoberts opened this issue Jul 10, 2024 · 0 comments
Open

Error on refresh #21

JosselinSomervilleRoberts opened this issue Jul 10, 2024 · 0 comments

Comments

@JosselinSomervilleRoberts

Hi,

Thanks for this tool!
Sadly, as soon as it refreshes, it crashes.
Here is the stack trace:

Traceback (most recent call last):
  File "/private/home/josselin/.local/lib/python3.10/site-packages/stui/views/jobs.py", line 480, in refresh
    w = self.job_widgets_dict[job.job_id]
KeyError: '29831211'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/private/home/josselin/.local/bin/stui", line 8, in <module>
    sys.exit(cli())
  File "/private/home/josselin/.local/lib/python3.10/site-packages/stui/cli.py", line 41, in cli
    StuiApp(args).run()
  File "/private/home/josselin/.local/lib/python3.10/site-packages/stui/stui.py", line 192, in run
    self.loop.run()
  File "/private/home/josselin/.local/lib/python3.10/site-packages/urwid/event_loop/main_loop.py", line 337, in run
    self._run()
  File "/private/home/josselin/.local/lib/python3.10/site-packages/urwid/event_loop/main_loop.py", line 439, in _run
    self.event_loop.run()
  File "/private/home/josselin/.local/lib/python3.10/site-packages/urwid/event_loop/asyncio_loop.py", line 235, in run
    raise exc.with_traceback(exc.__traceback__)
  File "/large_experiments/dinov2/huyvvo/envs/fairvit+py310-cu121-pt22-nightly/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/private/home/josselin/.local/lib/python3.10/site-packages/urwid/event_loop/asyncio_loop.py", line 104, in wrapper
    return callback(*args, **kwargs)
  File "/private/home/josselin/.local/lib/python3.10/site-packages/urwid/event_loop/main_loop.py", line 218, in cb
    callback(self, user_data)
  File "/private/home/josselin/.local/lib/python3.10/site-packages/stui/stui.py", line 204, in refresh_time
    self.topmost_widget.refresh_jobs()
  File "/private/home/josselin/.local/lib/python3.10/site-packages/stui/stui.py", line 69, in refresh_jobs
    self.jobs_tab.refresh()
  File "/private/home/josselin/.local/lib/python3.10/site-packages/stui/views/jobs.py", line 485, in refresh
    w = JobWidget(job)
  File "/private/home/josselin/.local/lib/python3.10/site-packages/stui/views/jobs.py", line 51, in __init__
    self.update_values(job)
  File "/private/home/josselin/.local/lib/python3.10/site-packages/stui/views/jobs.py", line 79, in update_values
    self.columns["state"].set_attr_map(self.STATE_ATTR_MAPPING[job.state])
KeyError: 'REQUEUE_HOLD'

Environment:

  • Python 3.10.9
  • stui 0.3.6
  • SLURM 23.11.6
  • I had no job running

Thanks!

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

1 participant