JuliaIO / CodecZlib.jl

zlib codecs for TranscodingStreams.jl.
Other
51 stars 24 forks source link

Building CodecZlib.jl on windows requires admin privileges #43

Closed felipenoris closed 4 years ago

felipenoris commented 5 years ago

This is bad for corporate users. I'll be opening similar issues on affected important packages.

  Building CodecZlib → `D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\build.log`
┌ Error: Error building `CodecZlib`:
│ ┌ Warning: On Windows, creating file symlinks requires Administrator privileges
│ └ @ Base.Filesystem file.jl:794
│ [ Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz to D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\usr\downloads\Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz...
│ ERROR: LoadError: Could not download https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.4/Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz to D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\usr\downloads\Zlib.v1.2.11.x86_64-w64-mingw32.tar.gz:
│ ErrorException("")
│ Stacktrace:
│  [1] error(::String) at .\error.jl:33
│  [2] #download#93(::Bool, ::Function, ::String, ::String) at D:\Users\FNORO\.julia\packages\BinaryProvider\4F5Hq\src\PlatformEngines.jl:498
│  [3] #download at .\none:0 [inlined]
│  [4] #download_verify#94(::Bool, ::Bool, ::Bool, ::Function, ::String, ::String, ::String) at D:\Users\FNORO\.julia\packages\BinaryProvider\4F5Hq\src\PlatformEngines.jl:567
│  [5] #download_verify at .\none:0 [inlined]
│  [6] #install#133(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at D:\Users\FNORO\.julia\packages\BinaryProvider\4F5Hq\src\Prefix.jl:314
│  [7] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at .\none:0
│  [8] top-level scope at D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\build.jl:89
│  [9] include at .\boot.jl:326 [inlined]
│  [10] include_relative(::Module, ::String) at .\loading.jl:1038
│  [11] include(::Module, ::String) at .\sysimg.jl:29
│  [12] include(::String) at .\client.jl:403
│  [13] top-level scope at none:0
│ in expression starting at D:\Users\FNORO\.julia\packages\CodecZlib\9jDi1\deps\build.jl:78
│ Exce��o ao chamar "DownloadFile" com "2" argumento(s): "O servidor remoto retornou um erro: (407) Autentica��o de
│ Proxy Obrigat�ria."
│ No linha:5 caractere:1
│ + $webclient.DownloadFile("https://github.com/bicycle1885/ZlibBuilder/r ...
│ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
│     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
│     + FullyQualifiedErrorId : WebException
│
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Operations.jl:1075

Ref: https://github.com/bicycle1885/EzXML.jl/issues/103

davidanthoff commented 5 years ago

I think that is https://github.com/JuliaPackaging/BinaryProvider.jl/issues/149?

felipenoris commented 5 years ago

Likely, yes. BinaryBuilder should use hard copies instead of sym links.

bicycle1885 commented 5 years ago

AppVeyor says all green on Windows. So, this does not happen all Windows machines, or AppVeyor uses administrator privileges? https://ci.appveyor.com/project/bicycle1885/codeczlib-jl

felipenoris commented 5 years ago

I found this on the subject: https://help.appveyor.com/discussions/questions/1888-running-tests-with-reduced-privileges.

bicycle1885 commented 5 years ago

Oh, so AppVeyor seems to use administrator privileges. I have no idea how common it is to use admin privileges on Windows, but I think this is a kind of problem of BinaryProvider.jl (and/or BinaryBuilder.jl). I'll post at Slack to get more attention to this problem.

bicycle1885 commented 5 years ago

Perhaps, admin privileges have nothing to do with the install error as Elliot said on Slack. Please check your network configuration such as proxy settings.

KristofferC commented 4 years ago

This just looks like the download fail. Might work better with the newly merged artifact system