Hi!
I am trying to use Image Processing (with OpenCV) in Julia. The installation instructions say:
using Pkg
Pkg.add("Images")
Pkg.add("ImageMetadata")
Pkg.add("ImageView")
Pkg.add("TestImages")
Pkg.update()
I am using v0.6.4 Julia version on Ubuntu 16.04. I tried using compiled binaries and even compiled Julia myself using github instructions.
When I try to run, using Pkg
, I get the following error:
julia> using Pkg
ERROR: ArgumentError: Module Pkg not found in current path.
Run `Pkg.add("Pkg")` to install the Pkg package.
Stacktrace:
[1] _require(::Symbol) at ./loading.jl:435
[2] require(::Symbol) at ./loading.jl:405
When I do, Pkg.add("Pkg")
, I get the following error:
julia> Pkg.add("Pkg")
ERROR: unknown package Pkg
macro expansion at ./pkg/entry.jl:53 [inlined]
(::Base.Pkg.Entry.##1#3{String,Base.Pkg.Types.VersionSet})() at ./task.jl:335
Stacktrace:
[1] sync_end() at ./task.jl:287
[2] macro expansion at ./task.jl:303 [inlined]
[3] add(::String, ::Base.Pkg.Types.VersionSet) at ./pkg/entry.jl:51
[4] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at ./pkg/dir.jl:36
[5] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at ./file.jl:70
[6] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N} where N) at ./pkg/dir.jl:36
[7] add(::String) at ./pkg/pkg.jl:117
I tried using Jula v0.7 (beta version), and using Pkg
worked fine without any error. I was also able to add other packages mentioned before. But, when I do using Images, ImageMetadata, TestImages, ImageView
, I again get an error in compilation.
Can someone help me out please? I even tried the same on Ubuntu 18.04 but the same errors.
Thanks
Vishwesh