Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitError(Code:ENOTFOUND, Class:Repository, Could not find repository from 'lib') #13586

Closed
nalimilan opened this issue Oct 13, 2015 · 6 comments
Labels
packages Package management and loading

Comments

@nalimilan
Copy link
Member

I just got this when trying to install PkgDev. Yet I can load it fine. I have also seen it when updating packages, more precisely when updating Jewel.

julia> Pkg.clone("https://github.com/JuliaLang/PkgDev.jl.git")
INFO: Cloning PkgDev from https://github.com/JuliaLang/PkgDev.jl.git
INFO: Computing changes...
ERROR: GitError(Code:ENOTFOUND, Class:Repository, Could not find repository from 'lib')
 in call at ./libgit2/repository.jl:11
 in installed at ./pkg/read.jl:181
 in resolve at pkg/entry.jl:472
 [inlined code] from pkg/read.jl:14
 in resolve at pkg/entry.jl:472
 in clone at pkg/entry.jl:206
 in clone at pkg/entry.jl:222
 [inlined code] from promotion.jl:225
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 [inlined code] from pkg/dir.jl:25
 in clone at pkg.jl:38
@nalimilan nalimilan added the packages Package management and loading label Oct 13, 2015
@tkelman
Copy link
Contributor

tkelman commented Oct 13, 2015

Any chance you're working on a computer that's had packages installed in the same unversioned .julia since 0.2?

@jakebolewski
Copy link
Member

I've tried on a bunch different systems and I can't reproduce this. Please re-open if this is still an issue.

@tkelman
Copy link
Contributor

tkelman commented Oct 15, 2015

Did you try via first installing packages from julia 0.2?

@Datseris
Copy link

I just got a very similar error for my package, but I don't know what exactly may be causing it. I think the git page of the package is fine, because the Travis and AppVeyor tests work fine, as well as the documentation. The package has been registered, but when I do :

julia> Pkg.add("DynamicalBilliards")
INFO: Installing DynamicalBilliards v0.5.0
ERROR: GitError(Code:ENOTFOUND, Class:Repository, Could not find repository from 'DynamicalBilliards')
 in Base.LibGit2.GitRepo(::String) at .\libgit2\repository.jl:11
 in install(::String, ::String) at .\pkg\write.jl:38
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::Dict{String,Base.Pkg.Types.Fixed}, ::Dict{String,VersionNumber}, ::Set{String}) at .\pkg\entry.jl:530
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::Dict{String,Base.Pkg.Types.Fixed}) at .\pkg\entry.jl:476
 in edit(::Function, ::String, ::Base.Pkg.Types.VersionSet, ::Vararg{Base.Pkg.Types.VersionSet,N}) at .\pkg\entry.jl:30
 in (::Base.Pkg.Entry.##2#5{String,Base.Pkg.Types.VersionSet})() at .\task.jl:360
 in sync_end() at .\task.jl:311
 in macro expansion at .\task.jl:327 [inlined]
 in add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at .\pkg\dir.jl:31
 in add(::String) at .\pkg\pkg.jl:100

The weird thing is that using DynamicalBilliards works fine as well as all the functions of the package.
Also, if I try to do Pkg.status(), I get the exact same error I've posted above...

Let me know what more information you may need.

@tkelman
Copy link
Contributor

tkelman commented Jan 27, 2017

It wasn't registered yet because your PR to METADATA had not been merged yet - JuliaLang/METADATA.jl#7678.

You might have modifications in your local METADATA. Check the git status there, I'd recommend clearing out anything you don't want to keep.

@Datseris
Copy link

You are absolutely right, I checked the git status there and it was a complete mess. Something like three different versions...
Since I wasn't really sure what each one of them was I did a clean Julia install. Now everything works perfectly. Thanks very much for the support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages Package management and loading
Projects
None yet
Development

No branches or pull requests

4 participants