kengz / SLM-Lab

Modular Deep Reinforcement Learning framework in PyTorch. Companion library of the book "Foundations of Deep Reinforcement Learning".
https://slm-lab.gitbook.io/slm-lab/
MIT License
1.25k stars 266 forks source link

book branch: unable to run initial example #473

Closed andrei-radulescu-banu closed 3 years ago

andrei-radulescu-banu commented 3 years ago

After purchasing the book, I've installed the code on both Centos 7 and Ubuntu 18.04. Running the initial example gives a missing library error.

./bin/setup
conda activate lab
python run_lab.py slm_lab/spec/demo.json dqn_cartpole dev

Gives the error below:

    from roboschool  import cpp_household   as cpp_household
ImportError: libpcre16.so.3: cannot open shared object file: No such file or directory

You can easily reproduce by doing import roboschool in python in the venv set up for the sandbox.

kengz commented 3 years ago

Hi. That's a common error from the gym installation. Could you check #464 for solution?

kengz commented 3 years ago

Deferred to linked issue above for solution.