Arpack in Ubuntu

Hi everyone… I wonder if you can help me with the usage of Arpack in Ubuntu… it works great in Mac (wrapping the arpack I installed with homebrew). But I have installed it in Ubuntu and won’t work

I get this when I try to run the example:

 julia> using LinearAlgebra, Arpack

julia> A = Diagonal(1:4);

julia> λ, ϕ = eigs(A, nev = 2);
ERROR: ┌ Error: XYAUPD_Exception: Please check XYAUPD error codes in the ARPACK manual.
│   info = 4294967286
└ @ Arpack ~/.julia/packages/Arpack/7qkR1/src/libarpack.jl:24

Stacktrace:
 [1] aupd_wrapper(::Type{T} where T, ::Arpack.var"#18#28"{Diagonal{Float64,Array{Float64,1}}}, ::Arpack.var"#19#29", ::Arpack.var"#20#30", ::Int64, ::Bool, ::Bool, ::String, ::Int64, ::Int64, ::String, ::Float64, ::Int64, ::Int64, ::Array{Float64,1}) at /home/user/.julia/packages/Arpack/7qkR1/src/libarpack.jl:92
 [2] _eigs(::Diagonal{Float64,Array{Float64,1}}, ::UniformScaling{Bool}; nev::Int64, ncv::Int64, which::Symbol, tol::Float64, maxiter::Int64, sigma::Nothing, v0::Array{Float64,1}, ritzvec::Bool, explicittransform::Symbol) at /home/user/.julia/packages/Arpack/7qkR1/src/Arpack.jl:235
 [3] #eigs#10 at /home/user/.julia/packages/Arpack/7qkR1/src/Arpack.jl:47 [inlined]
 [4] #eigs#14 at /home/user/.julia/packages/Arpack/7qkR1/src/Arpack.jl:54 [inlined]
 [5] #eigs#9 at /home/user/.julia/packages/Arpack/7qkR1/src/Arpack.jl:46 [inlined]
 [6] top-level scope at none:1

Your example - works for me:

  • Ubuntu 20.04.2 LTS (Focal Fossa)
  • :julia: Version 1.5.0 (2020-08-01)
  • Architecture: x86_64
julia> versioninfo()
Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

What is your

  • Julia versioninfo()?
  • ubuntu version?

How did you installed it? I get the same problem.
I am on Ubuntu 20.04 and Julia 1.5.3

How did you installed it?

  • julia from → Download Julia
  • (@v1.5) pkg> add LinearAlgebra, Arpack

and

(@v1.5) pkg> st
...
  [7d9fca2a] Arpack v0.4.0
  [37e2e46d] LinearAlgebra
...

Your example works for me as well on Ubuntu 20.04 and Julia 1.5.3.

I just created a new project environment and only added the LinearAlgebra and Arpack packages as described by @ImreSamu .

(foonctions) pkg> st
Status `~/foonctions/Project.toml`
  [7d9fca2a] Arpack v0.5.2
  [37e2e46d] LinearAlgebra

Maybe there is a conflict with some other package (?).

1 Like

I think my problem is with Arpack. How did you installed it in ubuntu?

There is no need to install Arpack manually. Arpack_jll is installed automatically as dependency of Arpack.jl

Hi all.
I am still getting the same problem. Maybe is the Julia version?

I have Arpack v0.5.1 … maybe the version is conflicting with something?

try to reinstall the Arpack package

  • remove Arpack
  • update ( update all packages )
  • add Arpack
  • precompile

Maybe I missed it, but I don’t think you told how you installed Julia on Ubuntu? Did you use the official binaries of the package from Ubuntu repositories?

1 Like

Best way to install Julia on Ubuntu:

bash -ci "$(curl -fsSL https://raw.githubusercontent.com/abelsiqueira/jill/master/jill

Never do:

apt-get install julia

That’s a recipe to get into trouble.

2 Likes

Julia Pro