Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 39, in render
data = render_page_by_language(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 133, in render_page_by_language
return render_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 149, in render_page
return build(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 156, in build
return build_page(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py”, line 169, in build_page
context = get_context(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py”, line 15, in get_context
context = get_page_context(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py”, line 35, in get_page_context
page_context = make_page_context(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py”, line 43, in make_page_context
context = resolve_route(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py”, line 21, in resolve_route
return get_page_context_from_doctype(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py”, line 75, in get_page_context_from_doctype
page_info = get_page_info_from_doctypes(path)
File “/home/frappe/frappe-bench/apps/frappe/frappe/website/router.py”, line 97, in get_page_info_from_doctypes
controller = get_controller(doctype)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 36, in get_controller
module = load_doctype_module(doctype, module_name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 185, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 704, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/newsletter/newsletter.py”, line 10, in
from frappe.email.queue import check_email_limit
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py”, line 17, in
from frappe.utils.scheduler import log
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 47, in
“all”: “0/” + str((frappe.get_conf().scheduler_interval or 240) // 60) + " * * * *",
TypeError: unsupported operand type(s) for //: ‘unicode’ and ‘int’
Perhaps the problem is you have defined scheduler_interval as a string and not an int?
So for example instead of this:
bench set-config scheduler_interval 300
you have specified this:
bench set-config scheduler_interval ‘300’
With the latter spec, I get the error you are experiencing
frappe@erpnext:~/frappe-bench$ less sites/site1.local/site_config.json | grep scheduler_interval
“scheduler_interval”: “300”,
In [19]: frappe.get_conf().scheduler_interval
Out[19]: u’300’
In [20]: “0/” + str((frappe.get_conf().scheduler_interval or 240) // 60)
TypeError Traceback (most recent call last)
/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.pyc in ()
----> 1 “0/” + str((frappe.get_conf().scheduler_interval or 240) // 60)
TypeError: unsupported operand type(s) for //: ‘unicode’ and ‘int’
thank you ,but how to change it ti integer type now
frappe@erpnext:~/frappe-bench$ bench set-config scheduler_interval 300
frappe@erpnext:~/frappe-bench$ less sites/aproposcomputing.com/site_config.json | grep scheduler_interval
“scheduler_interval”: “300”,
ok yes my bad, the above does not save the value as a integer as I had thought
So instead manually edit the file, to change or add this entry:
“scheduler_interval”: 300,
thank you it worked i am able to login