# How to add a package from github to test it

**URL:** <https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461>\
**Category:** New to Julia\
**Created:** [September 16, 2024, 1:16pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461 "2024-09-16T13:16:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbdelazimHussien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abdelazimhussien/32/207723_2.png) [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Post date:** [September 16, 2024, 1:16pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/1 "2024-09-16T13:16:50Z")

</div>

Hello I wanna use and clone the following github project [GitHub - svilupp/Julia-LLM-Leaderboard: Provides a platform for the Julia community to compare AI models' abilities in generating syntactically correct Julia code, featuring structured tests and automated evaluations for easy and collaborative benchmarking.](https://github.com/svilupp/Julia-LLM-Leaderboard.git)  
Here is my steps:  
1 - git clone [GitHub - svilupp/Julia-LLM-Leaderboard: Provides a platform for the Julia community to compare AI models' abilities in generating syntactically correct Julia code, featuring structured tests and automated evaluations for easy and collaborative benchmarking.](https://github.com/svilupp/Julia-LLM-Leaderboard.git)  
2 - cd(“/Users/abdhu99/JuliaMetaOpt”)  
3 - using Pkg; Pkg.activate(“.”)  
4 - Pkg.instantiate()  
5 - Pkg.add(“JuliaLLMLeaderboard”)  
6 - using JuliaLLMLeaderboard  
I get the following error  
ERROR: ArgumentError: Package JuliaLLMLeaderboard not found in current path.

- Run `import Pkg; Pkg.add(“JuliaLLMLeaderboard”)` to install the JuliaLLMLeaderboard package.  
Stacktrace:  
[1] macro expansion  
@ ./loading.jl:1163 [inlined]  
[2] macro expansion  
@ ./lock.jl:223 [inlined]  
[3] require(into::Module, mod::Symbol)  
@ Base ./loading.jl:1144  
if I try to add it as follows:  
Pkg.add(“JuliaLLMLeaderboard”)  
I get the following

The following package names could not be resolved:

- JuliaLLMLeaderboard (not found in project, manifest or registry)  
Stacktrace:  
[1] pkgerror(msg::String)  
@ Pkg.Types /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/Types.jl:67  
[2] ensure\_resolved(ctx::Pkg.Types.Context, manifest::Pkg.Types.Manifest, pkgs::Vector{Pkg.Types.PackageSpec}; registry::Bool)  
@ Pkg.Types /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/Types.jl:952  
[3] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})  
@ Pkg.API /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:264  
[4] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})  
@ Pkg.API /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:156  
[5] add(pkgs::Vector{Pkg.Types.PackageSpec})  
@ Pkg.API /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:145  
[6] #add#27  
@ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:144 [inlined]  
[7] add  
@ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:144 [inlined]  
[8] #add#26  
@ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:143 [inlined]  
[9] add(pkg::String)  
@ Pkg.API /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:143  
[10] top-level scope  
@ REPL[26]:1  
Any help?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 16, 2024, 1:44pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/2 "2024-09-16T13:44:52Z")

</div>

Instead of step 5, did you try:  
pkg"add `https://github.com/svilupp/Julia-LLM-Leaderboard`"

And then you do not need step one.

---

<div class="post-metadata">

