# Open edX devstack installation error on Ubuntu 16.04

**URL:** <https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281>\
**Category:** Site Operations Help\
**Created:** [January 23, 2020, 9:33am UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281 "2020-01-23T09:33:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmtest](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/rmtest/32/547_2.png) [@rmtest](https://discuss.openedx.org/u/rmtest)\
**Post date:** [January 23, 2020, 9:33am UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/1 "2020-01-23T09:33:51Z")

</div>

I am installing open edx on ubuntu 16.4 using below link tutorial [https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/installation/index.html](https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/installation/index.html).

While hitting below command i am facing issues

```auto
make dev.provision

    ++ docker-compose exec -T 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 11, in <module>
    sys.exit(main())
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/paver/tasks.py", line 890, in main
    _launch_pavement(args)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/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 "pavelib/ __init__.py", line 6, in <module>
    from . import assets, bok_choy, database, docs, i18n, js_test, prereqs, quality, servers, tests
  File "pavelib/assets.py", line 24, in <module>
    from .utils.envs import Env
  File "pavelib/utils/envs.py", line 331
    file=sys.stderr,
        ^
SyntaxError: invalid syntax
Makefile:57: recipe for target 'dev.provision.run' failed
make: *** [dev.provision.run] Error 1

```

---

<div class="post-metadata">

**Author:** ![nedbat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nedbat/32/3317_2.png) [@nedbat](https://discuss.openedx.org/u/nedbat)\
**Post date:** [January 24, 2020, 6:30pm UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/2 "2020-01-24T18:30:10Z")

</div>

Somehow you are running Python 2. How did you set up your Python environment?

---

<div class="post-metadata">

**Author:** ![oma0256](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/oma0256/32/3005_2.png) [@oma0256](https://discuss.openedx.org/u/oma0256)\
**Post date:** [February 26, 2020, 12:36pm UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/3 "2020-02-26T12:36:38Z")

</div>

@rmtest did you resolve this @nedbat any help will be much appreciated thank you.

---

<div class="post-metadata">

**Author:** ![nedbat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nedbat/32/3317_2.png) [@nedbat](https://discuss.openedx.org/u/nedbat)\
**Post date:** [February 26, 2020, 4:51pm UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/4 "2020-02-26T16:51:04Z")

</div>

@oma0256 There’s not enough information here to figure out why this failure is happening. If it is happening to you, give us specifics about what you did, and what happened.

---

<div class="post-metadata">

**Author:** ![oma0256](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/oma0256/32/3005_2.png) [@oma0256](https://discuss.openedx.org/u/oma0256)\
**Post date:** [February 26, 2020, 4:56pm UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/5 "2020-02-26T16:56:18Z")

</div>

I have been following this [article](https://blog.toddlichty.com/open-edx-installing-and-configuring-devstack/) to install open-edx devstack version on my laptop, however when ever I run `make dev.provision`, I get the same error as above.

---

<div class="post-metadata">

**Author:** ![nedbat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nedbat/32/3317_2.png) [@nedbat](https://discuss.openedx.org/u/nedbat)\
**Post date:** [February 26, 2020, 8:17pm UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/6 "2020-02-26T20:17:28Z")

</div>

Those instructions mention Hawthorn, as in open-release/hawthorn.master. Are you trying to install Hawthorn?

---

<div class="post-metadata">

**Author:** ![oma0256](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/oma0256/32/3005_2.png) [@oma0256](https://discuss.openedx.org/u/oma0256)\
**Post date:** [February 26, 2020, 8:21pm UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/7 "2020-02-26T20:21:11Z")

</div>

I’m not really familiar with the versions trying to get open edx up and running on my machine as fast as possible.

---

<div class="post-metadata">

**Author:** ![chinmaybhatk](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/chinmaybhatk/32/447_2.png) [@chinmaybhatk](https://discuss.openedx.org/u/chinmaybhatk)\
**Post date:** [February 27, 2020, 12:23am UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/8 "2020-02-27T00:23:24Z")

</div>

@oma0256, for exploring the platform or to know about features and it’s working, try using bitnami openedx virtual machine.

> **[Open edX](https://bitnami.com/stack/edx)**
>
> Open edX is an open source online learning platform originally conceived by edX, a nonprofit online learning destination founded by Massachusetts Institute of Technology and Harvard University. The Open edX powered by Bitnami provides a basic version...

---

<div class="post-metadata">

**Author:** ![oma0256](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/oma0256/32/3005_2.png) [@oma0256](https://discuss.openedx.org/u/oma0256)\
**Post date:** [February 27, 2020, 9:59am UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/9 "2020-02-27T09:59:59Z")

</div>

@chinmaybhatk thank you I have that setup though I really preferred the devstack version for development. I had it on my machine somehow deleted it but now having trouble putting it back, guess I will settle for bitnami for now. Thank you.

---

<div class="post-metadata">

**Author:** ![bilister](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bilister](https://discuss.openedx.org/u/bilister)\
**Post date:** [June 9, 2020, 6:57pm UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/10 "2020-06-09T18:57:55Z")

</div>

I was having the same issues. I fixed it by setting up a virtual environment, set the virtual environment to use python 2.7, and ran make requirements. Then ran the rest of the setup steps.

---

<div class="post-metadata">

**Author:** ![nedbat](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nedbat/32/3317_2.png) [@nedbat](https://discuss.openedx.org/u/nedbat)\
**Post date:** [February 9, 2021, 6:08pm UTC](https://discuss.openedx.org/t/open-edx-devstack-installation-error-on-ubuntu-16-04/1281/11 "2021-02-09T18:08:53Z")

</div>

Split this topic on February 9, 2021, 6:08pm UTC

4 posts were split to a new topic: [Installation problem with Hawthorn](https://discuss.openedx.org/t/installation-problem-with-hawthorn/4240)
