JuliaML / OpenAIGym.jl

OpenAI's Gym binding for Julia
Other
105 stars 20 forks source link

Install issues #5

Closed baggepinnen closed 5 years ago

baggepinnen commented 7 years ago

I encountered several isntall issues while following the README

julia> Pkg.clone("https://github.com/tbreloff/MetaPkg.jl")
julia> using MetaPkg
julia> MetaPkg.add("MetaRL")
ERROR: UndefVarError: add not defined

Manual install...

julia> using OpenAIGym
INFO: Precompiling module OpenAIGym.
ERROR: LoadError: ArgumentError: Module StochasticOptimization not found in current path.
Run `Pkg.add("StochasticOptimization")` to install the StochasticOptimization package.
julia> Pkg.add("StochasticOptimization")
ERROR: unknown package StochasticOptimization
baggepinnen commented 7 years ago

I seem to have solved (at least partially) the issue using the install instructions in the readme of Learn.jl, maybe this is the prefered way of installing?

I still get stuck on using OpenAIGym, which throws the error

julia> using OpenAIGym
ERROR: InitError: could not load library "/local/home/fredrikb/.julia/v0.5/Conda/deps/usr/lib/libssl.so"
/local/home/fredrikb/.julia/v0.5/Conda/deps/usr/lib/libssl.so: cannot open shared object file: No such file or directory
 in __init__() at /local/home/fredrikb/.julia/v0.5/OpenAIGym/src/OpenAIGym.jl:181
 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64
 in macro expansion at ./REPL.jl:95 [inlined]
 in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68
during initialization of module OpenAIGym

PyCall is using the system wide python installation and usually works fine. For some reason, building OpenAIGym seem to look for files in the Conda directory?

yukota commented 6 years ago

MetaPkg.add is changed to meta_add by https://github.com/tbreloff/MetaPkg.jl/commit/a39d9b316666d6dbe7e4c307f43ea16fd534cf30

baggepinnen commented 6 years ago

For future reference, to install this package and all other needed packages, I found this procedure to work

Pkg.clone("https://github.com/tbreloff/MetaPkg.jl")
using MetaPkg
meta_add("MetaRL")
tejank10 commented 6 years ago

meta_add("MetaRL") asks for private key and passphrase

JobJob commented 6 years ago

Pretty sure this should work, please advise if otherwise:

Pkg.clone("https://github.com/JuliaML/OpenAIGym.jl.git")
baggepinnen commented 6 years ago

You need to have uploaded your ssh key to github.com for that to work

JobJob commented 6 years ago

You need to have uploaded your ssh key to github.com for that to work

@baggepinnen You mean Pkg.clone or meta_add?

baggepinnen commented 6 years ago

meta add

Sent from mobile device

On Feb 14, 2018 05:19, "Joel Mason" notifications@github.com wrote:

You need to have uploaded your ssh key to github.com for that to work

@baggepinnen https://github.com/baggepinnen You mean Pkg.clone or meta_add?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JuliaML/OpenAIGym.jl/issues/5#issuecomment-365491603, or mute the thread https://github.com/notifications/unsubscribe-auth/ADnx86_GruM4S-9EykHuqeut4kNSQCnSks5tUl64gaJpZM4LviCW .