Hello,
I’m trying to install the production version and have been coming the error below, please advice what needs to be done to fix. I am using the latest version of Python 2.7.6
NOTE: Am using following for the installation.
wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh --setup-production
Thanks & Regards
Said
INFO:bench.app:getting app frappe
Cloning into ‘frappe’…
INFO:bench.app:installing frappe
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this.
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this.
Exception:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/commands/install.py”, line 310, in run
wb.build(autobuilding=True)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/wheel.py”, line 750, in build
self.requirement_set.prepare_files(self.finder)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 587, in _prepare_file
session=self.session, hashes=hashes)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 810, in unpack_url
hashes=hashes
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 649, in unpack_http_url
hashes)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 871, in _download_http_url
_download_url(resp, link, content_file, hashes)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 595, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File “/home/frappe/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/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 563, in written_chunks
for chunk in chunks:
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 552, in resp_read
decode_content=False):
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py”, line 353, in stream
data = self.read(amt=amt, decode_content=decode_content)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py”, line 310, in read
data = self._fp.read(amt)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py”, line 54, in read
self.__callback(self.__buf.getvalue())
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/controller.py”, line 275, in cache_response
self.serializer.dumps(request, response, body=body),
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py”, line 87, in dumps
).encode(“utf8”),
MemoryError
installing frappe
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
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/frappe/bench-repo/bench/commands/make.py”, line 17, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
File “/home/frappe/bench-repo/bench/utils.py”, line 62, in init
get_app(‘frappe’, frappe_path, branch=frappe_branch, bench=path, build_asset_files=False, verbose=verbose)
File “/home/frappe/bench-repo/bench/app.py”, line 57, in get_app
install_app(app, bench=bench, verbose=verbose)
File “/home/frappe/bench-repo/bench/app.py”, line 84, in install_app
find_links=find_links))
File “/home/frappe/bench-repo/bench/utils.py”, line 99, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe