Julia Pkg.clone()ERROR: Unsatisfiable requirements detected for package Stats [072d6d2a]: - julia

I have Julia, Juno, and Atom installed in my computer. It works well. I was trying to use Pkg.clone() based on this link:https://github.com/uoa-ems-research/JEMSS.jl
I got the error message like the following:
julia> Pkg.clone("https://github.com/samridler/JEMSS.jl.git")
Updating git-repo `https://github.com/samridler/JEMSS.jl.git`
[ Info: Assigning UUID 24979329-2a3d-50cf-82e3-05af2f1830ac to JEMSS
[ Info: Path `/Users/jack/.julia/dev/JEMSS` exists and looks like the correct package, using existing path instead of cloning
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Stats [072d6d2a]:
Stats [072d6d2a] log:
├─possible versions are: [0.0.1, 0.1.0] or uninstalled
├─restricted to versions 0.0.0-* by JEMSS [24979329], leaving only versions [0.0.1, 0.1.0]
│ └─JEMSS [24979329] log:
│ ├─possible versions are: 0.0.0 or uninstalled
│ └─JEMSS [24979329] is fixed to version 0.0.0
└─restricted by julia compatibility requirements to versions: uninstalled — no versions left
Stacktrace:
[1] #propagate_constraints!#61(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1005
[2] propagate_constraints! at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:946 [inlined]
[3] #simplify_graph!#121(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1460
[4] simplify_graph! at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/GraphType.jl:1460 [inlined]
[5] macro expansion at ./logging.jl:317 [inlined]
[6] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Nothing) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:353
[7] resolve_versions! at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:316 [inlined]
[8] #add_or_develop#62(::Array{Base.UUID,1}, ::Symbol, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1201
[9] #add_or_develop at ./none:0 [inlined]
[10] #add_or_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:64
[11] #add_or_develop at ./none:0 [inlined]
[12] #develop#19 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:70 [inlined]
[13] develop at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:70 [inlined]
[14] macro expansion at ./logging.jl:308 [inlined]
[15] clone(::String, ::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:468 (repeats 2 times)
[16] top-level scope at none:0
So, it looks like I need to clear/delete the file located at. ./Users/jack/.julia/dev/JEMSS and try this again, right? Maybe because I cloned this file more than once I guess? Is there a command I can use?

This is because the Stats package is not compatible with your julia versions, which looks like it is 0.7 or 1.0 based on the messages. Just rm the package. For now you'll have to load the JuliaStats packages manually.

Related

ERROR: The following package names could not be resolved: error installing package in Julia

I am trying to install julia Flux using pkg add and am getting the following error,
julia> Pkg.add("Flux")
ERROR: The following package names could not be resolved:
* Flux (not found in project, manifest or registry)
Please specify by known `name=uuid`.
Stacktrace:
[1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120
[2] #ensure_resolved#43(::Bool, ::Function, ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:900
[3] #ensure_resolved at ./none:0 [inlined]
[4] #add_or_develop#15(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:64
[5] #add_or_develop at ./none:0 [inlined]
[6] #add_or_develop#14 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:34 [inlined]
[7] #add_or_develop at ./none:0 [inlined]
[8] #add_or_develop#11 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:33 [inlined]
[9] #add_or_develop at ./none:0 [inlined]
[10] #add_or_develop#10 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:32 [inlined]
[11] #add_or_develop at ./none:0 [inlined]
[12] #add#20 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:74 [inlined]
[13] add(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:74
[14] top-level scope at none:0
I tried using the ] add https://github.com/FluxML/Flux.jl but got the same error could anyone help please
I tries also adding other packages but similar error occurs and am thinking maybe it is an error with the julia env but am not sure so am not trying to mess with it
Basically, this type of error either means you have no internet connection (or are behind a firewall that is blocking connections by the package manager) or your .julia folder is corrupted.
In the second case the easiest thing to try is to delete .julia folder or set the system variable JULIA_DEPOT_PATH to point to some empty folder and restart Julia.

LoadError: InitError: While Precompiling in new Environment

I wanted to start using dedicated environments for all my julia projects, but activating the new environment and using packages (eg. Plots.jl) results in Precompiling that fails with the following error:
Activating environment at `~/Documents/baro/Project.toml`
julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: InitError: could not load library "/home/marius/.julia/artifacts/08ab4b2de494e1d61e581ab1fbd610b0b4d1876f/lib/libavdevice.so"
libx264.so.157: cannot open shared object file: No such file or directory
Stacktrace:
[1] dlopen(::String, ::UInt32; throw_error::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109
[2] dlopen at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Libdl/src/Libdl.jl:109 [inlined] (repeats 2 times)
[3] __init__() at /home/marius/.julia/packages/FFMPEG_jll/tCUYA/src/wrappers/x86_64-linux-gnu.jl:231
[4] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
[5] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:781
[6] _require(::Base.PkgId) at ./loading.jl:1006
[7] require(::Base.PkgId) at ./loading.jl:927
[8] require(::Module, ::Symbol) at ./loading.jl:922
[9] include(::Module, ::String) at ./Base.jl:377
[10] top-level scope at none:2
[11] eval at ./boot.jl:331 [inlined]
[12] eval(::Expr) at ./client.jl:449
[13] top-level scope at ./none:3
during initialization of module FFMPEG_jll
in expression starting at /home/marius/.julia/packages/FFMPEG/vocw2/src/FFMPEG.jl:3
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to /home/marius/.julia/compiled/v1.4/FFMPEG/TGvga_eB360.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
[3] _require(::Base.PkgId) at ./loading.jl:1029
[4] require(::Base.PkgId) at ./loading.jl:927
[5] require(::Module, ::Symbol) at ./loading.jl:922
[6] include(::Module, ::String) at ./Base.jl:377
[7] top-level scope at none:2
[8] eval at ./boot.jl:331 [inlined]
[9] eval(::Expr) at ./client.jl:449
[10] top-level scope at ./none:3
in expression starting at /home/marius/.julia/packages/Plots/LWw1t/src/Plots.jl:15
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/marius/.julia/compiled/v1.4/Plots/ld3vC_eB360.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
[3] _require(::Base.PkgId) at ./loading.jl:1029
[4] require(::Base.PkgId) at ./loading.jl:927
[5] require(::Module, ::Symbol) at ./loading.jl:922
This also happens for some other packages like ControlSystems.
The julia version is 1.4.2 but I was able to reproduce this error with 1.5.0 and on a different computer with 1.3.1 on it. Both systems are runnning Ubuntu 20.04 LTS.
What I tried so far was:
Rebuilding the package Pkg.build()
Check that the file supposed to load exists (it existed)
Update libx264
Deleting all packages in .julia folder and and reinstalling everything using Pkg.instantiate()
Any help to get the packages running will be greatly appreciated as I really like the idea of having dedicated environments for every project. Also on 1.3.1 even after switching to the default environment the error is still occuring.
The issue seems to lay in the FFMPEG package.
The following solved the issue for me:
Remove FFMPEG. Then delete the folder which is given in the error message. In your case: "/home/marius/.julia/artifacts/08ab4b2de494e1d61e581ab1fbd610b0b4d1876f/lib/libavdevice.so"
Then add FFPEG again which results in a change in the Manifest.toml which does not happen if you just remove FFMPEG:
Updating `~/.julia/environments/v1.3/Manifest.toml`
[1270edf5] ↓ x264_jll v2020.7.14+0 ⇒ v2019.5.25+2
Try: using FFMPEG, Plots.
I was able to precompile Plots then.

How use julia package "Mathematica"?

I added the Mathematica package (https://github.com/JuliaInterop/Mathematica.jl) to julia 1.3.1.
Now if I use command...
using Mathematica
I get this error:
[ Info: Precompiling Mathematica [32681abc-2ee8-5d23-a06a-fe3af83833d6]
┌ Warning: Package Mathematica does not have MathLink in its dependencies:
│ - If you have Mathematica checked out for development and have
│ added MathLink as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with Mathematica
└ Loading MathLink into Mathematica from project dependency, future warnings for Mathematica are suppressed.
ERROR: LoadError: LoadError: UndefVarError: #mmimport not defined
Stacktrace:
[1] top-level scope
[2] eval at ./boot.jl:330 [inlined]
[3] top-level scope at /Users/murray/.julia/packages/Mathematica/W4UIg/src/Mathematica.jl:36
[4] include at ./boot.jl:328 [inlined]
[5] include_relative(::Module, ::String) at ./loading.jl:1105
[6] include(::Module, ::String) at ./Base.jl:31
[7] top-level scope at none:2
[8] eval at ./boot.jl:330 [inlined]
[9] eval(::Expr) at ./client.jl:425
[10] top-level scope at ./none:3
in expression starting at /Users/murray/.julia/packages/Mathematica/W4UIg/src/Mathematica.jl:36
in expression starting at /Users/murray/.julia/packages/Mathematica/W4UIg/src/Mathematica.jl:34
ERROR: Failed to precompile Mathematica [32681abc-2ee8-5d23-a06a-fe3af83833d6] to /Users/murray/.julia/compiled/v1.3/Mathematica/cqgUM_XJ2Lx.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283
[3] _require(::Base.PkgId) at ./loading.jl:1024
[4] require(::Base.PkgId) at ./loading.jl:922
[5] require(::Module, ::Symbol) at ./loading.jl:917
How do I correct this?
Per Chris’s comment, the suggestion is to use MathLink.jl. I talked to the package maintainer for Mathematica and added to deprecation warning to the readme as to avoid future issues.

Unable to Install packages for Julia 0.7 in Fedora 28 due to ERROR: Unsatisfiable requirements detected

I recently updated my Fedora version from 25 to 28 and with it updated Julia from 0.6 to 0.7.0-alpha.99.
I am now trying to add packages but keep getting the same error:
Pkg.add("PyPlot")
Updating registry at `~/.julia/registries/Uncurated`
Updating git-repo `https://github.com/JuliaRegistries/Uncurated.git`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package (unknown) [10745b16]:
(unknown) [10745b16] log:
├─(unknown) [10745b16] has no known versions!
└─found to have no compatible versions left with Distributions [31c24e10]
└─Distributions [31c24e10] log:
├─possible versions are: [0.1.0-0.1.4, 0.2.0-0.2.13, 0.3.0, 0.6.4-0.6.7, 0.7.0-0.7.6, 0.8.0-0.8.10, 0.9.0, 0.10.0-0.10.2, 0.11.0-0.11.1, 0.12.0-0.12.5, 0.13.0, 0.14.0-0.14.2, 0.15.0, 0.16.0-0.16.2] or uninstalled
└─restricted to versions 0.16.2 by an explicit requirement, leaving only versions 0.16.2
Stacktrace:
[1] #propagate_constraints!#61(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/GraphType.jl:1005
[2] propagate_constraints! at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/GraphType.jl:946 [inlined]
[3] #simplify_graph!#121(::Bool, ::Function, ::Pkg.GraphType.Graph, ::Set{Int64}) at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/GraphType.jl:1460
[4] simplify_graph! at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/GraphType.jl:1460 [inlined]
[5] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:291
[6] #add_or_develop#52(::Array{Base.UUID,1}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:973
[7] #add_or_develop at ./none:0 [inlined]
[8] #add_or_develop#8(::Symbol, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:39
[9] #add_or_develop at ./none:0 [inlined]
[10] #add_or_develop#7 at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:24 [inlined]
[11] #add_or_develop at ./none:0 [inlined]
[12] #add_or_develop#6 at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:23 [inlined]
[13] #add_or_develop at ./none:0 [inlined]
[14] #add_or_develop#5 at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:22 [inlined]
[15] #add_or_develop at ./none:0 [inlined]
[16] #add#9 at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:44 [inlined]
[17] add(::String) at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:44
[18] top-level scope at none:0
[19] macro expansion at /builddir/build/BUILD/julia/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:116 [inlined]
[20] (::getfield(REPL, Symbol("##28#29")){REPL.REPLBackend})() at ./task.jl:257
The same thing happens with other packages (I have tried IJulia, Conda, Distributions).
You mention that you upgraded to 0.7.0-alpha.99. There is a stable release for 0.7.0 which you should use instead of an alpha version. You can find it on https://julialang.org/downloads/ under "Previous stable release (v0.7.0)".
In general, as Julia is changing at a fast pace you should always use the binaries from julialang.org instead of the binaries in your OS's package manager as they almost certainly won't be up to date (as in your case).
On a side note, from Julia 0.7 on the way to add packages has slightly changed. See my post here: How to install a package in Julia 1.0 (UndefVarError: Pkg not defined)

julia JuMP with v0.7

I tried building JuMP after compiling v0.7 but am getting errors:
ERROR: LoadError: Failed to precompile ReverseDiffSparse to /Users/MYUSER/.julia/lib/v0.7/ReverseDiffSparse.ji.
Stacktrace:
[1] error at ./error.jl:33 [inlined]
[2] compilecache(::Base.PkgId) at ./loading.jl:1208
[3] _require(::Base.PkgId) at ./loading.jl:974
[4] require(::Module, ::Symbol) at ./loading.jl:874
[5] include at ./boot.jl:295 [inlined]
[6] include_relative(::Module, ::String) at ./loading.jl:1067
[7] include(::Module, ::String) at ./sysimg.jl:26
[8] top-level scope
[9] eval at ./boot.jl:298 [inlined]
[10] top-level scope at ./<missing>:3
in expression starting at /Users/MYUSER/.julia/v0.7/JuMP/src/JuMP.jl:21
ERROR: Failed to precompile JuMP to /Users/MYUSER/.julia/lib/v0.7/JuMP.ji.
Stacktrace:
[1] error at ./error.jl:33 [inlined]
[2] compilecache(::Base.PkgId) at ./loading.jl:1208
[3] _require(::Base.PkgId) at ./loading.jl:1003
[4] require(::Module, ::Symbol) at ./loading.jl:874
How do I interpret these / how can I build JuMP for the latest version 0.7?
If you look at the original error message you'll probably see that StaticArrays (one of JuMP's indirect dependencies) does not load on 0.7. Anyway Julia 0.7 is in a pre-alpha state; there are no tagged prereleases of it yet as of today. It has lots of cool features, but I'd only recommend using it at this point if you're comfortable fixing broken packages and deprecation warnings.

Resources