# New package not recognised

**URL:** <https://discourse.julialang.org/t/new-package-not-recognised/41433>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 15, 2020, 11:02am UTC](https://discourse.julialang.org/t/new-package-not-recognised/41433 "2020-06-15T11:02:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [June 15, 2020, 11:02am UTC](https://discourse.julialang.org/t/new-package-not-recognised/41433/1 "2020-06-15T11:02:00Z")

</div>

I added a package but can’t seem to have it be recognised:

(v1.2) pkg\> add [https://github.com/Staross/JuliaCMAES.git](https://github.com/Staross/JuliaCMAES.git)  
Updating git-repo `https://github.com/Staross/JuliaCMAES.git`  
[ Info: Assigning UUID 51f20bef-1676-51a3-9131-39cba99c9d9c to JuliaCMAES  
Updating git-repo `https://github.com/Staross/JuliaCMAES.git`  
Resolving package versions…  
Updating `~/.julia/environments/v1.2/Project.toml`  
[no changes]  
Updating `~/.julia/environments/v1.2/Manifest.toml`  
[no changes]

julia\> using JuliaCMAES  
ERROR: ArgumentError: Package JuliaCMAES [51f20bef-1676-51a3-9131-39cba99c9d9c] is required but does not seem to be installed:

- Run `Pkg.instantiate()` to install all recorded dependencies.  
julia\> Pkg.instantiate()

julia\> using JuliaCMAES  
ERROR: ArgumentError: Package JuliaCMAES [51f20bef-1676-51a3-9131-39cba99c9d9c] is required but does not seem to be installed:

- Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace:  
[1] \_require(::Base.PkgId) at ./loading.jl:982  
[2] require(::Base.PkgId) at ./loading.jl:911  
[3] require(::Module, ::Symbol) at ./loading.jl:906

Does anyone have any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [June 15, 2020, 11:29am UTC](https://discourse.julialang.org/t/new-package-not-recognised/41433/2 "2020-06-15T11:29:27Z")

</div>

On my machine:

```julia
(scratch) pkg> add https://github.com/Staross/JuliaCMAES.git
    Cloning git-repo `https://github.com/Staross/JuliaCMAES.git`
   Updating git-repo `https://github.com/Staross/JuliaCMAES.git`
ERROR: could not find project file in package at https://github.com/Staross/JuliaCMAES.git

```

Your repo does not have the expected [directory structure](https://julialang.github.io/Pkg.jl/v1/creating-packages/) for a package. It also lacks `Project.toml`.

You will have to create a package (e.g. PackageTemplates.jl), copy the code into it, then `add` should work.

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [June 15, 2020, 11:31am UTC](https://discourse.julialang.org/t/new-package-not-recognised/41433/3 "2020-06-15T11:31:56Z")

</div>

That is not a package at all, just a repository with a single source code file. Your best chance to run it is to just `include` the file, in Julia 0.5.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [June 15, 2020, 11:32am UTC](https://discourse.julialang.org/t/new-package-not-recognised/41433/4 "2020-06-15T11:32:03Z")

</div>

Thanks. I just noticed this package seems to be discontinued, perhaps superceded by Evolutionary.jl.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [June 15, 2020, 11:32am UTC](https://discourse.julialang.org/t/new-package-not-recognised/41433/5 "2020-06-15T11:32:48Z")

</div>

Thanks!
