-
Notifications
You must be signed in to change notification settings - Fork 57
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
Installation failure on Windows 7: "CONDA_EXE not found. Reverting to default in ROOTENV" #217
Comments
@stevengj : would you have a workaround for this? I have seen that you had workarounds for similar issues in the past... :) |
Does Maybe they moved where they put the |
You might want to delete |
@stevengj : thanks a lot for your reply! The content of PS C:\Users\somlin\.julia> ls .\conda\3
Directory: C:\Users\somlin\.julia\conda\3
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 06.04.2022 17:03 conda-meta
d---- 06.04.2022 17:03 Lib
d---- 06.04.2022 17:03 pkgs
-a--- 06.04.2022 17:03 25 .condarc
-a--- 06.04.2022 17:03 0 .nonadmin
-a--- 06.04.2022 17:03 25 condarc-julia.yml
-a--- 06.04.2022 17:03 65176680 installer.exe
-a--- 06.04.2022 17:03 301616 Uninstall-Miniforge3.exe
-a--- 22.03.2022 23:26 15802353 _conda.exe |
@stevengj : you can see that there is |
Before every try, I deleted the whole By the way the DEPOT_PATH is:
|
So as a test, I created the folder Building PyCall → `C:\Users\somlin\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\1fc929f47d7c151c839c5fc
1375929766fb8edcc\build.log` ] 0/2
┌ Info: Using the Python distribution in the Conda package by default.
└ To use a different Python version, set ENV["PYTHON"]="pythoncommand" and re-run Pkg.build("PyCall").
[ Info: Running `conda install -y numpy` in root environment
Error loading Python DLL 'C:\Users\somlin\AppData\Local\Temp\_MEI75762\python39.dll'.
LoadLibrary: The specified module could not be found.
ERROR: LoadError: failed process: Process(setenv(`'C:\Users\somlin\.julia\conda\3\Scripts\conda.exe' install -y numpy`,[
"PATH=C:\\Users\\somlin\\.julia\\conda\\3\\Library\\bin;%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\;C:\\Program Fi
les\\MATLAB\\R2015a\\bin;C:\\Program Files\\MATLAB\\R2015a\\bin\\win64;C:\\windows\\system32;C:\\windows;C:\\windows\\Sy
stem32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\MATLAB\\R2015a\\runtime\\win64;;C:\\Use
rs\\somlin\\AppData\\Local\\Programs\\Julia-1.7.2\\bin", "HOMEPATH=\\Users\\somlin", "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.
VBE;.JS;.JSE;.WSF;.WSH;.MSC", "SESSIONNAME=Console", "SYSTEMROOT=C:\\windows", "APPDATA=C:\\Users\\somlin\\AppData\\Roam
ing", "PSMODULEPATH=C:\\Users\\somlin\\Documents\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v
1.0\\Modules\\", "COMMONPROGRAMW6432=C:\\Program Files\\Common Files", "PROGRAMDATA=C:\\ProgramData", "PUBLIC=C:\\Users\
\Public" . "COMMONPROGRAMFILES=C:\\Program Files\\Common Files", "PROGRAMFILES(X86)=C:\\Program Files (x86)", "JUNORC_
PATH=C:\\JuliaPro-1.3.1-2\\.atom", "PROGRAMFILES=C:\\Program Files", "LOGONSERVER=\\\\GSE28457", "CONDA_PREFIX=C:\\Users
\\somlin\\.julia\\conda\\3", "JULIA_LOAD_PATH=@;C:\\Users\\somlin\\AppData\\Local\\Temp\\jl_ZPgLuv", "SYSTEMDRIVE=C:", "
PROCESSOR_ARCHITECTURE=AMD64", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(4294967295)) [4294967295]
Stacktrace:
[1] pipeline_error
@ .\process.jl:531 [inlined]
[2] run(::Cmd; wait::Bool)
@ Base .\process.jl:446
[3] run
@ .\process.jl:444 [inlined]
[4] runconda(args::Cmd, env::String)
@ Conda C:\Users\somlin\.julia\packages\Conda\x2UxR\src\Conda.jl:128
[5] add(pkg::String, env::String; channel::String)
@ Conda C:\Users\somlin\.julia\packages\Conda\x2UxR\src\Conda.jl:222
[6] add (repeats 2 times)
@ C:\Users\somlin\.julia\packages\Conda\x2UxR\src\Conda.jl:221 [inlined]
[7] top-level scope
@ C:\Users\somlin\.julia\packages\PyCall\7a7w0\deps\build.jl:79
[8] include(fname::String)
@ Base.MainInclude .\client.jl:451
[9] top-level scope
@ none:5
in expression starting at C:\Users\somlin\.julia\packages\PyCall\7a7w0\deps\build.jl:43
ERROR: Error building `PyCall`: |
@stevengj : with |
It seems to me that the installer automatically selected by Conda.jl does not work for Windows 7.
I will try with an installer from the archive. |
I guess that means that Conda.jl should therefore not use the newest installer for Windows 7 and before. What worked for me with Windows 7 was: Note: I tried only this one, which is the oldest of MiniConda 3, and two with Python 3.9, which did not work. |
@stevengj : I confirm that Conda.jl works for me as it should with this manual installation of MiniConda:
I guess that is all from my side. My conclusion was in the previous comment:
|
Windows 7 officially reached its "end of life" 2 years ago according to Microsoft, so I guess it's not surprising that Miniconda apparently stopped supporting it. |
Sure. One more thought: for this and other cases, it might be good to have a sanity check of the miniconda installation, checking that the expected files are there, as e.g. 'conda.exe'; then, if the installation was broken, give an appropriate error message. |
A PR giving better error messages would be great. |
When I try to install Conda.jl on a fresh Julia installation on Windows 7, the following happens:
Then, when trying to install PyCall, it tries to use the executable which is not there:
The text was updated successfully, but these errors were encountered: