New package not recognised

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

(v1.2) pkg> add 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

On my machine:

(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 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.

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.

1 Like

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

Thanks!