Error while installing frappe on ubuntu

Hi Pratik,
While installing frappe on ubuntu 4.04 i get following error

installing frappe
Compiling /home/tejal/Documents/AMCD/frappe-bench/env/build/gunicorn/gunicorn/workers/_gaiohttp.py …
File “/home/tejal/Documents/AMCD/frappe-bench/env/build/gunicorn/gunicorn/workers/_gaiohttp.py”, line 64
yield from self.wsgi.close()
^
SyntaxError: invalid syntax

Command /home/tejal/Documents/AMCD/frappe-bench/env/bin/python -c “import setuptools, tokenize;file=’/home/tejal/Documents/AMCD/frappe-bench/env/build/mysql-python/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-KImYxT-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/tejal/Documents/AMCD/frappe-bench/env/include/site/python2.7 failed with error code 1 in /home/tejal/Documents/AMCD/frappe-bench/env/build/mysql-python
Storing debug log for failure in /home/tejal/.pip/pip.log
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/tejal/Documents/AMCD/bench-repo/bench/cli.py”, line 29, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/tejal/Documents/AMCD/bench-repo/bench/cli.py”, line 68, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch)
File “/home/tejal/Documents/AMCD/bench-repo/bench/utils.py”, line 47, in init
get_app(‘frappe’, frappe_path, branch=frappe_branch, bench=path)
File “/home/tejal/Documents/AMCD/bench-repo/bench/app.py”, line 35, in get_app
install_app(app, bench=bench)
File “/home/tejal/Documents/AMCD/bench-repo/bench/app.py”, line 53, in install_app
find_links=find_links))
File “/home/tejal/Documents/AMCD/bench-repo/bench/utils.py”, line 59, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe’ returned non-zero exit status 1

Thanks.

I have the same problem on DigitalOcean and AWS…
I tried on Debian and CentOs and the same…

https://discuss.frappe.io/t/frappe-bench-error-on-ubuntu/3420/4?u=pdvyas

Hi,
Pratik

I have re-setup bench-repo still getting same error.Should i use bench update to overcome the issue.

did you run bench patch command as root?

The patching is now part of the script, so you can try a clean install.

Yes.Problem Solved.

Thanks