I am running bench version 4.1.0 - installed with frappe user & production mode on Ubuntu 14.04 LTS
$ pip -V
pip 9.0.3 from /usr/local/lib/python2.7/dist-packages/pip-9.0.3-py2.7.egg (python 2.7)
$ bench init frappe-bench-v7 --frappe-branch v7.x.x --verbose
/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a 2.7.x release that supports hmac.compare_digest as soon as possible.
utils.DeprecatedIn23,
INFO:bench.utils:virtualenv -q env -p /usr/bin/python
Already using interpreter /usr/bin/python
INFO:bench.utils:env/bin/pip -q install wheel
INFO:bench.utils:env/bin/pip -q install six
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 --branch v7.x.x --origin upstream
Cloning into 'frappe'...
remote: Counting objects: 152473, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 152473 (delta 0), reused 1 (delta 0), pack-reused 152470
Receiving objects: 100% (152473/152473), 167.75 MiB | 11.88 MiB/s, done.
Resolving deltas: 100% (115576/115576), done.
Checking connectivity... done.
('installing', u'frappe')
INFO:bench.app:installing frappe
INFO:bench.utils:frappe-bench-v7/env/bin/pip install -e frappe-bench-v7/apps/frappe --no-cache-dir
Obtaining file:///home/frappe/frappe-bench-v7/apps/frappe
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/frappe/frappe-bench-v7/apps/frappe/setup.py", line 2, in <module>
from pip.req import parse_requirements
ImportError: No module named req
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/frappe/frappe-bench-v7/apps/frappe/
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/frappe/.bench/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 "/home/frappe/.bench/bench/commands/make.py", line 30, in init
python = python)
File "/home/frappe/.bench/bench/utils.py", line 75, in init
get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)
File "/home/frappe/.bench/bench/app.py", line 135, in get_app
install_app(app=app_name, bench_path=bench_path, verbose=verbose)
File "/home/frappe/.bench/bench/app.py", line 179, in install_app
find_links=find_links))
File "/home/frappe/.bench/bench/utils.py", line 159, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench-v7/env/bin/pip install -e frappe-bench-v7/apps/frappe --no-cache-dir