Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Issue with julia --project build.jl #73

Open
bjy007 opened this issue Jul 16, 2020 · 10 comments
Open

Issue with julia --project build.jl #73

bjy007 opened this issue Jul 16, 2020 · 10 comments

Comments

@bjy007
Copy link

bjy007 commented Jul 16, 2020

Hi all,

I am trying to run julia --project build.jl, but I keep getting the ERROR: LoadError: BinaryProvider: git object 064e82000969b22b28d2f2a5c1a49da04e601156 could not be found. I do have Literate installed (saw that in another thread).

Thanks,
Brennan

[ Info: building Data_Science_1...
 Activating environment at `~/Documents/JuliaAcademyMaterials/Notebooks/Data_Science_1/Project.toml`
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Updating git-repo `https://github.com/JuliaPackaging/BinaryProvider.jl.git`
ERROR: LoadError: BinaryProvider: git object 064e82000969b22b28d2f2a5c1a49da04e601156 could not be found
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] install_git(::Pkg.Types.Context, ::Base.UUID, ::String, ::Base.SHA1, ::Array{String,1}, ::VersionNumber, ::String) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:571
 [3] download_source(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Dict{Base.UUID,Array{String,1}}; readonly::Bool) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:714
 [4] #download_source#39 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:633 [inlined]
 [5] download_source at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:631 [inlined]
 [6] instantiate(::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:820
 [7] instantiate(::Pkg.Types.Context) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:748
 [8] #instantiate#116 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:744 [inlined]
 [9] instantiate at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:744 [inlined]
 [10] top-level scope at /home/brennan/Documents/JuliaAcademyMaterials/build.jl:26
 [11] include(::Module, ::String) at ./Base.jl:377
 [12] exec_options(::Base.JLOptions) at ./client.jl:288
 [13] _start() at ./client.jl:484
in expression starting at /home/brennan/Documents/JuliaAcademyMaterials/build.jl:18
caused by [exception 1]
GitError(Code:ENOTFOUND, Class:Odb, object not found - no match for id (064e82000969b22b28d2f2a5c1a49da04e601156))
Stacktrace:
 [1] macro expansion at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/LibGit2/src/error.jl:101 [inlined]
 [2] LibGit2.GitObject(::LibGit2.GitRepo, ::LibGit2.GitHash) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/LibGit2/src/repository.jl:158
 [3] install_git(::Pkg.Types.Context, ::Base.UUID, ::String, ::Base.SHA1, ::Array{String,1}, ::VersionNumber, ::String) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:568
 [4] download_source(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Dict{Base.UUID,Array{String,1}}; readonly::Bool) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:714
 [5] #download_source#39 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:633 [inlined]
 [6] download_source at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:631 [inlined]
 [7] instantiate(::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:820
 [8] instantiate(::Pkg.Types.Context) at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:748
 [9] #instantiate#116 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:744 [inlined]
 [10] instantiate at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:744 [inlined]
 [11] top-level scope at /home/brennan/Documents/JuliaAcademyMaterials/build.jl:26
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
@pnavaro
Copy link

pnavaro commented Jul 16, 2020

Hi Brennan, same error here. I solved it by removing the Manifest.toml file.

rm Courses/Data_Science_1/Manifest.toml
julia --project build.jl Data_Science_1

@bjy007
Copy link
Author

bjy007 commented Jul 16, 2020

@pnavaro Thank you, that approach worked for Data_Science_1, Data_Science_2, Introduction to Julia, and Foundations of machine learning. Unfortunately, after rm Courses/Deep learning with Flux/Manifest.toml and julia --project build.jl "Deep learning with Flux", I'm now getting:

ERROR: LoadError: expected package `JuliaAcademyData [18b7da76]` to be registered (I can post the stacktrace if people think that would be helpful too).

@pnavaro
Copy link

pnavaro commented Jul 16, 2020

I preinstalled JuliaAcademicData manually using the url on GitHub https://github.com/JuliaAcademy/JuliaAcademyData.jl

@bjy007
Copy link
Author

bjy007 commented Jul 16, 2020

Ok, tried going into the Julia repl and doing ] add https://github.com/JuliaAcademy/JuliaAcademyData.jl, then running julia --project build.jl "Deep learning with Flux". I do have Manifest.toml for "Deep learning with Flux" deleted as well. Still getting the ERROR: LoadError: expected package `JuliaAcademyData [18b7da76]` to be registered

@pnavaro
Copy link

pnavaro commented Jul 18, 2020

Did you try to delete it?

@bjy007
Copy link
Author

bjy007 commented Jul 20, 2020

Do you mean Manifest.toml? I was able to delete that.

@hros
Copy link

hros commented Nov 16, 2020

building notebook directories fails (deleting Manifest.toml as suggested by @pnavaro does not solve the problem)
Julia Ver 1.5.3 Ubuntu 20.04

@pnavaro
Copy link

pnavaro commented Nov 16, 2020

I think it fixes the issue with build, i made a PR #76

@hros
Copy link

hros commented Nov 16, 2020

much better but needed some tweaking
I had to instantiate and add Literate

@pnavaro
Copy link

pnavaro commented Nov 16, 2020

Thanks, i add an instantiate call in the script. Since Literate is in the Project.toml file, it will be installed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants