On fresh install debian 9 :
bench init frappe-bench
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 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 GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --origin upstream
Cloning into ‘frappe’…
remote: Counting objects: 141426, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 141426 (delta 27), reused 28 (delta 15), pack-reused 141362
Receiving objects: 100% (141426/141426), 132.10 MiB | 3.08 MiB/s, done.
Resolving deltas: 100% (106504/106504), 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
Updating node packages…
Traceback (most recent call last):
File “/home/frappe/.local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/home/frappe/.local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/frappe/.local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/frappe/.local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/.local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/.local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/commands/make.py”, line 28, in init
python = python)
File “/home/frappe/bench-repo/bench/utils.py”, line 75, in init
update_node_packages(bench_path=path)
File “/home/frappe/bench-repo/bench/utils.py”, line 436, in update_node_packages
v = semantic_version.Version(get_current_version(‘frappe’))
File “/home/frappe/bench-repo/bench/app.py”, line 257, in get_current_version
with open(os.path.join(repo_dir, os.path.basename(repo_dir), ‘init.py’)) as f:
IOError: [Errno 2] No such file or directory: ‘./apps/frappe/frappe/init.py’
file frappe-bench/apps/frappe/frappe/init.py exists and is owned by the user who launch the bench init