NaoRL icon indicating copy to clipboard operation
NaoRL copied to clipboard

Erroneous syntax while adding the path to settings.py

Open khmariem opened this issue 5 years ago • 2 comments

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

khmariem avatar May 24 '20 22:05 khmariem

@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

dujinyu avatar May 25 '20 08:05 dujinyu

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

khmariem avatar May 25 '20 09:05 khmariem