Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.
This repository was archived by the owner on May 26, 2025. It is now read-only.

I got errors during 'make switch-to-poetry' that I don't understand. #11

@conradstorz

Description

@conradstorz

This was the initial output to my terminal under MINGW64 in vscode and Win10

$ make switch-to-poetry
Switching to poetry ...

This command will guide you through creating your pyproject.toml config.

You can specify a package in the following forms:

Creating virtualenv a-flask-test in C:\Users\Conrad\bookish-enigma.venv

ValueError

too many values to unpack (expected 2)

at ~.poetry\lib\poetry\console\commands\init.py:456 in parse_requirements
452│ pair = pair.strip()
453│
454│ require = OrderedDict()
455│ if " " in pair:
→ 456│ name, version = pair.split(" ", 2)
457│ extras_m = re.search(r"[([\w\d,-
]+)]$", name)
458│ if extras_m:
459│ extras = [e.strip() for e in extras_m.group(1).split(",")]
460│ name, _ = name.split("[")

ValueError

too many values to unpack (expected 2)

at ~.poetry\lib\poetry\console\commands\init.py:456 in parse_requirements
452│ pair = pair.strip()
453│
454│ require = OrderedDict()
455│ if " " in pair:
→ 456│ name, version = pair.split(" ", 2)
457│ extras_m = re.search(r"[([\w\d,-
]+)]$", name)
458│ if extras_m:
459│ extras = [e.strip() for e in extras_m.group(1).split(",")]
460│ name, _ = name.split("[")

ValueError

too many values to unpack (expected 2)

at ~.poetry\lib\poetry\console\commands\init.py:456 in parse_requirements
452│ pair = pair.strip()
453│
454│ require = OrderedDict()
455│ if " " in pair:
→ 456│ name, version = pair.split(" ", 2)
457│ extras_m = re.search(r"[([\w\d,-
]+)]$", name)
458│ if extras_m:
459│ extras = [e.strip() for e in extras_m.group(1).split(",")]
460│ name, _ = name.split("[")

ValueError

too many values to unpack (expected 2)

at ~.poetry\lib\poetry\console\commands\init.py:456 in parse_requirements
452│ pair = pair.strip()
453│
454│ require = OrderedDict()
455│ if " " in pair:
→ 456│ name, version = pair.split(" ", 2)
457│ extras_m = re.search(r"[([\w\d,-
]+)]$", name)
458│ if extras_m:
459│ extras = [e.strip() for e in extras_m.group(1).split(",")]
460│ name, _ = name.split("[")

ValueError

too many values to unpack (expected 2)

at ~.poetry\lib\poetry\console\commands\init.py:456 in parse_requirements
452│ pair = pair.strip()
453│
454│ require = OrderedDict()
455│ if " " in pair:
→ 456│ name, version = pair.split(" ", 2)
457│ extras_m = re.search(r"[([\w\d,-
]+)]$", name)
458│ if extras_m:
459│ extras = [e.strip() for e in extras_m.group(1).split(",")]
460│ name, _ = name.split("[")

ValueError

too many values to unpack (expected 2)

at ~.poetry\lib\poetry\console\commands\init.py:456 in parse_requirements
452│ pair = pair.strip()
453│
454│ require = OrderedDict()
455│ if " " in pair:
→ 456│ name, version = pair.split(" ", 2)
457│ extras_m = re.search(r"[([\w\d,-
]+)]$", name)
458│ if extras_m:
459│ extras = [e.strip() for e in extras_m.group(1).split(",")]
460│ name, _ = name.split("[")
Using version ^6.2.5 for pytest

From here it all seemed to proceed normally and declared

You have switched to https://python-poetry.org/ package manager.
Please run 'poetry shell' or 'poetry run bookish_enigma'

I wanted to share this because I don't know if those errors were to be expected and ignored.
Thanks for your time.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rochacbruno@conradstorz

        Issue actions

          I got errors during 'make switch-to-poetry' that I don't understand. · Issue #11 · rochacbruno/python-project-template