Hi all,
First of all, I’d like to say that I am fairly new to Julia, so I apologise in advance if my query is a bit basic.
I am using Julia v1.4 on Atom on WIndows 10.
I am trying to add a set of new packages for an exercise of an online course I am doing on how to use this language. However, when I try to run the command of the first package
Pkg.add("Distributions")
I get back the following error:
Resolving package versions…
ERROR: Unsatisfiable requirements detected for package ZMQ [c2297ded]:
ZMQ [c2297ded] log:
├─ZMQ [c2297ded] has no known versions!
└─found to have no compatible versions left with IJulia [7073ff75]
└─IJulia [7073ff75] log:
├─possible versions are: [1.9.0-1.9.3, 1.10.0, 1.11.0-1.11.1, 1.12.0, 1.13.0, 1.14.0-1.14.1, 1.15.0-1.15.2, 1.16.0, 1.17.0, 1.18.0-1.18.1, 1.19.0, 1.20.0-1.20.2, 1.21.0-1.21.2] or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions [1.9.0-1.9.3, 1.10.0, 1.11.0-1.11.1, 1.12.0, 1.13.0, 1.14.0-1.14.1, 1.15.0-1.15.2, 1.16.0, 1.17.0, 1.18.0-1.18.1, 1.19.0, 1.20.0-1.20.2, 1.21.0-1.21.2]
Stacktrace:
[1] propagate_constraints!(::Pkg.Resolve.Graph, ::Set{Int64}; log_events::Bool) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Resolve\graphtype.jl:1010
[2] propagate_constraints! at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Resolve\graphtype.jl:951 [inlined] (repeats 2 times)
[3] simplify_graph!(::Pkg.Resolve.Graph, ::Set{Int64}; clean_graph::Bool) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Resolve\graphtype.jl:1465
[4] simplify_graph! at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Resolve\graphtype.jl:1465 [inlined] (repeats 2 times)
[5] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:341
[6] targeted_resolve(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Pkg.Types.PreserveLevel) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:1057
[7] tiered_resolve(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:1043
[8] _resolve at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:1063 [inlined]
[9] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:1078
[10] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\API.jl:159
[11] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\API.jl:112
[12] #add#27 at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\API.jl:109 [inlined]
[13] add at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\API.jl:109 [inlined]
[14] #add#24 at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\API.jl:107 [inlined]
[15] add at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\API.jl:107 [inlined]
[16] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\API.jl:106
[17] add(::String) at C:\Users\julia\AppData\Local\Julia-1.4.2\share\julia\stdlib\v1.4\Pkg\src\API.jl:106
[18] top-level scope at none:0
I have searched the web before coming here, and have found that other forum users have recommended removing the package that was giving the error (in this case it would be ZMQ [c2297ded]), but I have already removed the packages “Weave” and “Widgets” following that advice and the error persists -just related to other packages. I am not comfortable removing packages I don’t know what are for, scared it might affect the normal functioning of Julia. Should I keep removing all the packages that give me that error until I am able to install the set of packages I want to?
NB: All packages I am trying to add give me the same error, but not only related to ZMQ, but also to VersionParsing [81def892] and StatPlots [60ddc479]. Ironically, StatPlots is one of the packages I am trying to add (and the StatPlots error is the one I get when trying to add Statplots). I have already checked Pkg.status()
and StatPlots is not already installed.
I believe I have correctly called Pkg via using Pkg
before trying the command Pkg.add("")
.
Please help me on how to successfully add these packages.
PS: This is also my first time posting in a forum of this sort, I would like to know if my post has a conflict with any convention, or if its readability could have been improved and how.
Thanks in advance!