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

Update jsontemplate #1399

Closed
mfeit-internet2 opened this issue Jan 29, 2024 · 2 comments
Closed

Update jsontemplate #1399

mfeit-internet2 opened this issue Jan 29, 2024 · 2 comments
Assignees

Comments

@mfeit-internet2
Copy link
Member

mfeit-internet2 commented Jan 29, 2024

The jsontemplate we're building doesn't run on Python 3.10 because of the collections.Callable -> collections.abc.Callable problem resolved in #1370.

See if there's a new, still-compatible version or write a patch.

Problem seen by Daniel:

root@ubuntu22:/etc/apt/sources.list.d# pscheduler task rtt --dest monipe-rj-atraso.rnp.br
Submitting task...
Task URL:
https://ubuntu22/pscheduler/tasks/0aaec7e9-5e3d-42b9-b8d9-768cc2c66cb2
Running with tool 'ping'
Fetching first run...

Next scheduled run:
https://ubuntu22/pscheduler/tasks/0aaec7e9-5e3d-42b9-b8d9-768cc2c66cb2/runs/6d16005f-5da6-4f9d-85b5-65b6da4d5bc0
Starts 2024-01-29T14:59:43+00:00 (~3 seconds)
Ends   2024-01-29T14:59:54+00:00 (~10 seconds)
Waiting for result...

Problem fetching results: Failed to format result: Traceback (most recent call last):
  File "/usr/lib/pscheduler/classes/test/rtt/result-format", line 136, in <module>
    print(jsontemplate.expand(rt_template, rt).strip())
  File "/usr/lib/python3/dist-packages/jsontemplate/_jsontemplate.py", line 1773, in expand
    t = Template(template_str, **kwargs)
  File "/usr/lib/python3/dist-packages/jsontemplate/_jsontemplate.py", line 1391, in __init__
    builder = _ProgramBuilder(more_formatters, more_predicates, r)
  File "/usr/lib/python3/dist-packages/jsontemplate/_jsontemplate.py", line 336, in __init__
    elif isinstance(formatters, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'

No further runs scheduled.
@mfeit-internet2 mfeit-internet2 self-assigned this Jan 29, 2024
@github-project-automation github-project-automation bot moved this to Ready in perfSONAR Jan 29, 2024
@mfeit-internet2 mfeit-internet2 moved this from Ready to In Progress in perfSONAR Jan 29, 2024
@mfeit-internet2 mfeit-internet2 changed the title Uopdate jsontemplate Update jsontemplate Jan 29, 2024
@mfeit-internet2
Copy link
Member Author

mfeit-internet2 commented Jan 30, 2024

Decided to remove jsontemplate and convert all use of it to Jinja2.

Test plugins to do:

  • clock
  • dhcp
  • disk-to-disk
  • dns
  • dot1x
  • http
  • idle
  • idlebgm
  • idleex
  • latency
  • latencybg
  • mtu
  • netreach
  • noop
  • openports
  • psresponse
  • rtt
  • s3throughput -- Needs loops problem in results solved.
  • simplestream
  • snmpget
  • snmpgetbgm
  • snmpset
  • throughput
  • trace
  • wifibssid
  • PDK

mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Jan 31, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 1, 2024
mfeit-internet2 added a commit that referenced this issue Feb 4, 2024
mfeit-internet2 added a commit that referenced this issue Feb 4, 2024
mfeit-internet2 added a commit that referenced this issue Feb 4, 2024
mfeit-internet2 added a commit that referenced this issue Feb 4, 2024
mfeit-internet2 added a commit that referenced this issue Feb 4, 2024
mfeit-internet2 added a commit that referenced this issue Feb 4, 2024
mfeit-internet2 added a commit that referenced this issue Feb 4, 2024
mfeit-internet2 added a commit that referenced this issue Feb 4, 2024
mfeit-internet2 added a commit that referenced this issue Feb 5, 2024
mfeit-internet2 added a commit that referenced this issue Feb 6, 2024
mfeit-internet2 added a commit that referenced this issue Feb 6, 2024
mfeit-internet2 added a commit that referenced this issue Feb 6, 2024
mfeit-internet2 added a commit that referenced this issue Feb 6, 2024
@mfeit-internet2
Copy link
Member Author

Done. Finally.

@github-project-automation github-project-automation bot moved this from In Progress to Done in perfSONAR Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant