Pkg.add shows errors in PyCall and PyPlot, requesting precompiling.
Pkg.precompile throws errors and requests Pkg.build(“PyCall”)
This then throws the erros below.
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, broadwell)
Environment:
JULIA_EDITOR = code.cmd
JULIA_NUM_THREADS =
[ Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]
ERROR: LoadError: PyCall not properly installed. Please run Pkg.build("PyCall")
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] top-level scope
@ C:\Users\bardo\.julia\packages\PyCall\3fwVL\src\startup.jl:44
[3] include(mod::Module, _path::String)
@ Base .\Base.jl:418
[4] include(x::String)
@ PyCall C:\Users\bardo\.julia\packages\PyCall\3fwVL\src\PyCall.jl:1
[5] top-level scope
@ C:\Users\bardo\.julia\packages\PyCall\3fwVL\src\PyCall.jl:38
[6] include
@ .\Base.jl:418 [inlined]
[7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base .\loading.jl:1318
[8] top-level scope
@ none:1
[9] eval
@ .\boot.jl:373 [inlined]
[10] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[11] top-level scope
@ none:1
in expression starting at C:\Users\bardo\.julia\packages\PyCall\3fwVL\src\startup.jl:41
in expression starting at C:\Users\bardo\.julia\packages\PyCall\3fwVL\src\PyCall.jl:1
ERROR: LoadError: Failed to precompile PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0] to C:\Users\bardo\.julia\compiled\v1.7\PyCall\jl_D7B3.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\bardo\.julia\packages\PyPlot\XaELc\src\PyPlot.jl:2
ERROR: LoadError: Failed to precompile PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee] to C:\Users\bardo\.julia\compiled\v1.7\PyPlot\jl_D64C.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] eval
@ .\boot.jl:373 [inlined]
[8] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1196
[9] include_string(m::Module, txt::String, fname::String)
@ Base .\loading.jl:1206
[10] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base .\essentials.jl:716
[11] invokelatest(::Any, ::Any, ::Vararg{Any})
@ Base .\essentials.jl:714
[12] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
@ VSCodeServer c:\Users\bardo\.vscode\extensions\julialang.language-julia-insider-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:238
[13] (::VSCodeServer.var"#60#64"{Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\bardo\.vscode\extensions\julialang.language-julia-insider-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:182
[14] withpath(f::VSCodeServer.var"#60#64"{Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
@ VSCodeServer c:\Users\bardo\.vscode\extensions\julialang.language-julia-insider-1.5.6\scripts\packages\VSCodeServer\src\repl.jl:185
[15] (::VSCodeServer.var"#59#63"{Bool, Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\bardo\.vscode\extensions\julialang.language-julia-insider-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:180
[16] hideprompt(f::VSCodeServer.var"#59#63"{Bool, Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
@ VSCodeServer c:\Users\bardo\.vscode\extensions\julialang.language-julia-insider-1.5.6\scripts\packages\VSCodeServer\src\repl.jl:36
[17] (::VSCodeServer.var"#58#62"{Bool, Bool, Bool, Module, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\bardo\.vscode\extensions\julialang.language-julia-insider-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:151
[18] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:511
[19] with_logger
@ .\logging.jl:623 [inlined]
[20] (::VSCodeServer.var"#57#61"{VSCodeServer.ReplRunCodeRequestParams})()
@ VSCodeServer c:\Users\bardo\.vscode\extensions\julialang.language-julia-insider-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:228
[21] #invokelatest#2
@ .\essentials.jl:716 [inlined]
[22] invokelatest(::Any)
@ Base .\essentials.jl:714
[23] macro expansion
@ c:\Users\bardo\.vscode\extensions\julialang.language-julia-insider-1.5.6\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
[24] (::VSCodeServer.var"#55#56")()
@ VSCodeServer .\task.jl:423
in expression starting at g:\Andere Computer\Work\Shared\Julia\timestepping.jl:54
julia> Pkg.build("PyCall")
ERROR: UndefVarError: Pkg not defined
Stacktrace:
[1] top-level scope
julia> Pkg.build("PyCall")
Building Conda ─→ `C:\Users\bardo\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6cdc8832ba11c7695f494c9d9a1c31e90959ce0f\build.log`
Building PyCall → `C:\Users\bardo\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\4ba3651d33ef76e24fef6a598b63ffd1c5e1cd17\build.log`
ERROR: Error building `PyCall`:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename C:\Users\bardo\.julia\conda\3\pkgs\mkl-2021.4.0-h0e2418a_729.tar.bz2. Please remove this file manually (you may need to reboot to free file handles)
## Package Plan ##
environment location: C:\Users\bardo\.julia\conda\3
added / updated specs:
- numpy
The following packages will be downloaded:
package | build
---------------------------|-----------------
mkl-2021.4.0 | h0e2418a_729 181.7 MB conda-forge
------------------------------------------------------------
Total: 181.7 MB
The following NEW packages will be INSTALLED:
intel-openmp conda-forge/win-64::intel-openmp-2021.4.0-h57928b3_3556
libblas conda-forge/win-64::libblas-3.9.0-12_win64_mkl
libcblas conda-forge/win-64::libcblas-3.9.0-12_win64_mkl
liblapack conda-forge/win-64::liblapack-3.9.0-12_win64_mkl
mkl conda-forge/win-64::mkl-2021.4.0-h0e2418a_729
numpy conda-forge/win-64::numpy-1.21.4-py39h6635163_0
tbb conda-forge/win-64::tbb-2021.4.0-h2d74725_1
Downloading and Extracting Packages
mkl-2021.4.0 | 181.7 MB | #########9 | 100% WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename C:\Users\bardo\.julia\conda\3\pkgs\mkl-2021.4.0-h0e2418a_729\Library\bin\mkl_avx2.1.dll. Please remove this file manually (you may need to reboot to free file handles)WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename C:\Users\bardo\.julia\conda\3\pkgs\mkl-2021.4.0-h0e2418a_729\Library\bin\mkl_avx2.1.dll. Please remove this file manually (you may need to reboot to free file handles)
mkl-2021.4.0 | 181.7 MB | ########## | 100%
TypeError('not all arguments converted during string formatting')
┌ 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: LoadError: failed process: Process(setenv(`'C:\Users\bardo\.julia\conda\3\Scripts\conda.exe' install -y numpy`,["PATH=C:\\Users\\bardo\\.julia\\conda\\3\\Library\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\MATLAB\\R2019b\\bin;C:\\Ch\\bin;C:\\MinGW\\bin;C:\\Program Files\\CMake\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\bardo\\AppData\\Local\\Programs\\Python\\Python38\\Scripts\\;C:\\Users\\bardo\\AppData\\Local\\Programs\\Python\\Python38\\;C:\\Users\\bardo\\AppData\\Local\\Microsoft\\WindowsApps;C:\\MinGW\\bin;C:\\Users\\bardo\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Exercism;C:\\Users\\bardo\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\bardo\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\;C:\\Users\\bardo\\AppData\\Local\\Pandoc\\", "USERDOMAIN_ROAMINGPROFILE=DESKTOP-C4BJHNV", "HOMEPATH=\\Users\\bardo", "JD2_HOME=C:\\Users\\bardo\\AppData\\Local\\JDownloader 2.0", "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CH", "SESSIONNAME=Console", "SYSTEMROOT=C:\\WINDOWS", "APPDATA=C:\\Users\\bardo\\AppData\\Roaming", "PSMODULEPATH=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules", "COMMONPROGRAMW6432=C:\\Program Files\\Common Files" … "CHROME_CRASHPAD_PIPE_NAME=\\\\.\\pipe\\crashpad_17204_VIOIXDGUCCUMHVEZ", "LOGONSERVER=\\\\DESKTOP-C4BJHNV", "DRIVERDATA=C:\\Windows\\System32\\Drivers\\DriverData", "ORIGINAL_XDG_CURRENT_DESKTOP=undefined", "POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Pro", "CONDA_PREFIX=C:\\Users\\bardo\\.julia\\conda\\3", "JULIA_LOAD_PATH=@;C:\\Users\\bardo\\AppData\\Local\\Temp\\jl_JHintj", "SYSTEMDRIVE=C:", "PROCESSOR_ARCHITECTURE=AMD64", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]
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\bardo\.julia\packages\Conda\1403Y\src\Conda.jl:130
[5] add(pkg::String, env::String; channel::String)
@ Conda C:\Users\bardo\.julia\packages\Conda\1403Y\src\Conda.jl:223
[6] add (repeats 2 times)
@ C:\Users\bardo\.julia\packages\Conda\1403Y\src\Conda.jl:222 [inlined]
[7] top-level scope
@ C:\Users\bardo\.julia\packages\PyCall\3fwVL\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\bardo\.julia\packages\PyCall\3fwVL\deps\build.jl:43
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Types.jl:68
[2] (::Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec})()
@ Pkg.Operations C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:962
[3] withenv(::Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, ::Pair{String, String}, ::Vararg{Pair{String}})
@ Base .\env.jl:172
[4] (::Pkg.Operations.var"#99#103"{String, Bool, Bool, Bool, Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec})()
@ Pkg.Operations C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1506
[5] with_temp_env(fn::Pkg.Operations.var"#99#103"{String, Bool, Bool, Bool, Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec}, temp_env::String)
@ Pkg.Operations C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1390
[6] (::Pkg.Operations.var"#98#102"{Bool, Bool, Bool, Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String})(tmp::String)
@ Pkg.Operations C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1469
[7] mktempdir(fn::Pkg.Operations.var"#98#102"{Bool, Bool, Bool, Pkg.Operations.var"#62#67"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String}, parent::String; prefix::String)
@ Base.Filesystem .\file.jl:750
[8] mktempdir(fn::Function, parent::String) (repeats 2 times)
@ Base.Filesystem .\file.jl:748
[9] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project; force_latest_compatible_version::Bool,
allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
@ Pkg.Operations C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1435
[10] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project)
@ Pkg.Operations C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1432
[11] build_versions(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}; verbose::Bool)
@ Pkg.Operations C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:943
[12] build(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}, verbose::Bool)
@ Pkg.Operations C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:822
[13] build(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; verbose::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:992
[14] build(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:149
[15] build(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:144
[16] #build#99
@ C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
[17] build
@ C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
[18] #build#98
@ C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:141 [inlined]
[19] build(pkg::String)
@ Pkg.API C:\Users\bardo\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:141
[20] top-level scope
@ REPL[3]:1
julia>