Pkg.add() Giterror

question
package
pyplot

#1

I am getting an unusual error when I run

Pkg.add(“PyPlot”)

GitError(Code:ENOTFOUND, Class:Odb, Object not found - no match for id (27ede1ea7314214742b9fbd1d668a51e7306c608))

Stacktrace:
[1] macro expansion at ./libgit2/error.jl:99 [inlined]
[2] Base.LibGit2.GitTree(::Base.LibGit2.GitRepo, ::String) at ./libgit2/repository.jl:116
[3] #isdiff#76(::Bool, ::Function, ::Base.LibGit2.GitRepo, ::String, ::String) at ./libgit2/libgit2.jl:147
[4] (::Base.Pkg.Entry.##2#4)(::Base.LibGit2.GitRepo) at ./pkg/entry.jl:59
[5] with(::Base.Pkg.Entry.##2#4, ::Base.LibGit2.GitRepo) at ./libgit2/types.jl:608
[6] macro expansion at ./pkg/entry.jl:57 [inlined]
[7] macro expansion at ./task.jl:302 [inlined]
[8] add(::String, ::Base.Pkg.Types.VersionSet) at ./pkg/entry.jl:51
[9] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at ./pkg/dir.jl:36
[10] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at ./file.jl:70
[11] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at ./pkg/dir.jl:36
[12] add(::String) at ./pkg/pkg.jl:117
[13] include_string(::String, ::String) at ./loading.jl:515

I have set up SSH key and linked it with my github account. However the problem still continues. Any help would be appreciated. I also have matplotlib install, I use python on a regular basis.

julia> versioninfo()
Julia Version 0.6.0
Commit 9036443 (2017-06-19 13:05 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel® Core™ i7-6500U CPU @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)


#2

You mean Pkg.add("PyPlot")?


#3

It was a typo, thanks.


#4

I think I figured out what the problem was. I currently have anaconda installed with python, matplotlib, and jupyter notebook. I created a new Ubuntu environment without any of that installed, I was able to use the same Pkg.add(“PyPlot”) without any problems.