Help with error $bench update

Hello, greetings from Mexico, i need help please, with this error, this is the console dump:

erpnext@erpnextqp:~/frappe-bench/apps/erpnext$ bench version
erpnext 6.27.17
frappe 6.27.18
erpnext@erpnextqp:~/frappe-bench/apps/erpnext$ bench update
remote: Counting objects: 4214, done.
remote: Compressing objects: 100% (289/289), done.
remote: Total 4214 (delta 2027), reused 1890 (delta 1885), pack-reused 2039
Receiving objects: 100% (4214/4214), 1.54 MiB | 1.13 MiB/s, done.
Resolving deltas: 100% (3240/3240), completed with 593 local objects.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
2556fa1…92a67b7 master → upstream/master
e632947…db9ba84 develop → upstream/develop
59708d1…1ac174e gh-pages → upstream/gh-pages
4868582…92a67b7 hotfix → upstream/hotfix

  • [new tag] v6.27.24 → v6.27.24
  • [new tag] v6.27.19 → v6.27.19
  • [new tag] v6.27.20 → v6.27.20
  • [new tag] v6.27.21 → v6.27.21
  • [new tag] v6.27.22 → v6.27.22
  • [new tag] v6.27.23 → v6.27.23
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.0.0’, ‘console_scripts’, ‘bench’)()
    File “/home/erpnext/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/erpnext/bench-repo/bench/commands/update.py”, line 31, in update
    version_upgrade = is_version_upgrade()
    File “/home/erpnext/bench-repo/bench/app.py”, line 102, in is_version_upgrade
    upstream_version = get_upstream_version(‘frappe’, bench=bench, branch=branch)
    File “/home/erpnext/bench-repo/bench/app.py”, line 150, in get_upstream_version
    return get_version_from_string(contents)
    File “/home/erpnext/bench-repo/bench/app.py”, line 206, in get_version_from_string
    return match.group(2)
    AttributeError: ‘NoneType’ object has no attribute ‘group’

any help will be apreciated ! THANKS

Hi ,

Run
git fetch
git pull

in bench-repo

and then try bench update

1 Like

thank you, runned the git commands that you indicated in bench-repo and bench update was completed, Thanks !!!

edit: i was running git commands on another directory, after changing to the correct directory, everything went fine.
thanks!

1 Like

Good luck . Glad to help !