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

Miniconda Installer (Windows) - handle missing/corrupted Anaconda installation #2826

Closed
obarak opened this issue Dec 12, 2017 · 1 comment
Closed

Comments

@obarak
Copy link

obarak commented Dec 12, 2017

Orange version

3.8-Win64 (Installer file name is Orange3-3.8.0-Miniconda-x86_64.exe)

Actual behavior:
  1. I've downloaded and ran the Miniconda installer.
  2. Installer detected that I already have Anaconda installed. Installation continued and completed with no error messages. Only that...
  3. ...Orange wouldn't start (nothing happens when clicking on the shortcut).
  4. Making a long story short - turns out I had two Anacondas installed on my machine:
    • An old one that was completely removed from everywhere except for the Windows Registry (there were no physical files on disk). That was the one Orange installer tried to use.
    • A new one, working perfectly, but undetected by the installer.
  5. Turns out that corrupted Anaconda installations on Windows are actually quite common, due to Anaconda's broken uninstaller and backward incompatibility issues.
  6. Examining the Orange installer log revealed the following lines:
Creating a conda env in "C:\Users\obarak\AppData\Local\Orange"
The system cannot find the path specified.

Last line is an error but, again, it didn't cause any error message to appear.
7. Removing the orphaned Anaconda registry key and then re-installing solved the issue.

Expected behavior:

Ideally, if the installer can't find the conda.exe file it needs for installation, it will try other Anacondas available on the machine (if exist), and finally revert to installing Miniconda from scratch.
Less ideal, but still good - show an error to the user and cancel installation.

@astaric
Copy link
Member

astaric commented Jan 5, 2018

The installers were modified in #2827 to do a basic validation of the conda environment (they check for presence of python and conda executable). If they are not found, a new miniconda installation is forced (not ideal, but should avoid the error)

The new installers will be built when 3.9 is released (probably later this month).

@astaric astaric closed this as completed Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants