Error when installing package

I am trying to install the GAMS package. When I do Pkg.add(“GAMS”) I get the following error message. Can someone please tell me what does it mean?

ERROR: Unsatisfiable requirements detected for package TranscodingStreams [3bb67fe8]:
 TranscodingStreams [3bb67fe8] log:
 ├─TranscodingStreams [3bb67fe8] has no known versions!
 └─found to have no compatible versions left with CodecBzip2 [523fee87]
   └─CodecBzip2 [523fee87] log:
     ├─possible versions are: [0.5.0, 0.6.0, 0.7.0-0.7.2] or uninstalled
     └─restricted by compatibility requirements with MathOptInterface [b8f27783] to versions: [0.6.0, 0.7.0-0.7.2]
       └─MathOptInterface [b8f27783] log:
         ├─possible versions are: [0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.22, 0.10.0-0.10.9, 1.0.0-1.0.2, 1.1.0-1.1.2, 1.2.0, 1.3.0, 1.4.0] or uninstalled
         └─restricted by compatibility requirements with GAMS [1ca51c6a] to versions: [0.9.13-0.9.22, 0.10.7-0.10.9]
           └─GAMS [1ca51c6a] log:
             ├─possible versions are: [0.1.0-0.1.6, 0.2.0-0.2.5, 0.3.0-0.3.3] or uninstalled
             └─restricted to versions * by an explicit requirement, leaving only versions [0.1.0-0.1.6, 0.2.0-0.2.5, 0.3.0-0.3.3]
Stacktrace:
 [1] propagate_constraints!(::Pkg.Resolve.Graph, ::Set{Int64}; log_events::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:1005
 [2] propagate_constraints! at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:946 [inlined] (repeats 2 times)
 [3] simplify_graph!(::Pkg.Resolve.Graph, ::Set{Int64}; clean_graph::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:1460
 [4] simplify_graph! at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:1460 [inlined] (repeats 2 times)
 [5] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:375
 [6] targeted_resolve at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1114 [inlined]
 [7] tiered_resolve(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1100
 [8] _resolve at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1120 [inlined]
 [9] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1135
 [10] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:188
 [11] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:139
 [12] #add#21 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
 [13] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
 [14] #add#20 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:66 [inlined]
 [15] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:66 [inlined]
 [16] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:65
 [17] add(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:65
 [18] top-level scope at REPL[2]:1

From

TranscodingStreams [3bb67fe8] has no known versions!

it looks like your registry may be messed up.

Try

pkg> registry rm General

pkg> registry add General

pkg> add TranscodingStreams

As an aside, which julia version are you using? From the stacktrace format it appears to be quite old?

From the paths in the stacktrace it appears to be v1.5

1 Like

Yeah, good spot. I definitely recommend using the latest version. A lot has improved since 1.5

Problem solved! Thanks a lot. You are right it’s an old version. I’ll definitely look for the 1.7 version