**Author:** ![AbdelazimHussien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abdelazimhussien/32/207723_2.png) [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Post date:** [September 16, 2024, 1:53pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/3 "2024-09-16T13:53:59Z")

</div>

> [@ufechner7](#):
>
> pkg"add `https://github.com/svilupp/Julia-LLM-Leaderboard`"

it gives me an error

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 16, 2024, 1:54pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/4 "2024-09-16T13:54:21Z")

</div>

Which error?

---

<div class="post-metadata">

**Author:** ![AbdelazimHussien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abdelazimhussien/32/207723_2.png) [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Post date:** [September 16, 2024, 1:55pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/5 "2024-09-16T13:55:08Z")

</div>

![Screenshot 2024-09-16 at 15.54.41](https://global.discourse-cdn.com/julialang/original/3X/3/6/3630d76817a810c4f1f67af6a5ecf24dfb4304b5.png)

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 16, 2024, 1:56pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/6 "2024-09-16T13:56:21Z")

</div>

I think the error message is clear:  
You must do `using Pkg` first. As you did in step 3.

And your second try would have worked, if you would have omitted the quotes.

---

<div class="post-metadata">

**Author:** ![AbdelazimHussien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abdelazimhussien/32/207723_2.png) [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Post date:** [September 16, 2024, 2:19pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/7 "2024-09-16T14:19:09Z")

</div>

> [@AbdelazimHussien](#):
>
> Pkg.activate(“.”)

Still have the following

 ![Screenshot 2024-09-16 at 16.18.51](https://global.discourse-cdn.com/julialang/original/3X/f/e/fe5e2cffde2f4a399d0496ec42a6bf26b8662eb7.png)

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 16, 2024, 2:50pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/8 "2024-09-16T14:50:15Z")

</div>

This is a different question. If you share the output of

```julia
using Pkg
Pkg.status()

```

as text (not as screenshot), we might be able to help you to debug this dependency problem.  
Packages from Github are more likely to have dependency problems than packages that are registered.

I see that you are using the OpenModelica registry. Do you need that for this project?

---

<div class="post-metadata">

**Author:** ![AbdelazimHussien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abdelazimhussien/32/207723_2.png) [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Post date:** [September 16, 2024, 3:03pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/9 "2024-09-16T15:03:54Z")

</div>

> [@AbdelazimHussien](#):
>
> /Users/abdhu99

It gives me only one package. Here is the output  
Jacobi v0.7.0

No it is for different project.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 16, 2024, 3:19pm UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/10 "2024-09-16T15:19:48Z")

</div>

Please, use per-project Project.toml files as explained here: [Working with Julia projects | Julia programming notes](https://ufechner7.github.io/2022/08/16/julia-projects.html) . That is the only way to minimize the risk of broken dependencies.

If I do:

```julia
mkdir test
cd test
julia --project="."
using Pkg
pkg"add https://github.com/svilupp/Julia-LLM-Leaderboard"

```

This installs cleanly without any error.

If you get an error you must have other packages in your environment. And if you have Jacobi in your environment and don’t need it, just remove it.

---

<div class="post-metadata">

**Author:** ![AbdelazimHussien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abdelazimhussien/32/207723_2.png) [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Post date:** [September 17, 2024, 9:45am UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/11 "2024-09-17T09:45:33Z")

</div>

Thanks a lot  
I do the above steps and I searched for the dependencies  
I have already installed

> **[GitHub - jw3126/ONNXRunTime.jl: Julia bindings for onnxruntime](https://github.com/jw3126/ONNXRunTime.jl)**
>
> Julia bindings for onnxruntime

> **[GitHub - svilupp/FlashRank.jl: Rapid Document Ranking, Powered by Lightweight...](https://github.com/svilupp/FlashRank.jl)**
>
> Rapid Document Ranking, Powered by Lightweight Models.

> **[GitHub - svilupp/PromptingTools.jl: Streamline your life using PromptingTools.jl, the...](https://github.com/svilupp/PromptingTools.jl)**
>
> Streamline your life using PromptingTools.jl, the Julia package that simplifies interacting with large language models.

> **[GitHub - svilupp/Julia-LLM-Leaderboard: Provides a platform for the Julia community to...](https://github.com/svilupp/Julia-LLM-Leaderboard)**
>
> Provides a platform for the Julia community to compare AI models' abilities in generating syntactically correct Julia code, featuring structured tests and automated evaluations for easy and collaborative benchmarking.

but i didn’t success

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 17, 2024, 9:57am UTC](https://discourse.julialang.org/t/how-to-add-a-package-from-github-to-test-it/119461/12 "2024-09-17T09:57:02Z")

</div>

> [@AbdelazimHussien](#):
>
> but i didn’t success

What is the error message?

What is the output of

```julia
using Pkg
Pkg.status()

```
