Skip to content

Missing href attribute on anchor link when using private pypi #8172

Closed
@isaacimholt

Description

@isaacimholt

I am trying to use uv on a company project but it is not able to parse the package page. I suspect it is attempting to parse some javascript.

❯ uv pip install --index-url https://devpi.my_company.net/root/namespace/+simple my_package --reinstall --verbose
DEBUG uv 0.4.20 (Homebrew 2024-10-08)
DEBUG Searching for default Python interpreter in system path
DEBUG Found `cpython-3.10.15-macos-aarch64-none` at `/Volumes/sourcecode/my_project/.venv/bin/python3` (active virtual environment)
DEBUG Using Python 3.10.15 environment at .venv
DEBUG Acquired lock for `.venv`
DEBUG Using request timeout of 30s
DEBUG Solving with installed Python version: 3.10.15
DEBUG Solving with target Python version: >=3.10.15
DEBUG Adding direct dependency: my_package*
DEBUG No cache entry for: https://devpi.my_company.net/root/namespace/+simple/my_package/
DEBUG Released lock at `/Volumes/sourcecode/my_project/.venv/.lock`
error: Received some unexpected HTML from https://devpi.my_company.net/root/namespace/+simple/my_package/
  Caused by: Missing href attribute on anchor link

I think I cannot paste the source of the page in question, but I searched for <a and I found 1 extra occurrence in some javascript which looks like this (this is under a <head><script type="text/javascript"> html section, if that is relevant):

for(t&&t(r);u<a.length;u++)

It works fine with pip, please let me know if you need any other information to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    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