Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
khmariem opened this issue May 24, 2020 · 2 comments
Open

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

khmariem opened this issue May 24, 2020 · 2 comments

Comments

@khmariem
Copy link

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
Copy link

dujinyu commented May 25, 2020

@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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants