Syntax error ug_getNodeCharacteristicsSummary.py

Bonjour,

Il semble y avoir une erreur dans le code python suivant.

L’erreur est propagé sur tous les noeuds du cluster.
(yggdrasil)-[strassep@login1 ~]$ ug_getNodeCharacteristicsSummary.py
File “/usr/local/sbin/ug_getNodeCharacteristicsSummary.py”, line 57
print(f"salut {cluster} {summary.get(“net_billing_per_year”, 0.0)}")
^
SyntaxError: f-string: unmatched ‘(’
(yggdrasil)-[strassep@login1 ~]$

Bonne journée.

Pablo

Hello @pablo.strasser1

Yes I saw that: it should be fixed by the end of the week.

Best regards

Yann

Dear @pablo.strasser1

the issue is now fixed. As extra bonus, it isn’t needed anymore to pre load modules. For this to work, you need to launch the script without the “.py” extension.

Ex:

  • ug_getNodeCharacteristicsSummary
  • ug_slurm_usage_per_user

Confirmed it work well.

Thanks

1 Like