# How to fix syntax error in Open edX with Ubuntu 16.04

**URL:** <https://discuss.openedx.org/t/how-to-fix-syntax-error-in-open-edx-with-ubuntu-16-04/4463>\
**Category:** Site Operations Help\
**Tags:** how-to\
**Created:** [March 9, 2021, 5:13am UTC](https://discuss.openedx.org/t/how-to-fix-syntax-error-in-open-edx-with-ubuntu-16-04/4463 "2021-03-09T05:13:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkat1995ramana](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/venkat1995ramana/32/2232_2.png) [@venkat1995ramana](https://discuss.openedx.org/u/venkat1995ramana)\
**Post date:** [March 9, 2021, 5:13am UTC](https://discuss.openedx.org/t/how-to-fix-syntax-error-in-open-edx-with-ubuntu-16-04/4463/1 "2021-03-09T05:13:22Z")

</div>

fatal: destination path ‘configuration’ already exists and is not an empty directory.  
HEAD is now at ad2a155… Have to pin analytics code to the right version  
You are not currently on a branch.  
Please specify which branch you want to merge with.  
See git-pull(1) for details.

```
git pull <remote> <branch>

```

Traceback (most recent call last):  
File “/usr/local/bin/pip”, line 9, in   
load\_entry\_point(‘pip==21.0.1’, ‘console\_scripts’, ‘pip’)()  
File “/usr/lib/python2.7/dist-packages/pkg\_resources/ **init**.py”, line 542, in load\_entry\_point  
return get\_distribution(dist).load\_entry\_point(group, name)  
File “/usr/lib/python2.7/dist-packages/pkg\_resources/ **init**.py”, line 2569, in load\_entry\_point  
return ep.load()  
File “/usr/lib/python2.7/dist-packages/pkg\_resources/ **init**.py”, line 2229, in load  
return self.resolve()  
File “/usr/lib/python2.7/dist-packages/pkg\_resources/ **init**.py”, line 2235, in resolve  
module = **import** (self.module\_name, fromlist=[‘ **name** ’], level=0)  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/cli/main.py”, line 60  
sys.stderr.write(f"ERROR: {exc}")  
^  
SyntaxError: invalid syntax  
sudo: ansible-playbook: command not found

---

<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:** [March 9, 2021, 11:01pm UTC](https://discuss.openedx.org/t/how-to-fix-syntax-error-in-open-edx-with-ubuntu-16-04/4463/2 "2021-03-09T23:01:00Z")

</div>

It will be easier to help if you provide details like the environment variables you defined to install the software, and the complete logs (in a pastebin)
