Error building PyCall in Windows 10

When I try to build PyCall in Julia 1.4 I get:

(@v1.4) pkg> build PyCall
Building Conda ─→ C:\Users\sbac\.julia\packages\Conda\3rPhK\deps\build.log
Building PyCall → C:\Users\sbac\.julia\packages\PyCall\zqDXB\deps\build.log
┌ Error: Error building PyCall:
│ ┌ 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 …
│ ┌ Error: Download failed: curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to
check revocation for the certificate.
│ └ @ Base download.jl:43
│ ERROR: LoadError: failed process: Process('C:\Windows\System32\curl.exe' -s -S -g -L -f -o 'C:\Users\sbac\.julia\conda\3\installer.exe' https://repo.co ntinuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe, ProcessExited(35)) [35]

│ Stacktrace:
│ [1] pipeline_error at .\process.jl:525 [inlined]
│ [2] download_curl(::String, ::String, ::String) at .\download.jl:44
│ [3] download at .\download.jl:62 [inlined]
│ [4] _install_conda(::String, ::Bool) at C:\Users\sbac.julia\packages\Conda\3rPhK\src\Conda.jl:164
│ [5] _install_conda(::String) at C:\Users\sbac.julia\packages\Conda\3rPhK\src\Conda.jl:155
│ [6] runconda(::Cmd, ::String) at C:\Users\sbac.julia\packages\Conda\3rPhK\src\Conda.jl:112
│ [7] add(::String, ::String; channel::String) at C:\Users\sbac.julia\packages\Conda\3rPhK\src\Conda.jl:188
│ [8] add at C:\Users\sbac.julia\packages\Conda\3rPhK\src\Conda.jl:187 [inlined] (repeats 2 times)
│ [9] top-level scope at C:\Users\sbac.julia\packages\PyCall\zqDXB\deps\build.jl:84
│ [10] include(::String) at .\client.jl:439
│ [11] top-level scope at none:5
│ in expression starting at C:\Users\sbac.julia\packages\PyCall\zqDXB\deps\build.jl:43
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:892

If you google the error message "InitializeSecurityContext failed" julia you will find several discussions, e.g. this one:

TLDR: you have a broken curl on your system.

PS. please quote code and output with backticks.

2 Likes

“Solved” by pausing my anti-virus for a minute and then doing build PyCall.

1 Like