Skip to Content
Menu
This question has been flagged
2 Replies
6591 Views

My Odoo 13 Community Version is functioning well on my AWS EC2 Ubuntu.


One day, without performing any deployment / code change, when I try to open the front page of my Odoo site, "500 Internal Server Error" is encountered, which is very very weird.


I looked into the log (shown below) and got no clue about what happened. May I know whether there is anyone who can help me out ? Million thanks !

-----------------------------------

Log Content:


Error when compiling AST

ValueError: Name node can't be used with 'None' constant

Template: http_routing.http_error

Path: /t/t/div/t/t

Node: <t t-call="http_routing.http_error_debug"/> - - -

2020-10-17 06:58:21,283 44516 ERROR Supreme odoo.addons.http_routing.models.ir_http: 500 Internal Server Error:


Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 'website.layout', ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 229, in _dispatch

    result = request.dispatch()

  File "/opt/odoo/odoo/http.py", line 809, in dispatch

    r = self._call_function(**self.params)

  File "/opt/odoo/odoo/http.py", line 350, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/odoo/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/odoo/http.py", line 342, in checked_call

    result.flatten()

  File "/opt/odoo/odoo/http.py", line 1236, in flatten

    self.response.append(self.render())

  File "/opt/odoo/odoo/http.py", line 1229, in render

    return env["ir.ui.view"].render_template(self.template, self.qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1177, in render_template

    return self.browse(self.get_view_id(template)).render(values, engine)

  File "/opt/odoo/addons/website/models/ir_ui_view.py", line 336, in render

    return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render

    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1185, in render

    return self.env[engine].render(self.id, qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 58, in render

    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 260, in render

    self.compile(template, options)(self, body.append, values or {})

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 334, in _compiled_fn

    raise e

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "<template>", line 1, in template_website_homepage1_1084

  File "<decorator-gen-54>", line 2, in compile

  File "/opt/odoo/odoo/tools/cache.py", line 90, in lookup

    value = d[key] = self.method(*args, **kwargs)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 113, in compile

    return super(IrQWeb, self).compile(id_or_xml_id, options=options)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 323, in compile

    raise QWebException("Error when compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)

odoo.addons.base.models.qweb.QWebException: Name node can't be used with 'None' constant

Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 'website.layout', ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


Error when compiling AST

ValueError: Name node can't be used with 'None' constant

Template: web.frontend_layout

Path: /t/html/body/script/t

Node: <t t-esc="website.google_analytics_key"/>'.trim(), 'auto');

            ga('send','pageview');



2020-10-17 06:58:21,403 44516 INFO Supreme werkzeug: 127.0.0.1 - - [17/Oct/2020 06:58:21] "GET / HTTP/1.0" 500 - 128 0.046 0.161

2020-10-17 06:58:21,406 44516 ERROR Supreme werkzeug: Error on request:

Traceback (most recent call last):

  File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 270, in run_wsgi

    execute(self.server.app)

  File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 258, in execute

    application_iter = app(environ, start_response)

  File "/opt/odoo/odoo/service/server.py", line 439, in app

    return self.app(e, s)

  File "/opt/odoo/odoo/service/wsgi_server.py", line 142, in application

    return application_unproxied(environ, start_response)

  File "/opt/odoo/odoo/service/wsgi_server.py", line 117, in application_unproxied

    result = odoo.http.root(environ, start_response)

  File "/opt/odoo/odoo/http.py", line 1287, in __call__

    return self.dispatch(environ, start_response)

  File "/opt/odoo/odoo/http.py", line 1257, in __call__

    return self.app(environ, start_wrapped)

  File "/usr/local/lib/python3.8/dist-packages/werkzeug/wsgi.py", line 766, in __call__

    return self.app(environ, start_response)

  File "/opt/odoo/odoo/http.py", line 1457, in dispatch

    result = ir_http._dispatch()

  File "/opt/odoo/addons/website/models/ir_http.py", line 172, in _dispatch

    response = super(Http, cls)._dispatch()

  File "/opt/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch

    return super(Http, cls)._dispatch()

  File "/opt/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch

    return super(IrHttp, cls)._dispatch()

  File "/opt/odoo/addons/utm/models/ir_http.py", line 29, in _dispatch

    response = super(IrHttp, cls)._dispatch()

  File "/opt/odoo/addons/http_routing/models/ir_http.py", line 519, in _dispatch

    result = super(IrHttp, cls)._dispatch()

  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 233, in _dispatch

    return cls._handle_exception(e)

  File "/opt/odoo/addons/utm/models/ir_http.py", line 34, in _handle_exception

    response = super(IrHttp, cls)._handle_exception(exc)

  File "/opt/odoo/addons/http_routing/models/ir_http.py", line 660, in _handle_exception

    html = env['ir.ui.view'].render_template('http_routing.http_error', values)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1177, in render_template

    return self.browse(self.get_view_id(template)).render(values, engine)

  File "/opt/odoo/addons/website/models/ir_ui_view.py", line 336, in render

    return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render

    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1185, in render

    return self.env[engine].render(self.id, qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 58, in render

    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 260, in render

    self.compile(template, options)(self, body.append, values or {})

  File "<decorator-gen-54>", line 2, in compile


  File "/opt/odoo/odoo/tools/cache.py", line 90, in lookup

    value = d[key] = self.method(*args, **kwargs)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 113, in compile

    return super(IrQWeb, self).compile(id_or_xml_id, options=options)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 323, in compile

    raise QWebException("Error when compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)

odoo.addons.base.models.qweb.QWebException: Name node can't be used with 'None' constant

Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 'website.layout', ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/addons/http_routing/models/ir_http.py", line 612, in _handle_exception

    response = super(IrHttp, cls)._handle_exception(exception)

  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 201, in _handle_exception

    return request._handle_exception(exception)

  File "/opt/odoo/odoo/http.py", line 750, in _handle_exception

    return super(HttpRequest, self)._handle_exception(exception)

  File "/opt/odoo/odoo/http.py", line 310, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/opt/odoo/odoo/tools/pycompat.py", line 14, in reraise

    raise value

  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 229, in _dispatch

    result = request.dispatch()

  File "/opt/odoo/odoo/http.py", line 809, in dispatch

    r = self._call_function(**self.params)

  File "/opt/odoo/odoo/http.py", line 350, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/odoo/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/odoo/http.py", line 342, in checked_call

    result.flatten()

  File "/opt/odoo/odoo/http.py", line 1236, in flatten

    self.response.append(self.render())

  File "/opt/odoo/odoo/http.py", line 1229, in render

    return env["ir.ui.view"].render_template(self.template, self.qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1177, in render_template

    return self.browse(self.get_view_id(template)).render(values, engine)

  File "/opt/odoo/addons/website/models/ir_ui_view.py", line 336, in render

    return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render

    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1185, in render

    return self.env[engine].render(self.id, qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 58, in render

    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 260, in render

    self.compile(template, options)(self, body.append, values or {})

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 334, in _compiled_fn

    raise e

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "<template>", line 1, in template_website_homepage1_1084

  File "<decorator-gen-54>", line 2, in compile

  File "/opt/odoo/odoo/tools/cache.py", line 90, in lookup

    value = d[key] = self.method(*args, **kwargs)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 113, in compile

    return super(IrQWeb, self).compile(id_or_xml_id, options=options)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 323, in compile

    raise QWebException("Error when compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)

odoo.addons.base.models.qweb.QWebException: Name node can't be used with 'None' constant

Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 'website.layout', ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


Error when compiling AST

ValueError: Name node can't be used with 'None' constant

Template: web.frontend_layout

Path: /t/html/body/script/t

Node: <t t-esc="website.google_analytics_key"/>'.trim(), 'auto');

            ga('send','pageview');



During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 262, ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/addons/http_routing/models/ir_http.py", line 658, in _handle_exception

    html = cls._get_error_html(env, code, values)

  File "/opt/odoo/addons/website/models/ir_http.py", line 319, in _get_error_html

    return super(Http, cls)._get_error_html(env, code, values)

  File "/opt/odoo/addons/http_routing/models/ir_http.py", line 603, in _get_error_html

    return env['ir.ui.view'].render_template('http_routing.%s' % code, values)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1177, in render_template

    return self.browse(self.get_view_id(template)).render(values, engine)

  File "/opt/odoo/addons/website/models/ir_ui_view.py", line 336, in render

    return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render

    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1185, in render

    return self.env[engine].render(self.id, qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 58, in render

    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 260, in render

    self.compile(template, options)(self, body.append, values or {})

  File "<decorator-gen-54>", line 2, in compile

  File "/opt/odoo/odoo/tools/cache.py", line 90, in lookup

    value = d[key] = self.method(*args, **kwargs)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 113, in compile

    return super(IrQWeb, self).compile(id_or_xml_id, options=options)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 323, in compile

    raise QWebException("Error when compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)

odoo.addons.base.models.qweb.QWebException: Name node can't be used with 'None' constant

Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 'website.layout', ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/addons/http_routing/models/ir_http.py", line 612, in _handle_exception

    response = super(IrHttp, cls)._handle_exception(exception)

  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 201, in _handle_exception

    return request._handle_exception(exception)

  File "/opt/odoo/odoo/http.py", line 750, in _handle_exception

    return super(HttpRequest, self)._handle_exception(exception)

  File "/opt/odoo/odoo/http.py", line 310, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/opt/odoo/odoo/tools/pycompat.py", line 14, in reraise

    raise value

  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 229, in _dispatch

    result = request.dispatch()

  File "/opt/odoo/odoo/http.py", line 809, in dispatch

    r = self._call_function(**self.params)

  File "/opt/odoo/odoo/http.py", line 350, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/odoo/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/odoo/http.py", line 342, in checked_call

    result.flatten()

  File "/opt/odoo/odoo/http.py", line 1236, in flatten

    self.response.append(self.render())

  File "/opt/odoo/odoo/http.py", line 1229, in render

    return env["ir.ui.view"].render_template(self.template, self.qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1177, in render_template

    return self.browse(self.get_view_id(template)).render(values, engine)

  File "/opt/odoo/addons/website/models/ir_ui_view.py", line 336, in render

    return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render

    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 1185, in render

    return self.env[engine].render(self.id, qcontext)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 58, in render

    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 260, in render

    self.compile(template, options)(self, body.append, values or {})

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 334, in _compiled_fn

    raise e

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 332, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "<template>", line 1, in template_website_homepage1_1084

  File "<decorator-gen-54>", line 2, in compile

  File "/opt/odoo/odoo/tools/cache.py", line 90, in lookup

    value = d[key] = self.method(*args, **kwargs)

  File "/opt/odoo/odoo/addons/base/models/ir_qweb.py", line 113, in compile

    return super(IrQWeb, self).compile(id_or_xml_id, options=options)

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 323, in compile

    raise QWebException("Error when compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)

odoo.addons.base.models.qweb.QWebException: Name node can't be used with 'None' constant

Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 'website.layout', ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


Error when compiling AST

ValueError: Name node can't be used with 'None' constant

Template: web.frontend_layout

Path: /t/html/body/script/t

Node: <t t-esc="website.google_analytics_key"/>'.trim(), 'auto');

            ga('send','pageview');



During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 262, ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


Error when compiling AST

ValueError: Name node can't be used with 'None' constant

Template: http_routing.500

Path: /t/html/body/div[2]/main/t/t

Node: <t t-call="http_routing.http_error_debug"/>



During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper

    return func(self, *args, **kwargs)

  File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7f46cc80baf0>, 256, ('en_US', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/odoo/addons/base/models/qweb.py", line 315, in compile

    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)

ValueError: Name node can't be used with 'None' constant


Error when compiling AST

ValueError: Name node can't be used with 'None' constant

Template: http_routing.http_error

Path: /t/t/div/t/t

Node: <t t-call="http_routing.http_error_debug"/> - - -

2020-10-17 06:58:21,431 44516 INFO Supreme werkzeug: 127.0.0.1 - - [17/Oct/2020 06:58:21] "GET /favicon.ico HTTP/1.0" 200 - 9 0.002 0.008


Avatar
Discard
Best Answer

Hi,

To resolve the issue, please update the odoo source code to its latest or run odoo with python version less than 3.8.


Thanks

Avatar
Discard
Author

Ok thanks ! Let me try now.

To double check with you (apologies that I am a newbie...), how should I update the odoo source code (I used "git clone" from github to install for the first time) ?

Author

Thank you so much ! It works magically !

FYI I used the instruction shown here: https://www.odoo.com/documentation/13.0/setup/update.html, which is similar to yours.

One last question (if you don't mind to enlighten me): from the log above, how did you identify that it is the source code version issue that caused the problem ?