Page MenuHomePhabricator

`toolforge jobs` is broken
Closed, ResolvedPublicBUG REPORT

Description

Broken for all jobs subcommands, example:

tools.mix-n-match@tools-sgebastion-10:~/mixnmatch_rs$ toolforge jobs list
Traceback (most recent call last):
  File "/usr/bin/toolforge-jobs", line 33, in <module>
    sys.exit(load_entry_point('toolforge-jobs-framework-cli==16.1.0', 'console_scripts', 'toolforge-jobs')())
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/tjf_cli/cli.py", line 38, in <module>
    from tjf_cli.api import handle_connection_error, handle_http_exception
  File "/usr/lib/python3/dist-packages/tjf_cli/api.py", line 19, in <module>
    class TjfCliError(ToolforgeError):
  File "/usr/lib/python3/dist-packages/tjf_cli/api.py", line 22, in TjfCliError
    def __init__(self, message: str, context: Optional[dict[str, Any]] = None) -> None:
TypeError: 'type' object is not subscriptable

Related Objects

Event Timeline

This looks like you’re still on a bastion with Python 3.7 (tool-sgebastion-10), while toolforge-jobs (unintentionally? no idea) started to rely on Python 3.9 functionality.

Try connecting to login.toolforge.org (SSH fingerprints here) – the old bastion (still reachable via login.tools.wmflabs.org apparently) will be shut down relatively soon AFAIK.

Magnus claimed this task.

Thnaks, that was it. Could have a better error message but if the old host is shut down soon anyway...

Mentioned in SAL (#wikimedia-cloud) [2024-07-31T16:17:49Z] <andrewbogott> changing login.tools.wmlabs.org to point to a newer bastion, tools-bastion-12, in response to T371505