JuliaLang / IJulia.jl

Julia kernel for Jupyter
MIT License
2.8k stars 412 forks source link

Errors thrown on installing IJulia on Windows. #475

Closed saqibns closed 8 years ago

saqibns commented 8 years ago

I installed IJulia following the instructions on IJulia's homepage on my Windows 8.1 machine. When I run the command Pkg.add("IJulia"), this is what I get:

INFO: Initializing package repository C:\Users\User\.julia\v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
INFO: Cloning cache of BinDeps from https://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of BufferedStreams from https://github.com/BioJulia/BufferedStreams.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/LegacyStrings.jl.git
INFO: Cloning cache of LibExpat from https://github.com/amitmurthy/LibExpat.jl.git
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.git
INFO: Cloning cache of WinRPM from https://github.com/JuliaPackaging/WinRPM.jl.git
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.2
INFO: Installing Conda v0.3.2
INFO: Installing IJulia v1.3.2
INFO: Installing JSON v0.7.1
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.1
INFO: Installing ZMQ v0.3.4
INFO: Building WinRPM
WARNING: Method definition XML_ErrorString(Any) in module LibExpat at C:\Users\User\.julia\v0.5\LibExpat\src\lX_common_h.jl:4 overwritten at C:\Users\User\.julia\v0.5\LibExpat\src\lX_common_h.jl:4.
WARNING: could not import Base.lastidx into LegacyStrings

WARNING: deprecated syntax "packages::Core.apply_type(Vector,ParsedData)".
Use "local packages::Core.apply_type(Vector,ParsedData)" instead.
WARNING: Method definition (::Type{WinRPM.Packages})(#T<:Union{Base.Set{LibExpat.ETree}, Array{LibExpat.ETree, 1}}) in module WinRPM at C:\Users\User\.julia\v0.5\WinRPM\src\WinRPM.jl:207 overwritten at C:\Users\User\.julia\v0.5\WinRPM\src\WinRPM.jl:209.

WARNING: deprecated syntax "global update_once::Bool".
Use "typeassert" instead.
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to download
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to download
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.2/repodata/repomd.xml
===================================================[ ERROR: WinRPM ]====================================================

LoadError: "ErrorException(\"Error parsing document : 0\"), undefined entity, 1, 798, 798"
while loading C:\Users\User\.julia\v0.5\WinRPM\deps\build.jl, in expression starting on line 2

========================================================================================================================
INFO: Building Nettle
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.2/repodata/repomd.xml
===================================================[ ERROR: Nettle ]====================================================

LoadError: "ErrorException(\"Error parsing document : 0\"), undefined entity, 1, 798, 798"
while loading C:\Users\User\.julia\v0.5\Nettle\deps\build.jl, in expression starting on line 39

========================================================================================================================
INFO: Building ZMQ
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.2/repodata/repomd.xml
=====================================================[ ERROR: ZMQ ]=====================================================

LoadError: "ErrorException(\"Error parsing document : 0\"), undefined entity, 1, 798, 798"
while loading C:\Users\User\.julia\v0.5\ZMQ\deps\build.jl, in expression starting on line 23

========================================================================================================================
INFO: Building IJulia
INFO: Found Jupyter version 4.1.0: jupyter
Writing IJulia kernelspec to C:\Users\User\.julia\v0.5\IJulia\deps\julia-0.5\kernel.json ...
Installing julia kernelspec julia-0.5
[InstallKernelSpec] Installed kernelspec julia-0.5 in C:\Users\User\AppData\Roaming\jupyter\kernels\julia-0.5

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

WARNING: WinRPM, Nettle and ZMQ had build errors.

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

========================================================================================================================
INFO: Package database updated

Even though the kernel is available when I run jupyter notebook, it dies as soon as I start it and goes into an endless cycle of restarting.

stevengj commented 8 years ago

Looks like the error is in WinRPM.jl and should be filed there; cc @tkelman.

saqibns commented 8 years ago

@stevengj Alright. Thanks for your help.