Skip to content

RequirementsFile.from_string() results in NameError: name 'Path' is not defined #16

@wch

Description

@wch

I get this error when calling RequirementsFile.from_string():

  File "/..../venv/lib/python3.9/site-packages/pip_requirements_parser.py", line 269, in from_string
    tmpdir = Path(str(tempfile.mkdtemp()))
NameError: name 'Path' is not defined

I think the code needs from pathlib import Path.

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