Skip to content

Fail to read metadata from .dist-info: data did not match any variant of untagged enum DirectUrl #1744

@messense

Description

@messense
$ uv pip freeze
error: Failed to read metadata: from /home/ubuntu/workspace/example/.venv/lib/python3.10/site-packages/qPython-2.0.0.dist-info
  Caused by: data did not match any variant of untagged enum DirectUrl
$ cat /home/ubuntu/workspace/example/.venv/lib/python3.10/site-packages/qPython-2.0.0.dist-info/direct_url.json
{"url": "git@github.example.com:example/qPython.git", "vcs_info": {"vcs": "git", "requested_revision": "7190a34911a789bd8e44f6b1986c8e84815b62e2", "commit_id": "7190a34911a789bd8e44f6b1986c8e84815b62e2"}}

VcsUrl {
url: Url,
vcs_info: VcsInfo,
#[serde(skip_serializing_if = "Option::is_none")]
subdirectory: Option<PathBuf>,
},

Probably because the url crate can't parse git@github.example.com:example/qPython.git: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3a089088700e500364057509872b61f9

thread 'main' panicked at src/main.rs:4:72:
called Result::unwrap() on an Err value: RelativeUrlWithoutBase

uv version: 0.1.5

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions