Kattis / problemtools

Tools to manage problem packages using the Kattis problem package format.
MIT License
101 stars 70 forks source link

Required plasTeX version? #214

Closed evouga closed 1 year ago

evouga commented 1 year ago

Does ProblemTools need an older version of plastTeX as a dependency? I get the following error when I try to run problem2html:

Traceback (most recent call last):
  File "/u/evouga/anaconda3/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/u/evouga/anaconda3/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/u/evouga/icpc/problemtools/problemtools/problem2html.py", line 140, in <module>
    main()
  File "/u/evouga/icpc/problemtools/problemtools/problem2html.py", line 136, in main
    convert(options.problem, options)
  File "/u/evouga/icpc/problemtools/problemtools/problem2html.py", line 41, in convert
    tex = plasTeX.TeX.TeX(myfile=texfile)
TypeError: __init__() got an unexpected keyword argument 'myfile'
ghamerly commented 1 year ago

I can confirm that this seems to be a change in plasTeX. It appears to have happened here: https://github.com/plastex/plastex/commit/e75cebb97c3b08d53b5e104fb52c3979c1a19aa6#diff-5290a8797eff6eb4d1432f96a1b01b0593dd77e05bdad8673c371df375203fe5L60

This by itself is a simple fix; we'll need to check though that other plasTeX-related issues did not also arise.

pyeatt commented 1 year ago

I had the same issue. Seems to be resolved.