Insert local package to PATH

#1

Hi there,
I am having an issue with using the local packages in docker. To import dopamine and obstacle-tower-env in run.py, I try both insert into sys.path and even I extend those lines in run.sh:
export PYTHONPATH=$PYTHONPATH:/home/aicrowd/dopamine/
export PYTHONPATH=$PYTHONPATH:/home/aicrowd/obstacle-tower-env/
echo $PYTHONPATH
It works on my local docker but fails on server evaluation. And I still try to figure out but no debug information to check.
Please help me with it!

0 Likes

#2

It should not be necessary to do this.

You can add your python dependencies to https://github.com/Unity-Technologies/obstacle-tower-challenge/blob/master/requirements.txt and they will be automatically installed for you

0 Likes

#3

Thanks, I finally choose a work around solution by copy all the code to the run.py folder, and it works.

0 Likes