Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstalling and reinstalling Miniforge breaks all shells #164

Open
filipporemonato opened this issue Jun 10, 2021 · 5 comments
Open

Uninstalling and reinstalling Miniforge breaks all shells #164

filipporemonato opened this issue Jun 10, 2021 · 5 comments
Labels

Comments

@filipporemonato
Copy link

filipporemonato commented Jun 10, 2021

Issue:

After transitioning from Anaconda to Miniforge, I had a few issues with VSCode and imports were broken. I decided to start from scratch again, and uninstalled both VSCode and Miniforge, cleaned up all files, and installed Miniforge again.
After installing I noticed a "Miniforge Prompt" in the start menu; i tried launching it, but nothing happened.
I would have expected a command prompt to open and have the base environment activated.

New Bitmap Image

After that, I noticed that it seems ALL shells have been broken.
Windows Command Prompt has the same problem as Miniforge Prompt, namely it does not open at all.
Windows PowerShell opens, but throws an error at me saying "running scripts is disabled on this system".

image

I am at loss.

@filipporemonato filipporemonato changed the title Miniforge Prompt doesn't do anything Uninstalling and reinstalling Miniforge breaks all shells Jun 10, 2021
@jamesmyatt
Copy link

jamesmyatt commented Jun 28, 2021

Try running "conda init" again.

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Jul 5, 2021

Was this a bug with an older version of miniforge? This seems like a missing if statement in the ps hook.

@filipporemonato
Copy link
Author

filipporemonato commented Jul 16, 2021

@hmaarrfk Sorry for the late reply, I was away. No I used the latest version available from this github page under Miniforge3 Installers, the one that ships with Python 3.9.

By the way, I was able to restore functionality of the windows command prompt following this stackoverflow question: https://stackoverflow.com/questions/66335300/cmd-crashes-with-exit-code-1-after-uninstalling-anaconda

However, I am still having lots of issues working with miniforge (see this issue); after many days having my development blocked from this I have to switch to something else, most likely a clean, standalone python install.

@Mincol
Copy link

Mincol commented Apr 8, 2022

This still can be reproduced by me.

Steps to reproduce:

call curl --location https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe --time-cond "Miniforge3-Windows-x86_64.exe" --output "Miniforge3-Windows-x86_64.exe"

set "_miniforgePath=%UserProfile%\Miniforge3"

call start /wait "Install Miniforge3" Miniforge3-Windows-x86_64.exe /InstallationType=JustMe /AddToPath=1 /RegisterPython=0 /S /D=%_miniforgePath%

call start /wait "Uninstall Miniforge3" %_miniforgePath%\Uninstall-Miniforge3.exe /S

And fix it by

C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f

@Mincol
Copy link

Mincol commented Apr 8, 2022

Part of the problem might be that according to my observations Uninstall-Miniforge3.exe is deleting content even after exe returned.

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

No branches or pull requests

4 participants