ScoopInstaller / Extras

📦 The Extras bucket for Scoop.
https://scoop.sh
The Unlicense
1.8k stars 1.36k forks source link

anaconda3@2019.07 update error #2572

Closed edisoncks closed 5 years ago

edisoncks commented 5 years ago

Upgrading anaconda3 from 2019.03 to 2019.07 removes 2019.03 without prompting and does not preserve existing environments.

Checking hash of Anaconda3-2019.07-Windows-x86_64.exe ... ok.
Uninstalling 'anaconda3' (2019.03)
Running uninstaller... done.
Removing shim for 'python'.
Removing shim for 'pythonw'.
Removing shim for 'python3'.
Unlinking ~\scoop\apps\anaconda3\current
Installing 'anaconda3' (2019.07) [64bit]
Loading Anaconda3-2019.07-Windows-x86_64.exe from cache.
Running pre-install script...
Installing Anaconda 3. This can take up to 30 minutes on an HDD.
Running installer... done.
Linking ~\scoop\apps\anaconda3\current => ~\scoop\apps\anaconda3\2019.07
The system cannot find the path specified.
Creating shim for 'python'.
Creating shim for 'pythonw'.
Creating shim for 'python3'.
Persisting envs
'anaconda3' (2019.07) was installed successfully!
rasa commented 5 years ago

It persists the envs directory. Are there other directories that need to be persisted?

edisoncks commented 5 years ago

I have installed anaconda since before the persist feature exists. What I did when upgrading previously was to copy/move env directory from old version to new version manually. However when upgrading to 2019.07, scoop just deleted the old version without prompting, hence my env directory is not preserved.

On Tue, 6 Aug 2019, 4:18 am Ross Smith II, notifications@github.com wrote:

It persists the envs https://github.com/lukesampson/scoop-extras/blob/16994326a31d071262c28c61ad518db622f3b330/bucket/anaconda3.json#L32 directory. Are there other directories that need to be persisted?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lukesampson/scoop-extras/issues/2572?email_source=notifications&email_token=ADA625AJB7JYHK6CB3MSKKLQDCDKRA5CNFSM4IJHF2AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3S6NXY#issuecomment-518383327, or mute the thread https://github.com/notifications/unsubscribe-auth/ADA625BOYKBF5X4FWJFDDVDQDCDKRANCNFSM4IJHF2AA .

rasa commented 5 years ago

Yuk. Sorry you lost data. If you have a backup, you can copy it into the new envs directory, and you should be OK on future upgrades.

edisoncks commented 5 years ago

It's ok. By the way, is it the intended behavior to delete older version when updating to newer version? This doesn't seem to happen when I update other applications.

On Tue, Aug 6, 2019 at 9:41 AM Ross Smith II notifications@github.com wrote:

Yuk. Sorry you lost data. If you have a backup, you can copy it into the new envs directory, and you should be OK on future upgrades.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lukesampson/scoop-extras/issues/2572?email_source=notifications&email_token=ADA625GMEGGJJGZE4YWZPXTQDDJENA5CNFSM4IJHF2AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3TRVGI#issuecomment-518462105, or mute the thread https://github.com/notifications/unsubscribe-auth/ADA625E7SSEGYDQO2EKFX23QDDJENANCNFSM4IJHF2AA .

niheaven commented 5 years ago

No, it's not usual way to delete previous version. This only be done after you run scoop cleanup. Updating only redirects current link.

rasa commented 5 years ago

@edisoncks Can you check if the directory C:\users\you\scoop\apps\anaconda3\2019.03\envs exists?

edisoncks commented 5 years ago

@rasa Nope, the entire 2019.03 directory is gone.

rasa commented 5 years ago

That’s because the uninstall function using their installer here.

What’s weird is the 2019.07 update didn’t change anything that should cause your issue.

The persist and uninstaller were added here in 2018.12.

@edisoncks Can you check if the directory C:\users\you\scoop\persist\anaconda3\envs exists?

edisoncks commented 5 years ago

@rasa The ~\scoop\persist\anaconda3\env directory exists. The envs that I have recreated are located in this directory.