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

Installation failure on Windows 7: "CONDA_EXE not found. Reverting to default in ROOTENV" #217

Open
omlins opened this issue Apr 6, 2022 · 16 comments

Comments

@omlins
Copy link

omlins commented Apr 6, 2022

When I try to install Conda.jl on a fresh Julia installation on Windows 7, the following happens:

julia> ENV["PYTHON"]
""

(@v1.7) pkg> status
      Status `C:\Users\somlin\.julia\environments\v1.7\Project.toml` (empty project)

(@v1.7) pkg> add Conda
    Updating registry at `C:\Users\somlin\.julia\registries\General.toml`
   Installed JSON ─────────── v0.21.3
    Updating `C:\Users\somlin\.julia\environments\v1.7\Project.toml`
  [8f4d0f93] + Conda v1.7.0
    Updating `C:\Users\somlin\.julia\environments\v1.7\Manifest.toml`
  [8f4d0f93] + Conda v1.7.0
  [682c06a0] + JSON v0.21.3
  [69de0a69] + Parsers v2.2.4
  [81def892] + VersionParsing v1.3.0
  [0dad84c5] + ArgTools
  [56f22d72] + Artifacts
  [ade2ca70] + Dates
  [f43a241f] + Downloads
  [b27032c2] + LibCURL
  [8f399da3] + Libdl
  [a63ad114] + Mmap
  [ca575930] + NetworkOptions
  [de0858da] + Printf
  [4ec0a83e] + Unicode
  [deac9b47] + LibCURL_jll
  [29816b5a] + LibSSH2_jll
  [c8ffd9c3] + MbedTLS_jll
  [14a3606d] + MozillaCACerts_jll
  [83775a58] + Zlib_jll
    Building Conda  `C:\Users\somlin\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6e47d11ea2776bc5627421d5
9cdcc1296c058071\build.log`
Precompiling project...
  7 dependencies successfully precompiled in 11 seconds

    Building Conda  `C:\Users\somlin\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6e47d11ea2776bc5627421d5
9cdcc1296c058071\build.log`
┌ Info: CONDA_EXE not found. Reverting to default in ROOTENV
│   CONDA_EXE = "C:\\Users\\somlin\\.julia\\conda\\3\\Scripts\\conda.exe"
└   ROOTENV = "C:\\Users\\somlin\\.julia\\conda\\3"

julia>
PS C:\Users\somlin> type .julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6e47d11ea2776bc5627421d59cdcc1296c058
071\build.log
PS C:\Users\somlin> ls .julia\conda\3\
PS C:\Users\somlin> dir .julia\conda\3\
PS C:\Users\somlin> dir .julia\conda\


    Directory: C:\Users\somlin\.julia\conda


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        06.04.2022     16:54            3
-a---        06.04.2022     16:54        187 deps.jl

Then, when trying to install PyCall, it tries to use the executable which is not there:

PS C:\Users\somlin> julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.2 (2022-02-06)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.7) pkg> status
      Status `C:\Users\somlin\.julia\environments\v1.7\Project.toml`
  [8f4d0f93] Conda v1.7.0

(@v1.7) pkg> add PyCAll
    Updating registry at `C:\Users\somlin\.julia\registries\General.toml`
ERROR: The following package names could not be resolved:
 * PyCAll (not found in project, manifest or registry)


