Skip to content

Installation error: ERROR: MethodError: no method matching getindex(::Nothing, ::String) #30

@nmatzke

Description

@nmatzke

Hi, I just hit an installation error on Fontconfig -- it crashes my install of Pkg.add("CUDAdrv").

With Pkg.add("Fontconfig") I get:

Pkg.add("Fontconfig")
 Resolving package versions...
 Installed Fontconfig ─ v0.3.0
ERROR: MethodError: no method matching getindex(::Nothing, ::String)
Stacktrace:
 [1] #ensure_all_artifacts_installed#41(::Pkg.BinaryPlatforms.MacOS, ::Nothing, ::typeof(Pkg.Artifacts.ensure_all_artifacts_installed), ::String) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Artifacts.jl:787
 [2] #ensure_all_artifacts_installed at ./none:0 [inlined]
 [3] #download_artifacts#71(::Pkg.BinaryPlatforms.MacOS, ::typeof(Pkg.Operations.download_artifacts), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:566
 [4] #download_artifacts at ./none:0 [inlined]
 [5] #add#102(::Bool, ::Pkg.BinaryPlatforms.MacOS, ::typeof(Pkg.Operations.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:983
 [6] #add at ./none:0 [inlined]
 [7] #add#25(::Bool, ::Pkg.BinaryPlatforms.MacOS, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:102
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:72
 [9] #add#24 at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:69 [inlined]
 [10] add at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:69 [inlined]
 [11] #add#21 at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:67 [inlined]
 [12] add at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:67 [inlined]
 [13] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::String) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:66
 [14] add(::String) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:66
 [15] top-level scope at REPL[9]:1

With Pkg.add(Pkg.PackageSpec(url = "https://github.com/JuliaGraphics/Fontconfig.jl")) I get:

Pkg.add(Pkg.PackageSpec(url = "https://github.com/JuliaGraphics/Fontconfig.jl"))
   Cloning git-repo `https://github.com/JuliaGraphics/Fontconfig.jl`

  Updating git-repo `https://github.com/JuliaGraphics/Fontconfig.jl`
  Updating git-repo `https://github.com/JuliaGraphics/Fontconfig.jl`
 Resolving package versions...
ERROR: MethodError: no method matching getindex(::Nothing, ::String)
Stacktrace:
 [1] #ensure_all_artifacts_installed#41(::Pkg.BinaryPlatforms.MacOS, ::Nothing, ::typeof(Pkg.Artifacts.ensure_all_artifacts_installed), ::String) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Artifacts.jl:787
 [2] #ensure_all_artifacts_installed at ./none:0 [inlined]
 [3] #download_artifacts#71(::Pkg.BinaryPlatforms.MacOS, ::typeof(Pkg.Operations.download_artifacts), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:566
 [4] #download_artifacts at ./none:0 [inlined]
 [5] #add#102(::Bool, ::Pkg.BinaryPlatforms.MacOS, ::typeof(Pkg.Operations.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:983
 [6] #add at ./none:0 [inlined]
 [7] #add#25(::Bool, ::Pkg.BinaryPlatforms.MacOS, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:102
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:72
 [9] #add#20 at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:69 [inlined]
 [10] add(::Pkg.Types.PackageSpec) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:66
 [11] top-level scope at REPL[10]:1

My setup is:

versioninfo()
Julia Version 1.3.0-rc1.0
Commit 768b25f6a8 (2019-08-18 00:04 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.6.0)
  CPU: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions