Pkg.add("IJulia") fails

328 views
Skip to first unread message

bker

unread,
Oct 26, 2016, 5:29:43 PM10/26/16
to julia-users
Complete newb here. Just trying to install IJulia for Jupyter. Installed Anaconda first, then Julia. When I try to install the IJulia package, I get the output below. I've tried removing everything and re-installing but I get the same result. Help!

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0 (2016-09-19 18:14 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-w64-mingw32

ERROR: SystemError: opening file D:\emacs\.julia_history: No such file or direct
ory
 in #systemerror#51 at .\error.jl:34 [inlined]
 in systemerror(::String, ::Bool) at .\error.jl:34
 in open(::String, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at .\iostream.jl:89
 in #setup_interface#30(::Bool, ::Array{Dict{Any,Any},1}, ::Function, ::Base.REP
L.LineEditREPL) at .\REPL.jl:769
 in run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at .\REPL
.jl:898
 in run_repl(::Base.REPL.LineEditREPL, ::Base.##932#933) at .\REPL.jl:188
 in _start() at .\client.jl:360

INFO: Disabling history file for this session.
julia> Pkg.status()
INFO: Initializing package repository D:\emacs\.julia\v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
No packages installed

julia> Pkg.resolve()
INFO: No packages to install, update or remove

julia> Pkg.add("IJulia")
INFO: Cloning cache of BinDeps from https://github.com/JuliaLang/BinDeps.jl.git
ERROR: Cannot clone BinDeps from https://github.com/JuliaLang/BinDeps.jl.git. Fa
iled to receive response: The server returned an invalid or unrecognized respons
e

 in prefetch(::String, ::String, ::Array{String,1}) at .\pkg\cache.jl:56
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{Version
Number,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::D
ict{String,Base.Pkg.Types.Fixed}, ::Dict{String,VersionNumber}, ::Set{String}) a
t .\pkg\entry.jl:512
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{Version
Number,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::D
ict{String,Base.Pkg.Types.Fixed}) at .\pkg\entry.jl:476
 in edit(::Function, ::String, ::Base.Pkg.Types.VersionSet, ::Vararg{Base.Pkg.Ty
pes.VersionSet,N}) at .\pkg\entry.jl:30
 in (::Base.Pkg.Entry.##2#5{String,Base.Pkg.Types.VersionSet})() at .\task.jl:36
0
 in sync_end() at .\task.jl:311
 in macro expansion at .\task.jl:327 [inlined]
 in add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at
.\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::S
tring) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at
.\pkg\dir.jl:31
 in add(::String) at .\pkg\pkg.jl:100

julia> Pkg.add("IJulia")
INFO: Cloning cache of BinDeps from https://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of BufferedStreams from https://github.com/BioJulia/Buffered
Streams.jl.git
INFO: Cloning cache of Compat from https://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of Conda from https://github.com/JuliaPy/Conda.jl.git
INFO: Cloning cache of IJulia from https://github.com/JuliaLang/IJulia.jl.git
INFO: Cloning cache of JSON from https://github.com/JuliaIO/JSON.jl.git
INFO: Cloning cache of LegacyStrings from https://github.com/JuliaArchive/Legacy
Strings.jl.git
INFO: Cloning cache of LibExpat from https://github.com/amitmurthy/LibExpat.jl.g
it
INFO: Cloning cache of Libz from https://github.com/BioJulia/Libz.jl.git
INFO: Cloning cache of Nettle from https://github.com/staticfloat/Nettle.jl.git
INFO: Cloning cache of SHA from https://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from https://github.com/JuliaWeb/URIParser.jl.g
it
INFO: Cloning cache of WinRPM from https://github.com/JuliaPackaging/WinRPM.jl.g
it
INFO: Cloning cache of ZMQ from https://github.com/JuliaLang/ZMQ.jl.git
INFO: Installing BinDeps v0.4.5
INFO: Installing BufferedStreams v0.2.0
INFO: Installing Compat v0.9.3
INFO: Installing Conda v0.3.2
INFO: Installing IJulia v1.3.2
INFO: Installing JSON v0.8.0
INFO: Installing LegacyStrings v0.1.1
INFO: Installing LibExpat v0.2.1
INFO: Installing Libz v0.2.0
INFO: Installing Nettle v0.2.4
INFO: Installing SHA v0.2.1
INFO: Installing URIParser v0.1.6
INFO: Installing WinRPM v0.2.2
INFO: Installing ZMQ v0.4.0
INFO: Building WinRPM
WARNING: Method definition XML_ErrorString(Any) in module LibExpat at D:\emacs\.
julia\v0.5\LibExpat\src\lX_common_h.jl:4 overwritten at D:\emacs\.julia\v0.5\Lib
Expat\src\lX_common_h.jl:4.
WARNING: could not import Base.lastidx into LegacyStrings
WARNING: Method definition (::Type{WinRPM.Packages})(#T<:Union{Array{LibExpat.ET
ree, 1}, Base.Set{LibExpat.ETree}}) in module WinRPM at D:\emacs\.julia\v0.5\Win
RPM\src\WinRPM.jl:207 overwritten at D:\emacs\.julia\v0.5\WinRPM\src\WinRPM.jl:2
09.
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to d
ownload
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to d
ownload
itories/windows:/mingw:/win32/openSUSE_13.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 1/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 2/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 3/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 4/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 5/5 downloading: https://cache.julialang.org/http://download.open
WARNING: received error 0 while downloading https://cache.julialang.org/http://d
epomd.xml
itories/windows:/mingw:/win64/openSUSE_13.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 1/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 2/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 3/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 4/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 5/5 downloading: https://cache.julialang.org/http://download.open
WARNING: received error 0 while downloading https://cache.julialang.org/http://d
epomd.xml
INFO: Building Nettle
INFO: Updating WinRPM package list
itories/windows:/mingw:/win32/openSUSE_13.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 1/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 2/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 3/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 4/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 5/5 downloading: https://cache.julialang.org/http://download.open
WARNING: received error 0 while downloading https://cache.julialang.org/http://d
epomd.xml
itories/windows:/mingw:/win64/openSUSE_13.2/repodata/repomd.xml
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 1/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 2/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 3/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 4/5 downloading: https://cache.julialang.org/http://download.open
WARNING: Unknown download failure, error code: 2148270094
WARNING: Retry 5/5 downloading: https://cache.julialang.org/http://download.open
WARNING: received error 0 while downloading https://cache.julialang.org/http://d
epomd.xml
===============================[ ERROR: Nettle ]================================


