Failed to install on Ubuntu

Tried to install ERPNext on Ubuntu 16.04. Got this error:

INFO:bench.utils:virtualenv -q env -p /usr/bin/python
Already using interpreter /usr/bin/python
INFO:bench.utils:./env/bin/pip -q install --upgrade pip
INFO:bench.utils:./env/bin/pip -q install wheel
INFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone https://github.com/frappe/frappe.git --origin upstream
Cloning into ‘frappe’…
remote: Counting objects: 126860, done.
remote: Compressing objects: 100% (78/78), done.
remote: Total 126860 (delta 22), reused 0 (delta 0), pack-reused 126782
Receiving objects: 100% (126860/126860), 95.94 MiB | 6.98 MiB/s, done.
Resolving deltas: 100% (95372/95372), done.
Checking connectivity… done.
(‘installing’, u’frappe’)
INFO:bench.app:installing frappe
INFO:bench.utils:frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-Ip_vU8/mysql-python/
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/data1/erpnext/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/data1/erpnext/bench-repo/bench/commands/make.py”, line 19, in init
verbose=verbose, clone_from=clone_from)
File “/data1/erpnext/bench-repo/bench/utils.py”, line 56, in init
get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)
File “/data1/erpnext/bench-repo/bench/app.py”, line 76, in get_app
install_app(app=app_name, bench_path=bench_path, verbose=verbose)
File “/data1/erpnext/bench-repo/bench/app.py”, line 107, in install_app
find_links=find_links))
File “/data1/erpnext/bench-repo/bench/utils.py”, line 130, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir

Any idea?

Hi @Aric! Could you tell us what are the steps you took and in which step you had the error?

Could you please let me know what hardware specs are you using to deploy, especially the amount of memory?

Here’s my steps:

git clone https://github.com/frappe/bench bench-repo
sudo pip install -e bench-repo
bench init frappe-bench

It failed on the last step.

The Ubuntu is running on a cloud server (like AWS). It has 4 cores and 16GB memory. The following is the output of ‘free -m’:

aric@cs1:~$ free -m
total used free shared buff/cache available
Mem: 16046 4102 5362 100 6580 11685
Swap: 0 0 0

Python version is 2.7.12.

Thanks,
Aric

It seems that you’re trying to install manually. Please check all Pre-requisites as below

Python 2.7
MariaDB 10+
Nginx (for production)
Nodejs
Redis
cron (crontab is required)
wkhtmltopdf with patched Qt (for pdf generation)

Ref : https://github.com/frappe/bench

However, please try using the script in “Easy Install” method. I installed via the script without any errors.

Hope this help.

Mic

My understanding is that the “easy install” script is for the clean system. My system already has other applications running, including Mariadb, Nginx, Redis. Will the “easy install” affect other applications?

Thanks.
Aric