andriusbern / NaoRL

A Reinforcement Learning framework for the NAO robot
41 stars 13 forks source link

Erroneous syntax while adding the path to settings.py #3

Open khmariem opened 4 years ago

khmariem commented 4 years ago

The path to Vrep is not added properly as a string to settings.py. At the end of settings.py we have: VREP_DIR = /home/mariem/Downloads/V-REP_PRO_EDU_V3_4_0_Linux so import nao_rl yields the following error: File "nao_rl/settings.py", line 114 VREP_DIR = /home/mariem/Downloads/V-REP_PRO_EDU_V3_4_0_Linux ^ SyntaxError: invalid syntax Changing it manually would definitely make it work, but I suppose one is not supposed to manually change settings.py

dujinyu commented 4 years ago

@khmariem you could modify the code in setup.py like this.

    with open("nao_rl/settings.py", "a") as myfile:
        myfile.write("\nVREP_DIR = \"{}\"".format(vrep_dir))
        myfile.write("\nCHOREGRAPHE_DIR = \"{}\"".format(chore_dir))

I want to ask you a question. when i test the env according to the readme.md, some error occured.

Import Error: No module named VrepEnvironment

I cannot find the class VrepEnvironment in the whole repo

khmariem commented 4 years ago

I created a new issue about that problem in #4 .