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

[Bug]: install miniconda3 4.12.0 failed #10826

Closed
3 tasks done
yvvw opened this issue Mar 22, 2023 · 24 comments · Fixed by #10830
Closed
3 tasks done

[Bug]: install miniconda3 4.12.0 failed #10826

yvvw opened this issue Mar 22, 2023 · 24 comments · Fixed by #10830
Labels

Comments

@yvvw
Copy link

yvvw commented Mar 22, 2023

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

miniconda3

Expected/Current Behaviour

install success

Steps to Reproduce

PS> scoop install extras/miniconda3
Installing 'miniconda3' (23.1.0-1) [64bit] from extras bucket
Loading Miniconda3-py310_23.1.0-1-Windows-x86_64.exe from cache.
Checking hash of Miniconda3-py310_23.1.0-1-Windows-x86_64.exe ... ok.
Running installer script...
Linking D:\Program Files\Scoop\apps\miniconda3\current => D:\Program Files\Scoop\apps\miniconda3\23.1.0-1
Creating shim for 'python'.
Creating shim for 'pythonw'.
Can't shim 'pythonw.exe': File doesn't exist.

Possible Solution

idk

Scoop and Buckets Version

PS> scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'dorado' bucket:
cc333026 (HEAD -> master, origin/master, origin/HEAD) openai-translator: Update to version 0.0.32

'extras' bucket:
0aa15b045 (HEAD -> master, origin/master, origin/HEAD) onecommander: Update to version 3.37.1.0

'java' bucket:
9d5f0e45 (HEAD -> master, origin/master, origin/HEAD) zulufx-jre: Update to version 20.28.85

'main' bucket:
272f880e4 (HEAD -> master, origin/master, origin/HEAD) trid: Update to version 2.24-23.03.21

Scoop Config

PS> scoop config

last_update           : 2023/3/22 13:05:59
aria2-warning-enabled : False
aria2-enabled         : True
scoop_repo            : https://github.com/ScoopInstaller/Scoop
scoop_branch          : master

PowerShell Version

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

@yvvw yvvw added the bug label Mar 22, 2023
@niheaven
Copy link
Member

Could not reproduce. What's under you apps\miniconda3\current\ now?

@yvvw
Copy link
Author

yvvw commented Mar 22, 2023

Thank you for your response. The previous version was working fine, but after updating, this error occurred.

image

image

image

image

image

@niheaven
Copy link
Member

image
image

It works for me...

@yvvw
Copy link
Author

yvvw commented Mar 22, 2023

Is there any way to fix installation failure caused by spaces in the installation path?
image
image

@ukiyocode
Copy link

Having same issue while installing anaconda3.

scoop install anaconda3
Installing 'anaconda3' (2023.03) [64bit] from extras bucket
Anaconda3-2023.03-Windows-x86_64.exe (786.0 MB) [===========================================================================================] 100%
Checking hash of Anaconda3-2023.03-Windows-x86_64.exe ... ok.
Running installer script...
Installing Anaconda 3. This can take up to 30 minutes on an HDD.
Linking ~\scoop\apps\anaconda3\current => ~\scoop\apps\anaconda3\2023.03
Creating shim for 'python'.
Creating shim for 'pythonw'.
Can't shim 'pythonw.exe': File doesn't exist.

scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
cfd1f85 (HEAD -> master, origin/master, origin/HEAD) signal: Update to version 6.11.0

'main' bucket:
02c87513c (HEAD -> master, origin/master, origin/HEAD) x265: Update to version 3.5+96-c07d076

'nonportable' bucket:
d716697 (HEAD -> master, origin/master, origin/HEAD) spotx-np: Update to version 1.7-20230322-019a2c

'sysinternals' bucket:
42eb76d (HEAD -> main, origin/main, origin/HEAD) sysinternals-suite: Update to version 2023.03.09

scoop config
last_update scoop_branch scoop_repo


23-Mar-23 3:49:03 master https://github.com/ScoopInstaller/Scoop

$PSVersionTable

Name Value


PSVersion 7.3.3
PSEdition Core
GitCommitId 7.3.3
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

@silicer
Copy link
Contributor

silicer commented Mar 23, 2023

Having same issue while installing anaconda3.

Same issue here.

@niheaven
Copy link
Member

Ping @Lutra-Fs

@Lutra-Fs
Copy link
Contributor

I’ll have a look. However I cannot reproduce in my machine. If anyone could have a screenshot about scoop/apps/miniconda? Is there a setup.exe?

@Lutra-Fs
Copy link
Contributor

@niheaven can you merge the old version to versions bucket? There is a PR on that

@Lutra-Fs
Copy link
Contributor

Lutra-Fs commented Mar 23, 2023

Having same issue while installing anaconda3.

Same issue here.

Is there a space in your scoop path?
@silicer @ackshually

@niheaven
Copy link
Member

Setup is there, now it seems like spaces.

@ukiyocode
Copy link

no spaces here

@silicer
Copy link
Contributor

silicer commented Mar 23, 2023

Having same issue while installing anaconda3.

Same issue here.

Is there a space in your scoop path? @silicer @ackshually

no

I’ll have a look. However I cannot reproduce in my machine. If anyone could have a screenshot about scoop/apps/miniconda? Is there a setup.exe?

Installing anaconda3 here. There is only a single setup.exe in scoop\apps\anaconda3\current.

@ukiyocode
Copy link

same here

@Lutra-Fs
Copy link
Contributor

Lutra-Fs commented Mar 23, 2023

Hi @silicer @ackshually, is your issue related to anaconda3? Are you meeting issue with miniconda?

@Lutra-Fs
Copy link
Contributor

Anaconda3 needs to be update as well. I just missed with that in PR. It is an expected behavior now.

@ukiyocode
Copy link

for me it's anaconda3

@Lutra-Fs
Copy link
Contributor

Pls raise a new issue regarding on anaconda3

@Lutra-Fs
Copy link
Contributor

Lutra-Fs commented Mar 23, 2023

Thank you for your response. The previous version was working fine, but after updating, this error occurred.

image image image image image

@yvvw could you try using a elevated shell? and try with no space installation path

@yvvw
Copy link
Author

yvvw commented Mar 23, 2023

@Lutra-Fs Lu I copied the installation command and modified the \D parameter to a path without spaces, and I was able to install it successfully.

All installations failed on git shell, pwsh, powershell7, and cmd.

image

@Lutra-Fs
Copy link
Contributor

@Lutra-Fs Lu I copied the installation command and modified the \D parameter to a path without spaces, and I was able to install it successfully.

All installations failed on git shell, pwsh, powershell7, and cmd.

image

I am able to reproduce this issue with scoop whose installation path includes space.

@Lutra-Fs
Copy link
Contributor

Lutra-Fs commented Mar 23, 2023

@Lutra-Fs Lu I copied the installation command and modified the \D parameter to a path without spaces, and I was able to install it successfully.

All installations failed on git shell, pwsh, powershell7, and cmd.

image

Hi @yvvw , after some investigation, there is an extra confirmation process when there is a space in your installation path, which cannot be bypassed in CLI.
image

@Lutra-Fs
Copy link
Contributor

Lutra-Fs commented Mar 23, 2023

Maybe this is an intended behaviour, see conda/constructor#463.
The error code enhancement is in conda/constructor#649

@Lutra-Fs
Copy link
Contributor

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

Successfully merging a pull request may close this issue.

5 participants