Bench update error,frappe not found

Already up-to-date.
From https://github.com/wcl/pycrm

  • branch master -> FETCH_HEAD
    Already up-to-date.
    From https://github.com/frappe/frappe
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    frappe app is not installed. Run the following command to install frappe
    bench get-app frappe https://github.com/frappe/frappe.git
    /bin/sh: 1: /home/ubuntu/frappe-bench/env/bin/frappe: not found
    Error: None
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
    File “/home/ubuntu/bench-repo/bench/cli.py”, line 55, in cli
    bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
    return callback(*args, **kwargs)
    File “/home/ubuntu/bench-repo/bench/cli.py”, line 243, in update
    backup_all_sites()
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 318, in backup_all_sites
    backup_site(site, bench=bench)
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 314, in backup_site
    cwd=os.path.join(bench, ‘sites’))
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 72, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
    File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘/home/ubuntu/frappe-bench/env/bin/frappe --backup site1.local’ returned non-zero exit status 127

This seems to be a shlep. Can you try updating agian?

I tried it, is still an error

From https://github.com/frappe/frappe

  • branch develop -> FETCH_HEAD
    Updating e244c49…d889672
    Fast-forward
    frappe/public/js/frappe/list/doclistview.js | 2 ±
    frappe/templates/pages/update-password.html | 2 ±
    frappe/website/doctype/web_page/web_page.py | 3 +±
    3 files changed, 4 insertions(+), 3 deletions(-)
    frappe app is not installed. Run the following command to install frappe
    bench get-app frappe https://github.com/frappe/frappe.git
    /bin/sh: 1: /home/ubuntu/frappe-bench/env/bin/frappe: not found
    Error: None
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
    File “/home/ubuntu/bench-repo/bench/cli.py”, line 55, in cli
    bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
    return callback(*args, **kwargs)
    File “/home/ubuntu/bench-repo/bench/cli.py”, line 243, in update
    backup_all_sites()
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 318, in backup_all_sites
    backup_site(site, bench=bench)
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 314, in backup_site
    cwd=os.path.join(bench, ‘sites’))
    File “/home/ubuntu/bench-repo/bench/utils.py”, line 72, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
    File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘/home/ubuntu/frappe-bench/env/bin/frappe --backup site1.local’ returned non-zero exit status 127

Hi,

Why is your frappe branch develop and erpnext master. develop branch is under version 5 while v4.x.x is under v4. Can you tell us more about how did you setup the bench?

-Anand.

1、wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
2、sudo bash setup_frappe.sh
3、when installing frappe, there was an error occured, so I delete the frappe-bench folder and reinstall.
4、rm -rf frappe-bench
5、bench init frappe-bench
6、bench new-site site1.local

I did not install erpnext.

If you want to develop on version 4.x.x,

bench switch-to-v4
bench update

I want to dev on v5.
I do not know why always find “env/bin/frappe”

I do not know what went wrong

thanks

Hey,

It’s a bug in bench, fixing it. Will notify when fixed.

Thanks,
Pratik

Run bench update again

now, works fine!!
thanks