LoadError: None of the selected providers can install dependency nettle.
Use BinDeps.debug(package_name) to see available providers

while loading D:\emacs\.julia\v0.5\Nettle\deps\build.jl, in expression starting
on line 39

================================================================================

INFO: Building ZMQ
=================================[ ERROR: ZMQ ]=================================


LoadError: None of the selected providers can install dependency zmq.
Use BinDeps.debug(package_name) to see available providers

while loading D:\emacs\.julia\v0.5\ZMQ\deps\build.jl, in expression starting on
line 38

================================================================================

INFO: Building IJulia
INFO: Found Jupyter version 4.2.0: jupyter
Writing IJulia kernelspec to D:\emacs\.julia\v0.5\IJulia\deps\julia-0.5\kernel.j
son ...
Installing julia kernelspec julia-0.5
[InstallKernelSpec] Installed kernelspec julia-0.5 in C:\Users\bkeats\AppData\Ro
aming\jupyter\kernels\julia-0.5

================================[ BUILD ERRORS ]================================


WARNING: Nettle and ZMQ had build errors.

 - packages with build errors remain installed in D:\emacs\.julia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("Nettle", "ZMQ")`
 - build a single package by running its `deps/build.jl` script

================================================================================

INFO: Package database updated

julia>

Tony Kelman

unread,
Oct 26, 2016, 9:46:16 PM10/26/16
to julia-users
What version of windows are you using?

bker

unread,
Oct 27, 2016, 7:54:41 AM10/27/16
to julia-users
Windows 7 Professional. Tried the install on another computer on the same network and it was fine so presumably it's not a blocked URL.

bker

unread,
Oct 27, 2016, 11:57:53 AM10/27/16
to julia-users
Seems similar error to this thread: https://groups.google.com/d/msg/julia-users/-ZbGyFFPCm8/UByZrFoNBwAJ

I tried installing a compiler like the one guy said and that didn't seem to help :(

Joungmin Lee

unread,
Oct 28, 2016, 10:12:54 AM10/28/16
to julia-users
I had the same problem when installing in Windows 7.

I don't know the exact reason, but the problem solved by changing url in C:\Users\<username>\.julia\v0.5\WinRPM\source.list.
Try again after deleting "https://cache.julialang.org/" in two URLs conained in the file.


2016년 10월 27일 목요일 오전 6시 29분 43초 UTC+9, bker 님의 말:

bker

unread,
Oct 28, 2016, 10:37:16 AM10/28/16
to julia-users
Thanks Joungmin, that worked. For the record, that file was located in d:\emacs\.julia\WinRPM\sources.list for some reason.
Reply all
Reply to author
Forward
0 new messages