(@v1.7) pkg> add PyCall
   Installed MacroTools ─ v0.5.9
    Updating `C:\Users\somlin\.julia\environments\v1.7\Project.toml`
  [438e738f] + PyCall v1.93.1
    Updating `C:\Users\somlin\.julia\environments\v1.7\Manifest.toml`
  [1914dd2f] + MacroTools v0.5.9
  [438e738f] + PyCall v1.93.1
  [2a0f44e3] + Base64
  [37e2e46d] + LinearAlgebra
  [d6f4376e] + Markdown
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [e66e0078] + CompilerSupportLibraries_jll
  [4536629a] + OpenBLAS_jll
    Building PyCall → `C:\Users\somlin\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\1fc929f47d7c151c839c5fc
1375929766fb8edcc\build.log`
ERROR: Error building `PyCall`:
Error loading Python DLL 'C:\Users\somlin\AppData\Local\Temp\_MEI91122\python39.dll'.
LoadLibrary: The specified module could not be found.
Error loading Python DLL 'C:\Users\somlin\AppData\Local\Temp\_MEI70602\python39.dll'.
LoadLibrary: The specified module could not be found.
┌ 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: Downloading miniconda installer ...
[ Info: Installing miniconda ...
[ Info: Running `conda install -y numpy` in root environment
ERROR: LoadError: IOError: could not spawn 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 F
iles\\MATLAB\\R2015a\\bin;C:\\Program Files\\MATLAB\\R2015a\\bin\\win64;C:\\windows\\system32;C:\\windows;C:\\windows\\S
ystem32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\MATLAB\\R2015a\\runtime\\win64;;C:\\Us
ers\\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\\Roa
ming", "PSMODULEPATH=C:\\Users\\somlin\\Documents\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\
v1.0\\Modules\\", "COMMONPROGRAMW6432=C:\\Program Files\\Common Files", "PROGRAMDATA=C:\\ProgramData", "PUBLIC=C:\\Users
\\Public", "USERDOMAIN=GSE28457", "OS=Windows_NT", "PROCESSOR_REVISION=3c03", "TMP=C:\\Users\\somlin\\AppData\\Local\\Te
mp", "COMSPEC=C:\\windows\\system32\\cmd.exe", "ALLUSERSPROFILE=C:\\ProgramData", "COMPUTERNAME=GSE28457", "FP_NO_HOST_C
HECK=NO", "USERNAME=somlin", "WINDOWS_TRACING_FLAGS=3", "CONDARC=C:\\Users\\somlin\\.julia\\conda\\3\\condarc-julia.yml"
, "USERPROFILE=C:\\Users\\somlin", "PROCESSOR_LEVEL=6", "=C:=C:\\Users\\somlin\\.julia\\packages\\PyCall\\7a7w0\\deps",
"PROGRAMW6432=C:\\Program Files", "TEMP=C:\\Users\\somlin\\AppData\\Local\\Temp", "HOMEDRIVE=C:", "PYTHONIOENCODING=UTF-
8", "WINDIR=C:\\windows", "LOCALAPPDATA=C:\\Users\\somlin\\AppData\\Local", "PROCESSOR_IDENTIFIER=Intel64 Family 6 Model
 60 Stepping 3, GenuineIntel", "NUMBER_OF_PROCESSORS=4", "=::=::\\", "WINDOWS_TRACING_LOGFILE=C:\\BVTBin\\Tests\\install
package\\csilogfile.log", "COMMONPROGRAMFILES(X86)=C:\\Program Files (x86)\\Common Files", "COMMONPROGRAMFILES=C:\\Progr
am Files\\Common Files", "PROGRAMFILES(X86)=C:\\Program Files (x86)", "JUNORC_PATH=C:\\JuliaPro-1.3.1-2\\.atom", "PROGRA
MFILES=C:\\Program Files", "LOGONSERVER=\\\\GSE28457", "CONDA_PREFIX=C:\\Users\\somlin\\.julia\\conda\\3", "JULIA_LOAD_P
ATH=@;C:\\Users\\somlin\\AppData\\Local\\Temp\\jl_myyD0M", "SYSTEMDRIVE=C:", "PROCESSOR_ARCHITECTURE=AMD64", "OPENBLAS_M
AIN_FREE=1"]): no such file or directory (ENOENT)
Stacktrace:
  [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
    @ Base .\process.jl:100
  [2] #690
    @ .\process.jl:113 [inlined]
  [3] setup_stdios(f::Base.var"#690#691"{Cmd}, stdios::Vector{Any})
    @ Base .\process.jl:197
  [4] _spawn
    @ .\process.jl:112 [inlined]
  [5] run(::Cmd; wait::Bool)
    @ Base .\process.jl:445
  [6] run
    @ .\process.jl:444 [inlined]
  [7] runconda(args::Cmd, env::String)
    @ Conda C:\Users\somlin\.julia\packages\Conda\x2UxR\src\Conda.jl:128
  [8] add(pkg::String, env::String; channel::String)
    @ Conda C:\Users\somlin\.julia\packages\Conda\x2UxR\src\Conda.jl:222
  [9] add (repeats 2 times)
    @ C:\Users\somlin\.julia\packages\Conda\x2UxR\src\Conda.jl:221 [inlined]
 [10] top-level scope
    @ C:\Users\somlin\.julia\packages\PyCall\7a7w0\deps\build.jl:79
 [11] include(fname::String)
    @ Base.MainInclude .\client.jl:451
 [12] top-level scope
    @ none:5
in expression starting at C:\Users\somlin\.julia\packages\PyCall\7a7w0\deps\build.jl:43
@omlins
Copy link
Author

omlins commented Apr 6, 2022

@stevengj : would you have a workaround for this? I have seen that you had workarounds for similar issues in the past... :)
(I don't know my way at all around the Windows shell, etc, which makes it very difficult for me to analyse what is going on)
Any help is much appreciated as Conda.jl is a key dependency in a recent package I am developing:
https://github.com/omlins/JustSayIt.jl/

@stevengj
Copy link
Member

stevengj commented Apr 6, 2022

Does C:\Users\somlin\.julia\conda\3\Scripts\conda.exe exist? Or is there a conda.exe in some other subdirectory of C:\Users\somlin\.julia\conda\3\Scripts?

Maybe they moved where they put the conda.exe file in recent versions?

@stevengj
Copy link
Member

stevengj commented Apr 6, 2022

You might want to delete abspath(first(DEPOT_PATH), "conda", "deps.jl") to remove the results of any failed previous installation attempts before trying to re-build.

@omlins
Copy link
Author

omlins commented Apr 6, 2022

@stevengj : thanks a lot for your reply!

The content of .\conda\3 is:

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

@omlins
Copy link
Author

omlins commented Apr 6, 2022

@stevengj : you can see that there is _conda.exe (with an _!). Would that be what is supposed to be conda.exe?
The folder C:\Users\somlin\.julia\conda\3\Scripts does not exist.

@omlins
Copy link
Author

omlins commented Apr 6, 2022

You might want to delete abspath(first(DEPOT_PATH), "conda", "deps.jl") to remove the results of any failed previous installation attempts before trying to re-build.

Before every try, I deleted the whole C:\Users\somlin\.julia

By the way the DEPOT_PATH is:

julia> DEPOT_PATH
3-element Vector{String}:
 "C:\\Users\\somlin\\.julia"
 "C:\\Users\\somlin\\AppData\\Local\\Programs\\Julia-1.7.2\\local\\share\\julia"
 "C:\\Users\\somlin\\AppData\\Local\\Programs\\Julia-1.7.2\\share\\julia"

@omlins
Copy link
Author

omlins commented Apr 6, 2022

So as a test, I created the folder /C:\Users\somlin\.julia\conda\3\Script and copied _conda.exe inside and renamed it to conda.exe. Then, the result is this:

    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`:

@omlins
Copy link
Author

omlins commented Apr 6, 2022

@stevengj : with PYTHON="" set, where is it supposed to get the Python library from when things work as they should?

@omlins
Copy link
Author

omlins commented Apr 6, 2022

I run C:\Users\somlin\.julia\conda\3\installer.exe, which turns out to be the miniconda installer. The installation completed, however there was an error "creating some menu entries", which I ignored. Then, the installation details show a problem with the Python library as in the installation triggered from Julia:
image

The full Python library error message that appears in the screenshot is:

Error loading Python DLL 'C:\Users\somlin\AppData\Local\Temp\_MEI47402\python39.dll'.
LoadLibrary: The specified module could not be found.
Error loading Python DLL 'C:\Users\somlin\AppData\Local\Temp\_MEI179482\python39.dll'.
LoadLibrary: The specified module could not be found.

The result is what seems to be the same incomplete installation as when installing from within Julia:

PS C:\ProgramData\Miniconda3> ls


    Directory: C:\ProgramData\Miniconda3


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        06.04.2022     19:52            conda-meta
d----        06.04.2022     19:52            Lib
d----        06.04.2022     19:52            pkgs
-a---        06.04.2022     19:52     319098 Uninstall-Miniconda3.exe
-a---        27.01.2022     21:10   19894133 _conda.exe

@omlins
Copy link
Author

omlins commented Apr 6, 2022

It seems to me that the installer automatically selected by Conda.jl does not work for Windows 7.
On the website of MiniConda it says (https://docs.conda.io/en/latest/miniconda.html):

Operating system: Windows 8 or newer, 64-bit macOS 10.13+, or Linux, including Ubuntu, RedHat, CentOS 7+, and others.
If your operating system is older than what is currently supported, you can find older versions of the Miniconda installers in our [archive](https://repo.anaconda.com/miniconda/) that might work for you.

I will try with an installer from the archive.

@omlins
Copy link
Author

omlins commented Apr 6, 2022

It looks like I could successfully install MiniConda3 - Python 3.7 into C:\Users\somlin\.julia\conda\3:
image

As a result, rebuilding PyCall seems to have worked correctly:

(@v1.7) pkg> status
      Status `C:\Users\somlin\.julia\environments\v1.7\Project.toml`
  [8f4d0f93] Conda v1.5.2
  [438e738f] PyCall v1.93.1

    Building Conda ─ `C:\Users\somlin\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\299304989a5e6473d985212
    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
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\somlin\.julia\conda\3

  added / updated specs:
    - numpy


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    blas-1.0                   |              mkl           6 KB
    ca-certificates-2022.3.29  |       haa95532_0         122 KB
    certifi-2021.10.8          |   py37haa95532_2         152 KB
    conda-4.12.0               |   py37haa95532_0        14.4 MB
    intel-openmp-2021.4.0      |    haa95532_3556         2.2 MB
    mkl-2021.4.0               |     haa95532_640       114.9 MB
    mkl-service-2.4.0          |   py37h2bbff1b_0          49 KB
    mkl_fft-1.3.1              |   py37h277e83a_0         135 KB
    mkl_random-1.2.2           |   py37hf11a4ad_0         216 KB
    numpy-1.21.5               |   py37ha4e8547_0           9 KB
    numpy-base-1.21.5          |   py37hc2deb75_0         4.3 MB
    openssl-1.1.1n             |       h2bbff1b_0         4.8 MB
    ------------------------------------------------------------
                                           Total:       141.3 MB

The following NEW packages will be INSTALLED:

  blas               pkgs/main/win-64::blas-1.0-mkl
  intel-openmp       pkgs/main/win-64::intel-openmp-2021.4.0-haa95532_3556
  mkl                pkgs/main/win-64::mkl-2021.4.0-haa95532_640
  mkl-service        pkgs/main/win-64::mkl-service-2.4.0-py37h2bbff1b_0
  mkl_fft            pkgs/main/win-64::mkl_fft-1.3.1-py37h277e83a_0
  mkl_random         pkgs/main/win-64::mkl_random-1.2.2-py37hf11a4ad_0
  numpy              pkgs/main/win-64::numpy-1.21.5-py37ha4e8547_0
  numpy-base         pkgs/main/win-64::numpy-base-1.21.5-py37hc2deb75_0

The following packages will be UPDATED:

  ca-certificates                       2021.7.5-haa95532_1 --> 2022.3.29-haa95532_0
  certifi                          2021.5.30-py37haa95532_0 --> 2021.10.8-py37haa95532_2
  conda                               4.10.3-py37haa95532_0 --> 4.12.0-py37haa95532_0
  openssl                                 1.1.1k-h2bbff1b_0 --> 1.1.1n-h2bbff1b_0



Downloading and Extracting Packages
mkl_fft-1.3.1        | 135 KB    | ############################################################################ | 100%
mkl-2021.4.0         | 114.9 MB  | ############################################################################ | 100%
blas-1.0             | 6 KB      | ############################################################################ | 100%
mkl-service-2.4.0    | 49 KB     | ############################################################################ | 100%
numpy-1.21.5         | 9 KB      | ############################################################################ | 100%
conda-4.12.0         | 14.4 MB   | ############################################################################ | 100%
intel-openmp-2021.4. | 2.2 MB    | ############################################################################ | 100%
certifi-2021.10.8    | 152 KB    | ############################################################################ | 100%
numpy-base-1.21.5    | 4.3 MB    | ############################################################################ | 100%
ca-certificates-2022 | 122 KB    | ############################################################################ | 100%
openssl-1.1.1n       | 4.8 MB    | ############################################################################ | 100%
mkl_random-1.2.2     | 216 KB    | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
[ Info: PyCall is using C:\Users\somlin\.julia\conda\3\python.exe (Python 3.7.10) at C:\Users\somlin\.julia\conda\3\pyth
on.exe, libpython = C:\Users\somlin\.julia\conda\3\python37.dll
[ Info: C:\Users\somlin\.julia\packages\PyCall\7a7w0\deps\deps.jl has been updated
[ Info: C:\Users\somlin\.julia\prefs\PyCall has been updated

(@v1.7) pkg>
julia> using Conda

julia> using PyCall
[ Info: Precompiling PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0]

@omlins
Copy link
Author

omlins commented Apr 6, 2022

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:
Miniconda3-py37_4.10.3-Windows-x86_64.exe from https://repo.anaconda.com/miniconda/

Note: I tried only this one, which is the oldest of MiniConda 3, and two with Python 3.9, which did not work.

@omlins
Copy link
Author

omlins commented Apr 6, 2022

@stevengj : I confirm that Conda.jl works for me as it should with this manual installation of MiniConda:

julia> using JustSayIt
[ Info: Running `conda config --set pip_interop_enabled true --file 'C:\Users\somlin\.julia\conda\3\condarc-julia.yml'`
in root environment
[ Info: Running `pip install pynput` in root environment
Collecting pynput
  Downloading pynput-1.7.6-py2.py3-none-any.whl (89 kB)
     |████████████████████████████████| 89 kB 1.1 MB/s
Requirement already satisfied: six in c:\users\somlin\.julia\conda\3\lib\site-packages (from pynput) (1.16.0)
Installing collected packages: pynput
Successfully installed pynput-1.7.6
[ Info: Running `conda config --set pip_interop_enabled true --file 'C:\Users\somlin\.julia\conda\3\condarc-julia.yml'`
in root environment
[ Info: Running `pip install vosk` in root environment
Collecting vosk
  Downloading vosk-0.3.32-py3-none-win_amd64.whl (11.9 MB)
     |████████████████████████████████| 11.9 MB 9.3 kB/s
Requirement already satisfied: cffi>=1.0 in c:\users\somlin\.julia\conda\3\lib\site-packages (from vosk) (1.14.6)
Requirement already satisfied: pycparser in c:\users\somlin\.julia\conda\3\lib\site-packages (from cffi>=1.0->vosk) (2.2
0)
Installing collected packages: vosk
Successfully installed vosk-0.3.32
[ Info: Running `conda config --set pip_interop_enabled true --file 'C:\Users\somlin\.julia\conda\3\condarc-julia.yml'`
in root environment
[ Info: Running `pip install sounddevice` in root environment
Collecting sounddevice
  Downloading sounddevice-0.4.4-py3-none-win_amd64.whl (195 kB)
     |████████████████████████████████| 195 kB 1.1 MB/s
Requirement already satisfied: CFFI>=1.0 in c:\users\somlin\.julia\conda\3\lib\site-packages (from sounddevice) (1.14.6)

Requirement already satisfied: pycparser in c:\users\somlin\.julia\conda\3\lib\site-packages (from CFFI>=1.0->sounddevic
e) (2.20)
Installing collected packages: sounddevice
Successfully installed sounddevice-0.4.4

I guess that is all from my side.

My conclusion was in the previous comment:

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: Miniconda3-py37_4.10.3-Windows-x86_64.exe from https://repo.anaconda.com/miniconda/

Note: I tried only this one, which is the oldest of MiniConda 3, and two with Python 3.9, which did not work.

@stevengj
Copy link
Member

stevengj commented Apr 7, 2022

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.

@omlins
Copy link
Author

omlins commented Apr 7, 2022

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.

@stevengj
Copy link
Member

stevengj commented Apr 7, 2022

A PR giving better error messages would be great.

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