Skip to content

Macro Rendering Error

File: comparison.md

ValueError: invalid literal for int() with base 10: '1024 (0 bubble)'

Traceback (most recent call last):
  File "/home/runner/.cache/pypoetry/virtualenvs/cpu-xkbKtu5s-py3.12/lib/python3.12/site-packages/mkdocs_macros/plugin.py", line 527, in render
    return md_template.render(**page_variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/.cache/pypoetry/virtualenvs/cpu-xkbKtu5s-py3.12/lib/python3.12/site-packages/jinja2/environment.py", line 1295, in render
    self.environment.handle_exception()
  File "/home/runner/.cache/pypoetry/virtualenvs/cpu-xkbKtu5s-py3.12/lib/python3.12/site-packages/jinja2/environment.py", line 942, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 64, in top-level template code
  File "/home/runner/work/cpu/cpu/main.py", line 154, in firestorm_oryon_comparison
    data.loc[index, field] = str(int(row[field]))
                                 ^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '1024 (0 bubble)'