Skip to content

SyntaxError: f-string: expecting '}' on Python 3.11 #3

@moschlar

Description

@moschlar
$ uvx cfengine -h
Traceback (most recent call last):
  File "/home/moschlar/.cache/uv/archive-v0/yX8Z4gWiqPA5AMw9NTT57/bin/cfengine", line 6, in <module>
    from cfengine_cli.main import main
  File "/home/moschlar/.cache/uv/archive-v0/yX8Z4gWiqPA5AMw9NTT57/lib/python3.11/site-packages/cfengine_cli/__init__.py", line 8, in <module>
    __import__("cfengine_cli." + module)
  File "/home/moschlar/.cache/uv/archive-v0/yX8Z4gWiqPA5AMw9NTT57/lib/python3.11/site-packages/cfengine_cli/main.py", line 7, in <module>
    from cfengine_cli import commands
  File "/home/moschlar/.cache/uv/archive-v0/yX8Z4gWiqPA5AMw9NTT57/lib/python3.11/site-packages/cfengine_cli/commands.py", line 3, in <module>
    from cfengine_cli.dev import dispatch_dev_subcommand
  File "/home/moschlar/.cache/uv/archive-v0/yX8Z4gWiqPA5AMw9NTT57/lib/python3.11/site-packages/cfengine_cli/dev.py", line 8, in <module>
    from cfengine_cli.docs import update_docs, check_docs
  File "/home/moschlar/.cache/uv/archive-v0/yX8Z4gWiqPA5AMw9NTT57/lib/python3.11/site-packages/cfengine_cli/docs.py", line 220
    f"Unsupported language '{language}'. The supported languages are: {", ".join(supported_languages.keys())}"
                                                                        ^
SyntaxError: f-string: expecting '}'

Using Python 3.12 helps: uvx -p cpython-3.12.11-linux-x86_64-gnu cfengine -h

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions