DataFrames failed to install due to CodecZlib build issue (Julia 0.7 on Windows 10)

I just installed 0.7 on Windows 10. Adding DataFrames failed due to CodecZlib. I’m in a corporate environment and I don’t have admin privilege. Is that why?

(v0.7) pkg> add DataFrames
 Resolving package versions...
 Installed SortingAlgorithms ── v0.3.1
 Installed DataStreams ──────── v0.4.0
 Installed JSON ─────────────── v0.19.0
 Installed TranscodingStreams ─ v0.8.0
 Installed StatsBase ────────── v0.25.0
 Installed CodecZlib ────────── v0.4.3
 Installed DataFrames ───────── v0.13.0
 Installed DataStructures ───── v0.11.0
 Installed Reexport ─────────── v0.2.0
 Installed WeakRefStrings ───── v0.5.1
 Installed CategoricalArrays ── v0.3.13
  Updating `C:\Users\TKwong\.julia\environments\v0.7\Project.toml`
  [a93c6f00] + DataFrames v0.13.0
  Updating `C:\Users\TKwong\.julia\environments\v0.7\Manifest.toml`
  [324d7699] + CategoricalArrays v0.3.13
  [944b1d66] + CodecZlib v0.4.3
  [a93c6f00] + DataFrames v0.13.0
  [9a8bc11e] + DataStreams v0.4.0
  [864edb3b] + DataStructures v0.11.0
  [682c06a0] + JSON v0.19.0
  [189a3867] + Reexport v0.2.0
  [a2af1166] + SortingAlgorithms v0.3.1
  [2913bbd2] + StatsBase v0.25.0
  [3bb67fe8] + TranscodingStreams v0.8.0
  [ea10d353] + WeakRefStrings v0.5.1
  [9fa8497b] + Future
  Building CodecZlib → `C:\Users\TKwong\.julia\packages\CodecZlib\3RErA\deps\build.log`
┌ Error: Error building `CodecZlib`:
│ [ Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.0/Zlib.x86_64-w64-mingw32.tar.gz to C:\Users\TKwong\.julia\packages\CodecZlib\3RErA\deps\usr\downloads\Zlib.x86_64-w64-mingw32.tar.gz...
│ ┌ Warning: broadcast will default to iterating over its arguments in the future. Wrap arguments of
│ │ type `x::Char` with `Ref(x)` to ensure they broadcast as "scalar" elements.
│ │   caller = ip:0x0
│ └ @ Core :-1
│ ERROR: LoadError: Could not unpack C:\Users\TKwong\.julia\packages\CodecZlib\3RErA\deps\usr\downloads\Zlib.x86_64-w64-mingw32.tar.gz into C:\Users\TKwong\.julia\packages\CodecZlib\3RErA\deps\usr
│ Stacktrace:
│  [1] error(::String) at .\error.jl:33
│  [2] #unpack#98(::Bool, ::Function, ::String, ::String) at C:\Users\TKwong\.julia\packages\BinaryProvider\ZbFxn\src\PlatformEngines.jl:600
│  [3] #unpack at .\none:0 [inlined]
│  [4] macro expansion at .\logging.jl:322 [inlined]
│  [5] #install#115(::Prefix, ::String, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at C:\Users\TKwong\.julia\packages\BinaryProvider\ZbFxn\src\Prefix.jl:353
│  [6] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{Prefix,Bool,Bool}}, ::typeof(install), ::String, ::String) at .\none:0
│  [7] top-level scope at C:\Users\TKwong\.julia\packages\CodecZlib\3RErA\deps\build.jl:92
│  [8] include at .\boot.jl:317 [inlined]
│  [9] include_relative(::Module, ::String) at .\loading.jl:1038
│  [10] include(::Module, ::String) at .\sysimg.jl:29
│  [11] include(::String) at .\client.jl:398
│  [12] top-level scope at none:0
│ in expression starting at C:\Users\TKwong\.julia\packages\CodecZlib\3RErA\deps\build.jl:85
│
│ 7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04
│
│
│ Extracting archive:
│ ERROR: Can not create symbolic link : A required privilege is not held by the client. : C:\Users\TKwong\.julia\packages\CodecZlib\3RErA\deps\usr\bin\libz.dll
│ ERROR: Can not create symbolic link : A required privilege is not held by the client. : C:\Users\TKwong\.julia\packages\CodecZlib\3RErA\deps\usr\bin\libz-1.dll
│ --
│ Path =
│ Type = tar
│ Code Page = UTF-8
│
│
│ Sub items Errors: 2
│
│ Archives with Errors: 1
│
│ Sub items Errors: 2
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\Pkg\src\Operations.jl:1068

1 Like

I had the same problem on Win 10. Following the advice in the error message: Pkg.build("CodecZlib") with subsequent restart of Julia seems to have solved the problem.

I think this is a known issue (https://github.com/bicycle1885/CodecZlib.jl/issues/24) and is already fixed by https://github.com/bicycle1885/CodecZlib.jl/pull/30. A new release has been tagged and now we are waiting for merge.

2 Likes