JuliaIO / LightXML.jl

A light-weight Julia package for XML based on libxml2.
MIT License
90 stars 39 forks source link

Issue Building LightXML - "..JuliaTeam.toml: No such file or directory" from BinaryProvider #113

Open alsaibie opened 4 years ago

alsaibie commented 4 years ago

Trying to build LightXML on Windows 10, Julia 1.5.2 I get the following error

(@v1.5) pkg> build LightXML
   Building LightXML → `C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\build.log`
┌ Error: Error building `LightXML`:
│ ERROR: LoadError: LoadError: SystemError: opening file "C:\\Julia\\1.5.2\\share\\julia\\stdlib\\v1.5\\BinaryProvider\\JuliaTeam.toml": No such file or directory
│ Stacktrace:
│  [1] systemerror(::String, ::Int32; extrainfo::Nothing) at .\error.jl:168
│  [2] #systemerror#48 at .\error.jl:167 [inlined]
│  [3] systemerror at .\error.jl:167 [inlined]
│  [4] open(::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing) at .\iostream.jl:284
│  [5] open at .\iostream.jl:273 [inlined]
│  [6] open(::Base.var"#294#295"{Tuple{}}, ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at .\io.jl:323
│  [7] open at .\io.jl:323 [inlined]
│  [8] read at .\io.jl:408 [inlined]
│  [9] parsefile at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\ext\TOML\src\TOML.jl:50 [inlined]
│  [10] redirect_download_target(::String) at C:\Users\alsai\.julia\packages\BinaryProvider\IjWSK\src\JuliaTeam.jl:35
│  [11] (::BinaryProvider.JuliaTeam.var"#1#2"{BinaryProvider.var"#56#85"{BinaryProvider.var"#51#80"{Cmd,String}}})(::String, ::String) at C:\Users\alsai\.julia\packages\BinaryProvider\IjWSK\src\JuliaTeam.jl:18
│  [12] download(::String, ::String; verbose::Bool) at C:\Users\alsai\.julia\packages\BinaryProvider\IjWSK\src\PlatformEngines.jl:608
│  [13] download_verify(::String, ::String, ::String; verbose::Bool, force::Bool, quiet_download::Bool) at C:\Users\alsai\.julia\packages\BinaryProvider\IjWSK\src\PlatformEngines.jl:692
│  [14] install(::String, ::String; prefix::Prefix, tarball_path::String, force::Bool, ignore_platform::Bool, verbose::Bool) at C:\Users\alsai\.julia\packages\BinaryProvider\IjWSK\src\Prefix.jl:314
│  [15] top-level scope at C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\build_Zlib.v1.2.11.jl:44
│  [16] include(::String) at .\client.jl:457
│  [17] top-level scope at C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\build.jl:1
│  [18] include(::String) at .\client.jl:457
│  [19] top-level scope at none:5
│ in expression starting at C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\build_Zlib.v1.2.11.jl:42
│ in expression starting at C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\build.jl:1
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:949

There doesn't seem to be a directory C:\\Julia\\1.5.2\\share\\julia\\stdlib\\v1.5\\BinaryProvider\\

If I manually copy the contents of BinaryProvider from the user share folders and retry to build. I get the following error:

(@v1.5) pkg> build LightXML
   Building LightXML → `C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\build.log`
┌ Error: Error building `LightXML`:
│ [ Info: JuliaTeam: redirecting https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz to https://pkg.julialang.org/binary/ZlibBuilder/v1.0.4/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz
│ ERROR: LoadError: LoadError: Could not download https://pkg.julialang.org/binary/ZlibBuilder/v1.0.4/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz to C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\usr\downloads\Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz:
│ ProcessFailedException(Base.Process[Process(`powershell -NoProfile -Command '[System.Net.ServicePointManager]::SecurityProtocol =
│     [System.Net.SecurityProtocolType]::Tls12;

...

C:\Users\alsai\.julia\packages\BinaryProvider\IjWSK\src\PlatformEngines.jl:692
│  [8] install(::String, ::String; prefix::Prefix, tarball_path::String, force::Bool, ignore_platform::Bool, verbose::Bool) at C:\Users\alsai\.julia\packages\BinaryProvider\IjWSK\src\Prefix.jl:314
│  [9] top-level scope at C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\build_Zlib.v1.2.11.jl:46
│  [10] include(::String) at .\client.jl:457
│  [11] top-level scope at C:\Users\alsai\.julia\packages\LightXML\W8FVT\deps\build.jl:1
│  [12] include(::String) at .\client.jl:457
│  [13] top-level scope at none:5
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:949

Any ideas/pointers as to what it may be? Can I install Zlib and XML2Builder directly, if so, how?

Thanks.