Error when run Pkg.add("JuMP") in Mac


#1

Hi there,

I am a new Mac User. I got an error when run Pkg.add(“JuMP”) in JuliaPro 1.0.3.1. Can any one help me out? Thanks a lot.

julia> Pkg.add(“JuMP”)
Updating registry at ~/.juliapro/JuliaPro_v1.0.3.1/registries/JuliaPro
Updating git-repo https://pkg.juliacomputing.com//registry/JuliaPro
ERROR: GitError(Code:EMERGECONFLICT, Class:Checkout, 492 conflicts prevent checkout)
Stacktrace:
[1] macro expansion at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/LibGit2/src/error.jl:101 [inlined]
[2] #checkout_tree#46(::LibGit2.CheckoutOptions, ::Function, ::LibGit2.GitRepo, ::LibGit2.GitCommit) at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/LibGit2/src/repository.jl:358
[3] ffmerge!(::LibGit2.GitRepo, ::LibGit2.GitAnnotated) at /Applications/JuliaPro-1.0.3.1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
[4] #merge!#89(::LibGit2.MergeOptions, ::LibGit2.CheckoutOptions, ::Function, ::LibGit2.GitRepo, ::Array{LibGit2.GitAnnotated,1}, ::Bool) at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/LibGit2/src/merge.jl:234
[5] #merge! at ./none:0 [inlined]
[6] #merge!#140(::String, ::String, ::Bool, ::LibGit2.MergeOptions, ::LibGit2.CheckoutOptions, ::Function, ::LibGit2.GitRepo) at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/LibGit2/src/LibGit2.jl:784
[7] #merge! at ./none:0 [inlined]
[8] update_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}) at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/Types.jl:1254
[9] update_registries at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/Types.jl:1219 [inlined]
[10] #handle_repos_add!#61(::Bool, ::Nothing, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/Types.jl:719
[11] #handle_repos_add! at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:0 [inlined]
[12] #add_or_develop#15(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:42
[13] #add_or_develop at ./none:0 [inlined]
[14] #add_or_develop#14 at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:31 [inlined]
[15] #add_or_develop at ./none:0 [inlined]
[16] #add_or_develop#13 at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:29 [inlined]
[17] #add_or_develop at ./none:0 [inlined]
[18] #add_or_develop#12 at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:28 [inlined]
[19] #add_or_develop at ./none:0 [inlined]
[20] #add#20 at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:59 [inlined]
[21] add(::String) at /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.0.app/Contents/Resources/julia/share/julia/stdlib/v1.0/Pkg/src/API.jl:59
[22] top-level scope at none:0


#2

The git merge conflict error there suggests that you have uncommitted changes to your local registry files. Did you manually edit your registry files? If this is the case, stash or commit those changes.


#3

Hi,
Thanks. I didn’t edit my registry files.