JuliaPackaging / WinRPM.jl

RPM-md processing library
Other
21 stars 44 forks source link

Errors thrown on installing IJulia on Windows. #87

Closed saqibns closed 7 years ago

saqibns commented 8 years ago

I tried to install 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.

tkelman commented 7 years ago

"Error parsing document : 0" means the downloaded xml was bad. Check under C:\Users\User.julia\v0.5\WinRPM for malformed files

saqibns commented 7 years ago

I found a file under the directory C:\Users\User.julia\v0.5\WinRPM\cache\1. Here are the contents of the file:

<html><head><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/><title></title><script type='text/javascript'>function setImageSize(){var ele1 = document.getElementById('headerimage');var ele2= document.getElementById('footerimage');setHeightWidth(ele1);setHeightWidth(ele2);}function setHeightWidth(ele){var h=ele.offsetHeight;var w=ele.offsetWidth;if(ele.offsetWidth > 700){ele.width = 700;}else{ele.width = w;}if(ele.offsetHeight > 80){ele.height = 80;}else{ele.height = h;}}</script></head><body onload='setImageSize()' leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'><form name='previewform'><table border='0' cellpadding='0' cellspacing='0' width='100%' style='font-family: Arial,Helvetica,sans-serif;font-size:12px;padding-left: 10px;'><tr><td align='center'>&nbsp;<br/><img id='headerimage' name='headerimage' src='http://192.168.100.1:8090/images/customizeimages/default/defpageHeader.gif' onload='callToSetImageSize(this)' style='visibility:hidden'></img></td></tr><tr><td align='left'><br><div id='message'><font class=accessdeniedtextfont ><b><BR>Dear </font><font class=accessdeniedcategoryfont >,</font><BR><BR><font class=accessdeniedtextfont >This is a message from the IT Department. <BR><BR>The web site you are trying to access: <BR></font><font class=accessdeniedcategoryfont >download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.2/repodata/repomd.xml</font><BR><font class=accessdeniedtextfont >is listed as a site within the category </font><font class=accessdeniedcategoryfont>DownloadFreewareAndShareware</font><BR><BR><font class=accessdeniedtextfont > Current Internet Access Configuration does not allow you to visit sites within this category at this time.<BR></font></div><br></td></tr><tr><td align='center'><img id='footerimage' name='footerimage' src='http://192.168.100.1:8090/images/customizeimages/default/defpageFooter.jpg' onload='callToSetImageSize(this)' style='visibility:hidden'></img></td></tr></table></form></body><script language="JavaScript"> var category='DownloadFreewareAndShareware';var categorylist = ['Spyware','SPAMURL','P2P','DownloadFreewareAndShareware','Gambling','Weapons','Plagiarism','CrimeandSuicide','PhishingandFraud','URLTranslationSites','Nudity','AdultContent','Violence','Porn','MilitancyandExtremist','Drugs','HateAndRacism','IllegalUnethical'];window.onload = function () { for (var i = 0; i < categorylist.length; i++) { if(categorylist[i]==category){document.getElementById('cyberoamlink').style.display='none';break; }}}; var heightVar,widthVar,timeoutInterval=50;function setHeightWidth(){ var diff,reducePer,tempVar; if(widthVar > 700){ diff = widthVar - 700; reducePer = 100 * diff / widthVar; tempVar = reducePer * widthVar / 100; widthVar = widthVar - tempVar; tempVar = reducePer * heightVar / 100; heightVar = heightVar - tempVar; } if(heightVar > 80){ diff = heightVar - 80; reducePer = 100 * diff / heightVar; tempVar = reducePer * heightVar / 100; heightVar = heightVar - tempVar; tempVar = reducePer * widthVar / 100; widthVar = widthVar - tempVar; } } function setImageSize(imgName){ if(document.getElementById(imgName) && document.getElementById(imgName).offsetWidth != 0 && document.getElementById(imgName).offsetHeight != 0){ widthVar = document.getElementById(imgName).offsetWidth; heightVar = document.getElementById(imgName).offsetHeight; setHeightWidth(); document.getElementById(imgName).width = widthVar; document.getElementById(imgName).height = heightVar; document.getElementById(imgName).style.visibility=''; }else{ setTimeout('setImageSize()',timeoutInterval); } } function callToSetImageSize(obj) { if(navigator.appName.indexOf("Opera") != -1){timeoutInterval = 350;}setTimeout('setImageSize("'+obj.name+'")',timeoutInterval); } </script></html>

Please tell me how do I fix this.

tkelman commented 7 years ago

You have a web filter that is refusing to let you download open-source software from opensuse.org. Complain to your ISP.

saqibns commented 7 years ago

Ok. Thanks a lot! Sorry for the trouble.