conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
6.48k stars 330 forks source link

Install 24.7.1(x64) on windows10/11 encounter: Failed to run pre_install #641

Closed zhaozhaofox closed 1 month ago

zhaozhaofox commented 2 months ago

Solution to issue cannot be found in the documentation.

Issue

Install 24.7.1(x64) on windows10/11 encounter: Failed to run pre_install Snipaste_2024-09-10_09-08-26

Installed packages

install error

Environment info

24.7.1
hmaarrfk commented 2 months ago

Hmm i suspect it has to do with: https://github.com/conda-forge/miniforge/blob/main/Miniforge3/mambaforge_deprecation.bat

I suggest you use Miniforge3.exe while we resolve this issue.

I might delay 24.7.1-1 since that one has the brownouts and my intention is to have 1 (working) verison with warnings without brownouts.

jaimergp commented 2 months ago

Can you click on "Ignore" and right click on the text details under the progress bar, choose "Copy to clipboard" and paste the result here? I see some syntax errors behind the alert 🤔

hmaarrfk commented 1 month ago

IMG_0524

hmaarrfk commented 1 month ago

The nice thing is that you can "press ignore" and it will work....

marcoesters commented 1 month ago

The problem is that the else part of the statement is in a new line. It must be in the same line as the closing parenthesis.

You will also run into the issue that msg is not available on all Windows versions (I think home editions don't have it).

hmaarrfk commented 1 month ago

hmm thank you for the notes we can likely fix the else part. not sure about the msg command.

Because you can "ignore" it, i'm somewhat even tempted to "ignore this" as a fading problem..... but isuruf reminded me that I shouldn't be so quick to ignore problems... though I really don't know what to do.....

jaimergp commented 1 month ago

I can sketch a solution, sorry about the breakage. We don't really need to use msg.

jaimergp commented 1 month ago

Added https://github.com/conda-forge/miniforge/pull/647

hmaarrfk commented 1 month ago

Thank you all. A new release of Mambaforge is coming.

We are in the process of releasing this, however, Mambaforge now being deprecated we are hoping this isn't going to be an issue for many users.