Problems with installation and configuration of `PythonCall.jl`

  1. I added PythonCall.jl and CondaPkg.jl in my Julia REPL’s pkg mode.
  2. I already have Miniconda in my system (Win10) and I want PythonCall and CondaPkg to use my preinstalled Miniconda instead of downloading a new one. So following PythonCall.jl’s doc, I ran this code in the Julia REPL:
ENV["JULIA_CONDAPKG_BACKEND"] = "System"
ENV["JULIA_CONDAPKG_EXE"] = "C:/ProgramData/Miniconda3/_conda.exe"  # this is my Miniconda's path
  1. Then, in the Julia REPL, I typed using PythonCalland received the following information, and it seemed to be stuck on the last line:
the returned information
julia> using PythonCall
    CondaPkg Found dependencies: C:\Users\My Name\.julia\packages\PythonCall\1f5yE\CondaPkg.toml
    CondaPkg Resolving changes
             + python
    CondaPkg Creating environment
             │ C:\Users\My Name\.julia\artifacts\444cdd4c5cbacc31e39255b42de7eb3458f5ebd1\bin\micromamba.exe
             │ -r C:\Users\My Name\.julia\scratchspaces\0b3b1443-0f03-428d-bdfb-f27f9c1191ea\root
             │ create
             │ -y
             │ -p C:\Users\My Name\.julia\environments\v1.9\.CondaPkg\env
             │ --override-channels
             │ --no-channel-priority
             │ python[version='>=3.7,<4',channel='conda-forge',build='*cpython*']
             └ -c conda-forge

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ / 
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/  
      /_/

conda-forge/win-64                                  20.8MB @   1.8MB/s 40.2s
conda-forge/noarch                                  12.7MB @ 973.2kB/s 40.9s

Transaction

  Prefix: C:\Users\My Name\.julia\environments\v1.9\.CondaPkg\env

  Updating specs:

   - conda-forge::python[version='>=3.7,<4',build=*cpython*]


  Package                 Version  Build               Channel                 Size
-------------------------------------------------------------------------------------
  Install:
-------------------------------------------------------------------------------------

  + bzip2                   1.0.8  h8ffe710_4          conda-forge/win-64     152kB
  + ca-certificates      2023.5.7  h56e8100_0          conda-forge/win-64     149kB
  + libexpat                2.5.0  h63175ca_1          conda-forge/win-64     139kB
  + libffi                  3.4.2  h8ffe710_5          conda-forge/win-64      42kB
  + libsqlite              3.42.0  hcfcfb64_0          conda-forge/win-64     840kB
  + libzlib                1.2.13  hcfcfb64_5          conda-forge/win-64      56kB
  + openssl                 3.1.1  hcfcfb64_1          conda-forge/win-64       7MB
  + pip                    23.1.2  pyhd8ed1ab_0        conda-forge/noarch       1MB
  + python                 3.11.4  h2628c8c_0_cpython  conda-forge/win-64      18MB
  + setuptools             67.7.2  pyhd8ed1ab_0        conda-forge/noarch     583kB
  + tk                     8.6.12  h8ffe710_0          conda-forge/win-64       4MB
  + tzdata                  2023c  h71feb2d_0          conda-forge/noarch     118kB
  + ucrt             10.0.22621.0  h57928b3_0          conda-forge/win-64       1MB
  + vc                       14.3  hb25d44b_16         conda-forge/win-64      17kB
  + vc14_runtime      14.34.31931  h5081d32_16         conda-forge/win-64     726kB
  + vs2015_runtime    14.34.31931  hed1258a_16         conda-forge/win-64      17kB
  + wheel                  0.40.0  pyhd8ed1ab_0        conda-forge/noarch      56kB
  + xz                      5.2.6  h8d14728_0          conda-forge/win-64     218kB

  Summary:

  Install: 18 packages

  Total download: 35MB

-------------------------------------------------------------------------------------



Transaction starting
ucrt                                                 1.3MB @ 231.2kB/s  8.0s
xz                                                 217.8kB @  34.4kB/s  8.8s
libexpat                                           138.7kB @ 303.5kB/s  9.4s
pip                                                  1.4MB @ 232.4kB/s  8.2s
vc                                                  16.8kB @  20.4kB/s  9.8s
vs2015_runtime                                      16.9kB @  13.2kB/s 10.3s
vc14_runtime                                       726.3kB @ 259.6kB/s 11.8s
libsqlite                                          839.8kB @ 101.3kB/s 11.7s
setuptools                                         582.7kB @ 206.1kB/s 11.9s
openssl                                              7.4MB @   2.0MB/s 12.7s
tk                                                   3.7MB @   1.1MB/s 12.5s
[+] 25.6s
Downloading  (7) -----------------------------------------------------------------------------------------------------------------------------------------------  16.3MB /  16.3MB tzdata                    25.5s[+] 25.7s
[+] 25.9s
Downloading  (7) -----------------------------------------------------------------------------------------------------------------------------------------------  16.3MB /  16.3MB wheel                     25.8sExtracting       -----------------------------------------------------------------------------------------------------------------------------------------------      11 /      18                            5.7sInitError: InterruptException:
Stacktrace:
  [1] ^Ctry_yieldto
