Skip to content

[BUG] pip does not work as expected if called from UniGetUI, but works if called from cmd #5774

Open

Description

@tps800

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

2026.3.4

Windows version, edition, and architecture

Microsoft Windows [Version 10.0.17763.316]

Describe your issue

Pip called from UniGetUI exhausts:

Manager Pip with version:
pip 26.3 from C:\prgs\py\313\Lib\site-packages\pip (python 3.13)

——————————————————————————————————————————

Logged native task on manager Pip. Task type is FindPackages
Process start time: 16.11.2026 13:49:26
Process end time:   16.11.2026 13:50:50

-- Task information
 ...

-- Task errors
  System.Net.Http.HttpRequestException: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat. (pypi.org:443)
   ---> System.Net.Sockets.SocketException (10060): Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError, CancellationToken) + 0x3d
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16) + 0x4e
     at System.Net.Http.HttpConnectionPool.<ConnectToTcpHostAsync>d__54.MoveNext() + 0x6c4
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.<ConnectToTcpHostAsync>d__54.MoveNext() + 0x728
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpConnectionPool.<ConnectAsync>d__53.MoveNext() + 0x40c
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpConnectionPool.<CreateHttp11ConnectionAsync>d__81.MoveNext() + 0x267
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpConnectionPool.<InjectNewHttp11ConnectionAsync>d__80.MoveNext() + 0x2ca
  --- End of stack trace from previous location ---
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellation(CancellationToken) + 0xb4
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(Boolean, CancellationToken) + 0x37
     at System.Net.Http.HttpConnectionPool.<SendWithVersionDetectionAndRetryAsync>d__52.MoveNext() + 0x1d3
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage, CancellationToken) + 0xfb
     at System.Net.Http.Metrics.MetricsHandler.SendAsync(HttpRequestMessage, Boolean, CancellationToken) + 0x6a
     at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage, CancellationToken) + 0x2e
     at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage, Boolean, CancellationToken) + 0x63
     at System.Net.Http.RedirectHandler.<SendAsync>d__4.MoveNext() + 0xd5
  --- End of stack trace from previous location ---
     at System.Net.Http.DecompressionHandler.<SendAsync>d__16.MoveNext() + 0x2db
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage, CancellationToken) + 0xfb
     at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage, CancellationToken) + 0x7e
     at System.Net.Http.HttpClient.Send(HttpRequestMessage, HttpCompletionOption, CancellationToken) + 0x13d
     at UniGetUI.PackageEngine.Managers.PipManager.Pip.GetOrRefreshIndex(INativeTaskLogger) + 0x452
     at UniGetUI.PackageEngine.Managers.PipManager.Pip.<_performExtraLoadingSteps>b__87_0() + 0x4c

The task reported a failure (0x1, 1, 1)

——————————————————————————————————————————

while calling pip from cmd it just works as expected.

Steps to reproduce the issue

Install cpython from https://www.python.org/ftp/python/3.13.17/python-3.13.17-amd64.exe, add it to path. Python launcher is not necessary.

You may as well install it using msys: pacman -Syy python pip.

Then call pip: python -m pip should do it. It might be useful to install pip-review too:
python -m pip install pip-review

UniGetUI Log

-> Field can not be longer than 65536 characters

Package Managers Logs

Manager Pip with version:
pip 26.3 from C:\prgs\py\313\Lib\site-packages\pip (python 3.13)

——————————————————————————————————————————

Logged native task on manager Pip. Task type is FindPackages
Process start time: 16.11.2026 13:49:26
Process end time:   16.11.2026 13:50:50

-- Task information
 ...

-- Task errors
  System.Net.Http.HttpRequestException: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat. (pypi.org:443)
   ---> System.Net.Sockets.SocketException (10060): Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError, CancellationToken) + 0x3d
     at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16) + 0x4e
     at System.Net.Http.HttpConnectionPool.<ConnectToTcpHostAsync>d__54.MoveNext() + 0x6c4
     --- End of inner exception stack trace ---
     at System.Net.Http.HttpConnectionPool.<ConnectToTcpHostAsync>d__54.MoveNext() + 0x728
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpConnectionPool.<ConnectAsync>d__53.MoveNext() + 0x40c
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpConnectionPool.<CreateHttp11ConnectionAsync>d__81.MoveNext() + 0x267
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpConnectionPool.<InjectNewHttp11ConnectionAsync>d__80.MoveNext() + 0x2ca
  --- End of stack trace from previous location ---
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellation(CancellationToken) + 0xb4
     at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(Boolean, CancellationToken) + 0x37
     at System.Net.Http.HttpConnectionPool.<SendWithVersionDetectionAndRetryAsync>d__52.MoveNext() + 0x1d3
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage, CancellationToken) + 0xfb
     at System.Net.Http.Metrics.MetricsHandler.SendAsync(HttpRequestMessage, Boolean, CancellationToken) + 0x6a
     at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage, CancellationToken) + 0x2e
     at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage, Boolean, CancellationToken) + 0x63
     at System.Net.Http.RedirectHandler.<SendAsync>d__4.MoveNext() + 0xd5
  --- End of stack trace from previous location ---
     at System.Net.Http.DecompressionHandler.<SendAsync>d__16.MoveNext() + 0x2db
  --- End of stack trace from previous location ---
     at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage, CancellationToken) + 0xfb
     at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage, CancellationToken) + 0x7e
     at System.Net.Http.HttpClient.Send(HttpRequestMessage, HttpCompletionOption, CancellationToken) + 0x13d
     at UniGetUI.PackageEngine.Managers.PipManager.Pip.GetOrRefreshIndex(INativeTaskLogger) + 0x452
     at UniGetUI.PackageEngine.Managers.PipManager.Pip.<_performExtraLoadingSteps>b__87_0() + 0x4c

The task reported a failure (0x1, 1, 1)

Relevant information

Looks like UniGetUI just calls the package-manager as soon as possible again, until it has reached those 10 times it tries. This is mostly done within less than a minute just to short to overcome short outages because of overloaded systems.

UniGetUI-Protokoll.txt

Screenshots and videos

No response

Activity

  1. added
    bug
    on Nov 16, 2026
  2. added
    priority: medium
    on Nov 16, 2026
  3. GabrielDuf commented on Nov 16, 2026

    @GabrielDuf
    Contributor

    Hi Thomas (@tps800),
    Thanks for the detailed report and the log.

    This doesn't look specific to Pip. In your log, UniGetUI's own requests to PyPI, GitHub (icon database) and the PowerShell Gallery all time out while connecting. So the question is why UniGetUI can't open connections that pip can:

    1. Do you connect to the internet through a proxy? If you do, does it work if you enter it under Settings → Internet and proxy settings → Connect the internet using a custom proxy?

    2. Is outbound traffic restricted to approved programs, for example by a firewall policy?

    3. The output of these commands (feel free to mask hostnames):

      reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer
      reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL
      set | findstr /i proxy
      python -m pip config list

    About the retries: the 10 of 10 version lookups line is one lookup for each of your 10 installed Pip packages, not 10 rapid retries.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-author-answerpippriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions