Beta Development Setup - Bench Update

I have installed Beta Development Setup and am on Version 7. The Directory structure is like this:

frappe>frappe-bench

I don’t have the bench-repo folder at all. When I run the bench update command, I get the following error. What’s going on? Any help is appreciated.

jay@erpndev:~/frappe/frappe-bench$ bench update --upgrade
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 15 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (15/15), done.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
94521f6…f0b8677 develop → upstream/develop
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/usr/local/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 “/usr/local/frappe/bench-repo/bench/commands/update.py”, line 31, in update
version_upgrade = is_version_upgrade()
File “/usr/local/frappe/bench-repo/bench/app.py”, line 112, in is_version_upgrade
upstream_version = get_upstream_version(‘frappe’, bench=bench, branch=branch)
File “/usr/local/frappe/bench-repo/bench/app.py”, line 160, in get_upstream_version
return get_version_from_string(contents)
File “/usr/local/frappe/bench-repo/bench/app.py”, line 216, in get_version_from_string
return match.group(2)
AttributeError: ‘NoneType’ object has no attribute ‘group’

This is a known issue, can you go into the .bench / bench-repo folder in your home directory and run git pull there and try this command again?

No bench or bench-repo folders on my installation.

Thanks

" .bench " is a hidden folder

You should be able to access it by running :

cd ~/.bench

no bench folder. Unless it’s in some other location.

Thanks

Jay

For me it was just .bench not .bench/bench-repo. However the repo was full of uncommitted changes which I had to stash before I could get pull but the repo was up to date. The rest of installation went through