Skip to content

Reading versions from requirements.txt ValueError #626

@timothy-nunn

Description

@timothy-nunn

dependency, version = line.split("=", 1)

Raises a traceback

File "/Users/timothynunn/eqm-ml/.venv/lib/python3.10/site-packages/simvue/metadata.py", line 90, in _python_env
    dependency, version = line.split("=", 1)
ValueError: not enough values to unpack (expected 2, got 1)

I think this is too simple because the following is a valid requirements.txt file:

simvue>=1.1.3
numpy==2.0
scipy
my_package @ git+ssh://[email protected]/timothynunn/my-package@main

But the error would occur for at least the last two entries because they don't have an =.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions