EvolutionGym / evogym

A large-scale benchmark for co-optimizing the design and control of soft robots, as seen in NeurIPS 2021.
https://evolutiongym.github.io/
MIT License
195 stars 33 forks source link

Cannot run examples from PyCharm #8

Closed blmussati closed 2 years ago

blmussati commented 2 years ago

I open evogym as project on my PyCharm 2019.2.4 (Professional) and mark the examples folder as Source Root. I then try to run the example python run_group_ppo.py --algo ppo --use-gae --lr 2.5e-4 --clip-param 0.1 --value-loss-coef 0.5 --num-processes 4 --num-steps 128 --num-mini-batch 4 --log-interval 100 --use-linear-lr-decay --entropy-coef 0.01 --eval-interval 50

from PyCharm, but I get

File "evogym/evogym/sim.py", line 11, in from evogym.simulator_cpp import Sim ModuleNotFoundError: No module named 'evogym.simulator_cpp'

However, when running the command python run_group_ppo.py from terminal, the experiment runs. How do I adjust the project so to run in PyCharm (or any other IDE)? It would be helpful for debug purposes.

blmussati commented 2 years ago

The temporary solution I found was to start a new project from the examples directory, which isn't too convenient