Here is the code
lennox@lennox-MacBookPro:~$ sudo bash setup_frappe.sh --setup-production
Installing for Ubuntu wily amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time...
Installing wkhtmltopdf
Installing wkhtmltox package for trusty (Ubuntu 14.4) even if you are using wily.
Adding frappe user
Installing frappe-bench
Already using interpreter /usr/bin/python
INFO:bench.app:getting app frappe
Cloning into 'frappe'...
INFO:bench.app:installing frappe
Exception:
Traceback (most recent call last):
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/commands/install.py", line 310, in run
wb.build(autobuilding=True)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/wheel.py", line 747, in build
self.requirement_set.prepare_files(self.finder)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 359, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 576, in _prepare_file
session=self.session, hashes=hashes)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 809, in unpack_url
hashes=hashes
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 648, in unpack_http_url
hashes)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 870, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 594, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 566, in written_chunks
for chunk in chunks:
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py", line 555, in resp_read
decode_content=False):
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 344, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 311, in read
flush_decoder = True
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/home/lennox/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 240, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
installing frappe
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.0.0', 'console_scripts', 'bench')()
File "/home/lennox/bench-repo/bench/cli.py", line 60, in cli
bench()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/lennox/bench-repo/bench/cli.py", line 166, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
File "/home/lennox/bench-repo/bench/utils.py", line 72, in init
get_app('frappe', frappe_path, branch=frappe_branch, bench=path, build_asset_files=False, verbose=verbose)
File "/home/lennox/bench-repo/bench/app.py", line 54, in get_app
install_app(app, bench=bench, verbose=verbose)
File "/home/lennox/bench-repo/bench/app.py", line 80, in install_app
find_links=find_links))
File "/home/lennox/bench-repo/bench/utils.py", line 105, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe