Make dev.provision fails

Hi,
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>
    sys.exit(main())
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/paver/tasks.py", line 890, in main
    _launch_pavement(args)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/paver/tasks.py", line 858, in _launch_pavement
    exec(compile(source, environment.pavement_file, 'exec'), mod.__dict__)
  File "pavement.py", line 14, in <module>
    from pavelib import *
  File "/edx/app/edxapp/edx-platform/pavelib/__init__.py", line 4, in <module>
    from . import (
  File "/edx/app/edxapp/edx-platform/pavelib/prereqs.py", line 121
    print '{cache} unchanged, skipping...'.format(cache=cache_name)
                                         ^
SyntaxError: invalid syntax
Makefile:44: recipe for target 'dev.provision.run' failed
make: *** [dev.provision.run] Error 1

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

Thanks!

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.

++ 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
sys.exit(main())
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/paver/tasks.py”, line 890, in main
_launch_pavement(args)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/paver/tasks.py”, line 858, in _launch_pavement
exec(compile(source, environment.pavement_file, ‘exec’), mod.dict)
File “pavement.py”, line 14, in
from pavelib import *
File “/edx/app/edxapp/edx-platform/pavelib/init.py”, line 4, in
from . import (
File “/edx/app/edxapp/edx-platform/pavelib/prereqs.py”, line 153
except BuildFailure, error_text:
^
SyntaxError: invalid syntax
make: *** [Makefile:59: dev.provision.run] Error 1

Me also got the same error…
I’m using python 3.8
Trying ironwood release
Operating System Ubuntu 20.4