[Update: This is fixed in a recent update. Updating packages and re-building fixes the Windows-vs-Conda problem that was behind the IJulia failure for me.]
I just downloaded Julia v0.7 and tried to install IJulia (literally the first thing I did), following the instructions here:
It failed. I tried again with Julia v1.0, and it failed in the same way. Does anyone know what’s going on here?
I’m on Windows 10. I have previous versions of Julia installed, with IJulia. I’m just leaving everything in a default state.
Here’s my entire Julia session, which consists of adding the IJulia package, trying to use it, building it, and getting the error.
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.0.0 (2018-08-08)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(v1.0) pkg> st
Status `C:\Users\Tucker\.julia\environments\v1.0\Project.toml`
(v1.0) pkg> add IJulia
Updating registry at `C:\Users\Tucker\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Updating `C:\Users\Tucker\.julia\environments\v1.0\Project.toml`
[7073ff75] + IJulia v1.12.0
Updating `C:\Users\Tucker\.julia\environments\v1.0\Manifest.toml`
[b99e7846] + BinaryProvider v0.4.2
[34da2185] + Compat v1.1.0
[8f4d0f93] + Conda v1.0.1
[7073ff75] + IJulia v1.12.0
[682c06a0] + JSON v0.19.0
[739be429] + MbedTLS v0.6.0
[b85f4697] + SoftGlobalScope v1.0.7
[81def892] + VersionParsing v1.1.2
[c2297ded] + ZMQ v1.0.0
[2a0f44e3] + Base64
[ade2ca70] + Dates
[8bb1440f] + DelimitedFiles
[8ba89e20] + Distributed
[7b1f6079] + FileWatching
[b77e0a4c] + InteractiveUtils
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[a63ad114] + Mmap
[44cfe95a] + Pkg
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA
[9e88b42a] + Serialization
[1a1011a3] + SharedArrays
[6462fe0b] + Sockets
[2f01184e] + SparseArrays
[10745b16] + Statistics
[8dfed614] + Test
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
(v1.0) pkg> st
Status `C:\Users\Tucker\.julia\environments\v1.0\Project.toml`
[7073ff75] IJulia v1.12.0
julia> using IJulia
[ Info: Precompiling IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a]
ERROR: LoadError: IJulia not properly installed. Please run Pkg.build("IJulia")
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] top-level scope at none:0
[3] include at .\boot.jl:317 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1038
[5] include(::Module, ::String) at .\sysimg.jl:29
[6] top-level scope at none:2
[7] eval at .\boot.jl:319 [inlined]
[8] eval(::Expr) at .\client.jl:389
[9] top-level scope at .\none:3
in expression starting at C:\Users\Tucker\.julia\packages\IJulia\4VL8h\src\IJulia.jl:45
ERROR: Failed to precompile IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] to C:\Users\Tucker\.julia\compiled\v1.0\IJulia\nfu7T.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] macro expansion at .\logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
[4] _require(::Base.PkgId) at .\logging.jl:311
[5] require(::Base.PkgId) at .\loading.jl:852
[6] macro expansion at .\logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at .\loading.jl:834
(v1.0) pkg> build IJulia
Building Conda ──→ `C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\build.log`
Building ZMQ ────→ `C:\Users\Tucker\.julia\packages\ZMQ\ABGOx\deps\build.log`
Building MbedTLS → `C:\Users\Tucker\.julia\packages\MbedTLS\Qo8TN\deps\build.log`
Building IJulia ─→ `C:\Users\Tucker\.julia\packages\IJulia\4VL8h\deps\build.log`
┌ Error: Error building `IJulia`:
│ Solving environment: ...working... done
│
│ # All requested packages already installed.
│
│ Error executing Jupyter command 'kernelspec': [Errno 'jupyter-kernelspec' not found] 2
│ Traceback (most recent call last):
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\Scripts\jupyter-kernelspec-script.py", line 6, in <module>
│ from jupyter_client.kernelspecapp import KernelSpecApp
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
│ from .connect import *
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\lib\site-packages\jupyter_client\connect.py", line 23, in <module>
│ import zmq
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\lib\site-packages\zmq\__init__.py", line 47, in <module>
│ from zmq import backend
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
│ reraise(*exc_info)
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
│ raise value
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
│ _ns = select_backend(first)
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
│ mod = __import__(name, fromlist=public_api)
│ File "C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
│ from . import (constants, error, message, context,
│ ImportError: DLL load failed: The specified module could not be found.
│ [ Info: Installing Jupyter via the Conda package.
│ [ Info: Running `conda install -y jupyter` in root environment
│ [ Info: Found Jupyter version 4.4.0: C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\Scripts\jupyter
│ [ Info: Installing Julia kernelspec julia-1.0
│ ERROR: LoadError: failed process: Process(`'C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\python.exe' 'C:\Users\Tucker\.julia\packages\Conda\m7vem\deps\usr\Scripts\jupyter-kernelspec-script.py' install --replace --user 'C:\Users\Tucker\AppData\Local\Temp\julia-1.0'`, ProcessExited(1)) [1]
│ Stacktrace:
│ [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at .\error.jl:42
│ [2] pipeline_error at .\process.jl:695 [inlined]
│ [3] #run#505(::Bool, ::Function, ::Cmd) at .\process.jl:653
│ [4] run at .\process.jl:651 [inlined]
│ [5] #installkernel#4(::String, ::Function, ::String) at C:\Users\Tucker\.julia\packages\IJulia\4VL8h\deps\kspec.jl:85
│ [6] installkernel(::String) at C:\Users\Tucker\.julia\packages\IJulia\4VL8h\deps\kspec.jl:36
│ [7] top-level scope at logging.jl:310
│ [8] top-level scope at logging.jl:309
│ [9] top-level scope at C:\Users\Tucker\.julia\packages\IJulia\4VL8h\deps\build.jl:38
│ [10] include at .\boot.jl:317 [inlined]
│ [11] include_relative(::Module, ::String) at .\loading.jl:1038
│ [12] include(::Module, ::String) at .\sysimg.jl:29
│ [13] include(::String) at .\client.jl:388
│ [14] top-level scope at none:0
│ in expression starting at C:\Users\Tucker\.julia\packages\IJulia\4VL8h\deps\build.jl:9
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068
(v1.0) pkg>