Make dev.provision fails

I have an ubuntu machine which I try to run Edx on it.
When I run make dev.provision I get the following error:

++ docker-compose exec lms bash -c 'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform && NO_PYTHON_UNINSTALL=1 paver install_prereqs'
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/bin/paver", line 8, in <module>
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/paver/", line 890, in main
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/paver/", line 858, in _launch_pavement
    exec(compile(source, environment.pavement_file, 'exec'), mod.__dict__)
  File "", line 14, in <module>
    from pavelib import *
  File "/edx/app/edxapp/edx-platform/pavelib/", line 4, in <module>
    from . import (
  File "/edx/app/edxapp/edx-platform/pavelib/", line 121
    print '{cache} unchanged, skipping...'.format(cache=cache_name)
SyntaxError: invalid syntax
Makefile:44: recipe for target '' failed
make: *** [] Error 1

I’m using Python 3.7.
Any ideas on how to resolve this?


Hi @Edmond_Gam_Ze_Letova, welcome to the community!
What branch are you using for the devstack and edx-platform repositories? You can find them by running git rev-parse --abbrev-ref HEAD in your devstack and edx-platform directories.

It looks like you’re provisioning the devstack with Python 3, but running an older edx-platform version. The line from your error has been changed here, so it should be available from the Ironwood release.