Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nmatzke opened this issue Dec 3, 2019 · 0 comments

Comments

@nmatzke
Copy link

nmatzke commented Dec 3, 2019

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant