Hi all,
have been having issues with email not working (although it WAS working back in nov). This is the output from a bench update… Wondering if anyone has any suggestions?
erpnext@erpnext-vm:~/frappe-bench$ 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/erpnext/bench-repo/bench/cli.py”, line 60, in cli
bench()
File "/usr/local/lib/python2.7/dist-packages/click-3.3-py2.7.egg/click/core.py ", line 610, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click-3.3-py2.7.egg/click/core.py ", line 590, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click-3.3-py2.7.egg/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-3.3-py2.7.egg/click/core.py ", line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click-3.3-py2.7.egg/click/core.py ", line 416, in invoke
return callback(*args, **kwargs)
File “/home/erpnext/bench-repo/bench/cli.py”, line 210, in _update
version_upgrade = is_version_upgrade()
File “/home/erpnext/bench-repo/bench/app.py”, line 92, in is_version_upgrade
upstream_version = get_upstream_version(‘frappe’, bench=bench, branch=branch )
File “/home/erpnext/bench-repo/bench/app.py”, line 135, in get_upstream_versio n
return get_version_from_string(contents)
File “/home/erpnext/bench-repo/bench/app.py”, line 191, in get_version_from_st ring
return match.group(2)
AttributeError: ‘NoneType’ object has no attribute ‘group’
OK, so following a few other support threads led me to do a git pull origin
after that I ran into another issue where I was getting a - tuple has not attribute __name__
error. That lead me to do another thread suggesting to run pip install --upgrade click
as Root.
NOW I am getting:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 5, in
from pkg_resources import load_entry_point
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 2707, in
working_set.require(requires)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 686, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Click
Ok so managed to fix this with a setup call however NOW when I do an update I get:
File “/home/erpnext/bench-repo/bench/config/redis.py”, line 67, in get_max_redis_memory
total_virtual_mem = psutil.virtual_memory().total/(pow(1024, 2))
AttributeError: ‘module’ object has no attribute ‘virtual_memory’
erpnext@erpnext-vm:~/frappe-bench$ bench update
This update will replace ERPNext’s Redis configuration files to fix a major security issue.
If you don’t know what this means, type Y
Do you want to continue? [y/N]: y
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘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
patches.run(bench_path=‘.’)
File “/home/erpnext/bench-repo/bench/patches/init.py”, line 21, in run
result = execute(bench_path)
File “/home/erpnext/bench-repo/bench/patches/v3/redis_bind_ip.py”, line 10, in execute
generate_config(bench_path)
File “/home/erpnext/bench-repo/bench/config/redis.py”, line 32, in generate_config
“maxmemory”: config.get(‘cache_maxmemory’, get_max_redis_memory()),
File “/home/erpnext/bench-repo/bench/config/redis.py”, line 67, in get_max_redis_memory
total_virtual_mem = psutil.virtual_memory().total/(pow(1024, 2))
AttributeError: ‘module’ object has no attribute ‘virtual_memory’
erpnext@erpnext-vm:~/frappe-bench$