Skip to content

NameError with pygopt #181

@MaPaw

Description

@MaPaw

When I load the pythontex package with this command:
\usepackage[usefamily=R, pygopt={texcomments, style=friendly}]{pythontex}
I get this error:

This is PythonTeX 0.17
Traceback (most recent call last):
  File "/Library/TeX/texbin/pythontex", line 62, in <module>
    pythontex.main()
  File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 2788, in main
    load_code_get_settings(data, temp_data)
  File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 480, in load_code_get_settings
    settings_func[key](key, val)
  File "/usr/local/texlive/2020/texmf-dist/scripts/pythontex/pythontex3.py", line 440, in set_kv_pygments
    k = option
NameError: name 'option' is not defined

Indeed, when I change line 440 in pythontex3.py to
k = options
it works fine, so I think it's just a typo (option instead of options). Could you please correct it? Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions