Version error on bench update

im trying to exceute this line in in frappe-bench path :

bench update --no-backup --reset

But this stacktrace is printed everytime i dont know what does it mean or how to resolve it so any help would wonderful.
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/”, line 41, in cli
File “/usr/local/lib/python3.6/dist-packages/click/”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/click/”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.6/dist-packages/click/”, line 1134, in invoke
Command.invoke(self, ctx)
File “/usr/local/lib/python3.6/dist-packages/click/”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.6/dist-packages/click/”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/”, line 20, in bench_command
File “/home/frappe/.bench/bench/”, line 13, in set_frappe_version
FRAPPE_VERSION = get_current_frappe_version(bench_path=bench_path)
File “/home/frappe/.bench/bench/”, line 295, in get_current_frappe_version
return get_major_version(get_current_version(‘frappe’, bench_path=bench_path))
File “/home/frappe/.bench/bench/”, line 430, in get_major_version
return semantic_version.Version(version).major
File “/usr/local/lib/python3.6/dist-packages/semantic_version/”, line 105, in init
major, minor, patch, prerelease, build = self.parse(version_string, partial)
File “/usr/local/lib/python3.6/dist-packages/semantic_version/”, line 303, in parse
raise ValueError(‘Invalid version string: %r’ % version_string)
ValueError: Invalid version string: ‘Release 12.22.1’

This was a recent bug, but should be fixed now.

1 Like

@brian_pond Thank you, i will try installing the newest version.

@brian_pond I had it installed in server, if i try to re-install frappe im going to loose all the data. so is there any way that i can keep my data and re-install it.