Distributions.jl in 0.7.0-beta


#1

Hi,
I’m trying to use julia-0.7.0-beta and port my packages for release. My package depends on Distributions.jl. I tried to install it using new Pkg interface but is getting this error:

(v0.7) pkg> add Distributions
  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.1] or uninstalled
     └─restricted to versions 0.16.1 by an explicit requirement, leaving only versions 0.16.1

(v0.7) pkg> st
    Status `~/.julia/environments/v0.7/Project.toml`
  [31c24e10] Distributions v0.16.1
  [d330b81b] PyPlot v2.6.0

julia> using Distributions
[ Info: Precompiling module Distributions
ERROR: LoadError: ArgumentError: Package Statistics [10745b16-79ce-11e8-11f9-7d13ad32a3b2] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace:
 [1] _require(::Base.PkgId) at ./loading.jl:951
 [2] require(::Base.PkgId) at ./loading.jl:879
 [3] require(::Module, ::Symbol) at ./loading.jl:874
 [4] include at ./boot.jl:317 [inlined]
 [5] include_relative(::Module, ::String) at ./loading.jl:1075
 [6] include(::Module, ::String) at ./sysimg.jl:29
 [7] top-level scope at none:0
 [8] eval at ./boot.jl:319 [inlined]
 [9] eval(::Expr) at ./client.jl:394
 [10] top-level scope at ./none:3 [inlined]
 [11] top-level scope at ./<missing>:0
in expression starting at /home/vish/.julia/packages/Distributions/dwhW/src/Distributions.jl:5
ERROR: Failed to precompile Distributions to /home/vish/.julia/compiled/v0.7/Distributions/xILW.ji.
Stacktrace:
 [1] error at ./error.jl:33 [inlined]
 [2] compilecache(::Base.PkgId) at ./loading.jl:1205
 [3] _require(::Base.PkgId) at ./loading.jl:1007
 [4] require(::Base.PkgId) at ./loading.jl:879
 [5] require(::Module, ::Symbol) at ./loading.jl:874

julia> 

Is Distributions.jl not ready for 0.7.0 or am I doing something wrong?

With Thanks,
v-i-s-h


#2

You may want to try julia v0.7.0-beta2, available from https://julialang.org/downloads

The Statistics package is in the standard library for 0.7.0-beta2 but I’m not sure about the earlier beta release.


#3

Thanks :slight_smile: Moving to beta2 fixed the problem.