Skip to content

An issue with Python version < 3.8 (walrus operator) #459

Open
@apprithm

Description

It output the following error when I enter:
sgpt "nginx default config file location"

Traceback (most recent call last):
  File "/Users/guest/miniconda3/bin/sgpt", line 5, in <module>
    from sgpt import cli
  File "/Users/guest/miniconda3/lib/python3.7/site-packages/sgpt/__init__.py", line 1, in <module>
    from .app import main as main
  File "/Users/guest/miniconda3/lib/python3.7/site-packages/sgpt/app.py", line 12, in <module>
    from sgpt.handlers.repl_handler import ReplHandler
  File "/Users/guest/miniconda3/lib/python3.7/site-packages/sgpt/handlers/repl_handler.py", line 20
    while (user_input := typer.prompt("...", prompt_suffix="")) != '"""':
                      ^

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions