Bench update error for V6 to V7 upgrate. AttributeError: 'NoneType' object has no attribute 'group'

ubuntu@shei:~$ bench update
remote: Counting objects: 87, done.
remote: Compressing objects: 100% (86/86), done.
remote: Total 87 (delta 33), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (87/87), done.
From https://github.com/frappe/frappe
   a955023..0616e7e  develop    -> upstream/develop
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==2.0.0', 'console_scripts', 'bench')()
  File "/home/ubuntu/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/ubuntu/bench-repo/bench/commands/update.py", line 30, in update
    version_upgrade = is_version_upgrade()
  File "/home/ubuntu/bench-repo/bench/app.py", line 96, in is_version_upgrade
    upstream_version = get_upstream_version('frappe', bench=bench, branch=branch)
  File "/home/ubuntu/bench-repo/bench/app.py", line 139, in get_upstream_version
    return get_version_from_string(contents)
  File "/home/ubuntu/bench-repo/bench/app.py", line 195, in get_version_from_string
    return match.group(2)
AttributeError: 'NoneType' object has no attribute 'group'

@chafor try following and post your results:

ubuntu@ip-172-31-14-55:~$ bench update
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 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in call
return self.main(args, *kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, *ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invoke
return callback(args, **kwargs)
File “/home/ubuntu/bench-repo/bench/commands/update.py”, line 30, in update
version_upgrade = is_version_upgrade()
File “/home/ubuntu/bench-repo/bench/app.py”, line 96, in is_version_upgrade
upstream_version = get_upstream_version(‘frappe’, bench=bench, branch=branch)
File “/home/ubuntu/bench-repo/bench/app.py”, line 139, in get_upstream_version
return get_version_from_string(contents)
File “/home/ubuntu/bench-repo/bench/app.py”, line 195, in get_version_from_string
return match.group(2)
AttributeError: ‘NoneType’ object has no attribute ‘group’

Try following and post your results. Thanks

/usr/local/bin/bench update
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.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/update.py", line 31, in update
    version_upgrade = is_version_upgrade()
  File "/home/frappe/bench-repo/bench/app.py", line 102, in is_version_upgrade
    upstream_version = get_upstream_version('frappe', bench=bench, branch=branch)
  File "/home/frappe/bench-repo/bench/app.py", line 150, in get_upstream_version
    return get_version_from_string(contents)
  File "/home/frappe/bench-repo/bench/app.py", line 206, in get_version_from_string
    return match.group(2)
AttributeError: 'NoneType' object has no attribute 'group'

nevermind it seems to be working now after following instructions here