cli icon indicating copy to clipboard operation
cli copied to clipboard

Can't install httpie with choco when Python already installed on Windows.

Open drforse opened this issue 9 months ago • 1 comments

Checklist

  • [x] I've searched for similar issues.
  • [x] I'm using the latest version of HTTPie.

Minimal reproduction code and steps

  1. Install Python 3.13.2 from python.org
  2. Run choco install httpie

Current result

... Installing 64-bit python313... ERROR: Running ["C:\ProgramData\chocolatey\lib\python313\tools\python-3.13.2-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python313"] was not successful. Exit code was '1601'. See log for possible error messages. The install of python313 was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\python313\tools\chocolateyInstall.ps1'. See log for details. Failed to install python3 because a previous dependency failed. Failed to install httpie because a previous dependency failed.

Chocolatey installed 0/3 packages. 3 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • httpie - Failed to install httpie because a previous dependency failed.
  • python3 - Failed to install python3 because a previous dependency failed.
  • python313 (exited 1601) - Error while running 'C:\ProgramData\chocolatey\lib\python313\tools\chocolateyInstall.ps1'. See log for details.

Expected result

Successful installtion


Debug output

Too little too late, already fixed the issue for myself by uninstalling python first.

Additional information, screenshots, or code examples

Gets fixed with merely uninstalling python 3.12.2 first, but it is still a bug, and I am afraid of potential problems in my other workflows now because of uninstalling python and letting your installation install python... SO in my opinion it's a huge problem really.

drforse avatar Mar 18 '25 09:03 drforse

Hey! I reproduced this issue on Windows 11 and would love to work on it. Can I submit a fix suggestion?

guru1234cud avatar Apr 10 '25 08:04 guru1234cud