Project

General

Profile

Actions

Bug #22273

closed

Cluster activity report uses type hints that don't work in Python 3.8

Added by Brett Smith 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Story points:
-
Release:
Release relationship:
Auto

Description

We need to support Python 3.8 because that's included in Ubuntu 20.04.

$ arv-cluster-activity -h
Traceback (most recent call last):
  File "/opt/arvados/pyclients/bin/arv-cluster-activity", line 5, in <module>
    from arvados_cluster_activity.main import main
  File "/opt/arvados/pyclients/lib/python3.8/site-packages/arvados_cluster_activity/main.py", line 17, in <module>
    from arvados_cluster_activity.report import ClusterActivityReport, aws_monthly_cost, format_with_suffix_base2
  File "/opt/arvados/pyclients/lib/python3.8/site-packages/arvados_cluster_activity/report.py", line 33, in <module>
    class ProjectSummary:
  File "/opt/arvados/pyclients/lib/python3.8/site-packages/arvados_cluster_activity/report.py", line 36, in ProjectSummary
    runs: dict[str, WorkflowRunSummary]
TypeError: 'type' object is not subscriptable

Subtasks 1 (0 open1 closed)

Task #22278: Review 22273-arv-cluster-activity-bugfixesResolvedPeter Amstutz11/01/2024Actions
Actions

Also available in: Atom PDF