# Cannot run ReinforcementLearning#master

**URL:** https://discourse.julialang.org/t/cannot-run-reinforcementlearning-master/64050
**Category:** Package Management
**Tags:** package-manager
**Created:** [July 4, 2021, 8:26pm UTC](https://discourse.julialang.org/t/cannot-run-reinforcementlearning-master/64050 "2021-07-04T20:26:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![filchristou](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/filchristou/32/26760_2.png) [@filchristou](https://discourse.julialang.org/u/filchristou)
#### Post date: [July 4, 2021, 8:26pm UTC](https://discourse.julialang.org/t/cannot-run-reinforcementlearning-master/64050/1 "2021-07-04T20:26:25Z")

</div>

Hi. Running `pkg> add ReinforcementLearning` works as it should. Then, I wanted to try download the latest master branch from the git repo, as it also looks that the docu [Tutorial · ReinforcementLearning.jl](https://juliareinforcementlearning.org/docs/tutorial/) is based on this last version (since it throws error because of [ReinforcementLearning.jl/tabular\_policy.jl at 98f5f20a8eaf51ea0ba1c9427bd19eb22c0ec655 · JuliaReinforcementLearning/ReinforcementLearning.jl · GitHub](https://github.com/JuliaReinforcementLearning/ReinforcementLearning.jl/blob/98f5f20a8eaf51ea0ba1c9427bd19eb22c0ec655/src/ReinforcementLearningZoo/src/algorithms/tabular/tabular_policy.jl#L7), which needs one more argument in the registry version).

The problem is, that saying `pkg> add ReinforcementLearning#master` does download the master branch, but it doesn’t update the rest of the packages (ReinforcementLearningBase, ReinforcementLearningCore, ReinforcementLearningEnvironments, ReinforcementLearningZoo).  
So, in the end the error `UndefKeywordError: keyword argument n_action not assigned` is still thrown.

What I don’t understand is, why is the code 2 times downloaded when I execute the `add` method:  
#---------- ~/.julia/packages/ ----------#  
_./ReinforcementLearning/\*/ReinforcementLearningBase/_  
_./ReinforcementLearning/\*/ReinforcementLearningCore/_  
_./ReinforcementLearning/\*/ReinforcementLearningEnvironments/_  
_./ReinforcementLearning/\*/ReinforcementLearningZoo/_  
_./ReinforcementLearningBase/_  
_./ReinforcementLearningCore/_  
_./ReinforcementLearningEnvironments/_  
_./ReinforcementLearningZoo/_

So the _./ReinforcementLearning{Base,Core,Enviroments,Zoo}_ packages are actually 2 times in my system. And when I download the master branch I have the updated _./ReinforcementLearning/\*/ReinforcementLearning{Base,Core,Enviroments,Zoo}_ code but it looks that julia still references the code in the base directory _./ReinforcementLearning{Base,Core,Enviroments,Zoo}_ , which is the outdated.

Deleting the base directories _./ReinforcementLearning{Base,Core,Enviroments,Zoo}_ just throws a compilation error when `using ReinforcementLearning`

So, if the _./ReinforcementLearning/\*/ReinforcementLearning{Base,Core,Enviroments,Zoo}_ are useless, then we even downloading them ?  
And how can I download the updated _./ReinforcementLearning{Base,Core,Enviroments,Zoo}_ packages from the master branch?

Ofc copy pasting the contents of \*./ReinforcementLearning/\*/ReinforcementLearning{Base,Core,Enviroments,Zoo} to _~/.julia/packages/_ didn’t work. Probably more information is needed like uuid or similar…

The question is not how to avoid the error, but how to download and get the master branch running…

---

<div class="post-metadata">

### Author: ![findmyway](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/findmyway/32/4946_2.png) [@findmyway](https://discourse.julialang.org/u/findmyway)
#### Post date: [July 6, 2021, 4:49am UTC](https://discourse.julialang.org/t/cannot-run-reinforcementlearning-master/64050/2 "2021-07-06T04:49:45Z")

</div>

Replied [here](https://github.com/JuliaReinforcementLearning/ReinforcementLearning.jl/issues/341#issuecomment-874191173)

> First, have you read [Tips for Developers · ReinforcementLearning.jl](https://juliareinforcementlearning.org/docs/tips/#How-to-setup-local-development-environment)?
> 
> In the latest stable release (and the master branch), we only have one folder. So there should only be one `ReinforcementLearning` in your `~/.julia/packages/`. But in some cases, you might have installed an old version of `ReinforcementLearning.jl`, then you’ll see those other subpackages.
> 
> > when add ReinforcementLearning#master is executed the Base,Core,Environments,Zoo packages are not updated:
> 
> You might try `]dev ReinforcementLearning` instead based on the doc link above.
> 
> Let me know if you still have any questions.