(undo::typeof(Base.ensure_rescheduled))
    @ Base .\task.jl:920
  [2] wait()
    @ Base .\task.jl:984
  [3] wait(c::Base.GenericCondition{Base.Threads.SpinLock}; first::Bool)
    @ Base .\condition.jl:130
  [4] wait
    @ .\condition.jl:125 [inlined]
  [5] wait(x::Base.Process)
    @ Base .\process.jl:661
  [6] success
    @ .\process.jl:523 [inlined]
  [7] run(::Cmd; wait::Bool)
    @ Base .\process.jl:480
  [8] run(::Cmd)
    @ Base .\process.jl:477
  [9] _run(io::IO, cmd::Cmd, args::Any; flags::Any)
    @ CondaPkg C:\Users\My Name\.julia\packages\CondaPkg\osUdN\src\resolve.jl:370
[+] 26.0s
Downloading  (7) -----------------------------------------------------------------------------------------------------------------------------------------------  16.3MB /  16.3MB wheel                     25.9sExtracting       -----------------------------------------------------------------------------------------------------------------------------------------------      11 /      18                            5.7sBool, dry_run::Bool)
    @ CondaPkg C:\Users\My Name\.julia\packages\CondaPkg\osUdN\src\resolve.jl:526
 [12] resolve()
    @ CondaPkg C:\Users\My Name\.julia\packages\CondaPkg\osUdN\src\resolve.jl:384
 [13] envdir()
    @ CondaPkg C:\Users\My Name\.julia\packages\CondaPkg\osUdN\src\env.jl:70
 [14] init_context()
    @ PythonCall.C C:\Users\My Name\.julia\packages\PythonCall\1f5yE\src\cpython\context.jl:63
 [15] __init__()
    @ PythonCall.C C:\Users\My Name\.julia\packages\PythonCall\1f5yE\src\cpython\CPython.jl:21
 [16] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1074
 [17] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base .\loading.jl:1020
 [18] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base .\loading.jl:1471
 [19] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1748
 [20] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1625
 [21] macro expansion
    @ .\loading.jl:1613 [inlined]
 [22] macro expansion
    @ .\lock.jl:267 [inlined]
 [23] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1576
 [24] eval
    @ .\boot.jl:370 [inlined]
 [25] eval
    @ .\Base.jl:68 [inlined]
 [26] repleval(m::Module, code::Expr, #unused#::String)
    @ VSCodeServer c:\Users\My Name\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:222
 [27] (::VSCodeServer.var"#107#109"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer c:\Users\My Name\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:186
 [28] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging .\logging.jl:514
 [29] with_logger
    @ .\logging.jl:626 [inlined]
 [30] (::VSCodeServer.var"#106#108"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer c:\Users\My Name\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:187
 [31] #invokelatest#2
    @ .\essentials.jl:816 [inlined]
 [32] invokelatest(::Any)
    @ Base .\essentials.jl:813
 [33] macro expansion
    @ c:\Users\My Name\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
 [34] (::VSCodeServer.var"#61#62")()
    @ VSCodeServer .\task.jl:514
bzip2                                              152.2kB @ 333.2kB/s 28.0s
ca-certificates                                    148.6kB @ 132.9kB/s 28.6s
wheel                                               55.7kB @ 157.6kB/s 28.2s
libzlib                                             55.8kB @  68.1kB/s 28.9s
libffi                                              42.1kB @ 115.8kB/s 29.7s
tzdata                                             117.6kB @ 244.2kB/s 29.8s
python                                              18.1MB @   3.0MB/s 34.2s
Linking libexpat-2.5.0-h63175ca_1
Linking ucrt-10.0.22621.0-h57928b3_0
Linking ca-certificates-2023.5.7-h56e8100_0
Linking vc14_runtime-14.34.31931-h5081d32_16
Linking vc-14.3-hb25d44b_16
Linking vs2015_runtime-14.34.31931-hed1258a_16
Linking openssl-3.1.1-hcfcfb64_1
Linking libzlib-1.2.13-hcfcfb64_5
Linking libsqlite-3.42.0-hcfcfb64_0
Linking libffi-3.4.2-h8ffe710_5
Linking bzip2-1.0.8-h8ffe710_4
Linking xz-5.2.6-h8d14728_0
Linking tk-8.6.12-h8ffe710_0
Linking tzdata-2023c-h71feb2d_0
Linking python-3.11.4-h2628c8c_0_cpython
Linking wheel-0.40.0-pyhd8ed1ab_0
Linking setuptools-67.7.2-pyhd8ed1ab_0
Linking pip-23.1.2-pyhd8ed1ab_0
Transaction finished


My questions:

  1. Has the installation process completely ended? Have I already successfully installed and configured PythonCall.jl and CondaPkg.jl? What should I do next?
  2. There was InitError: InterruptException: according to the returned information in the installation process. Does this matter?
  3. Did it use my original preinstalled Miniconda and Python as I intended? Or did it install another one on its own?
  4. BTW, I deeply regret that I used a username with spaces, My Name, during the win10 system installation. What consequences will this have when I use Julia? How can I remedy this?

I have to admit that my question is quite complicated and maybe very silly. :woozy_face: I hope to receive some answer and thank you for your time spent reading and replying! :pray: :rose:

Somewhat orthogonal to your main question, but about changing your username in Windows 10, it might be possible for you to change it following one of the answers here. If it is your computer, and not a corporate computer controlled by an admin.

I imagine that if it is a corporate computer, you could pester IT to change your name.

1 Like