# Error when installing package

**URL:** https://discourse.julialang.org/t/error-when-installing-package/82615
**Category:** New to Julia
**Tags:** package
**Created:** [June 12, 2022, 2:37am UTC](https://discourse.julialang.org/t/error-when-installing-package/82615 "2022-06-12T02:37:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Tri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tri/32/36918_2.png) [@Tri](https://discourse.julialang.org/u/Tri)
#### Post date: [June 12, 2022, 2:38am UTC](https://discourse.julialang.org/t/error-when-installing-package/82615/1 "2022-06-12T02:38:00Z")

</div>

I am trying to install the [GAMS](https://github.com/GAMS-dev/gams.jl) package. When I do Pkg.add(“GAMS”) I get the following error message. Can someone please tell me what does it mean?

```julia
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

```

---

<div class="post-metadata">

### Author: ![ianshmean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ianshmean/32/216042_2.png) [@ianshmean](https://discourse.julialang.org/u/ianshmean)
#### Post date: [June 12, 2022, 2:53am UTC](https://discourse.julialang.org/t/error-when-installing-package/82615/2 "2022-06-12T02:53:02Z")

</div>

From

```julia
TranscodingStreams [3bb67fe8] has no known versions!

```

it looks like your registry may be messed up.

Try

```julia
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?

---

<div class="post-metadata">

### Author: ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)
#### Post date: [June 12, 2022, 3:40am UTC](https://discourse.julialang.org/t/error-when-installing-package/82615/3 "2022-06-12T03:40:56Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ianshmean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ianshmean/32/216042_2.png) [@ianshmean](https://discourse.julialang.org/u/ianshmean)
#### Post date: [June 12, 2022, 3:43am UTC](https://discourse.julialang.org/t/error-when-installing-package/82615/4 "2022-06-12T03:43:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Tri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tri/32/36918_2.png) [@Tri](https://discourse.julialang.org/u/Tri)
#### Post date: [June 12, 2022, 11:09am UTC](https://discourse.julialang.org/t/error-when-installing-package/82615/5 "2022-06-12T11:09:27Z")

</div>

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