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

Hi All,


Can anyone help me to fix error 500. My logs is follow:


:~$ tail -n 20 /var/log/odoo//odoo-server.log

    r = d[key]

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

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

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

    a = self.d[obj].me

KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7ff0652b1670>, 255, ('vi_VN', None, None, None, False, 1))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/odoo/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 00:56:03,280 20019 INFO XXXX.CO werkzeug: XX.XX.XX.XX - - [17/Oct/2020 00:56:03] "GET /favicon.ico HTTP/1.0" 200 - 10 0.008 0.017

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

:~$ tail -f /var/log/odoo//odoo-server.log
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 00:56:03,280 20019 INFO XXXX.CO werkzeug: XX.XXX.118.163 - - [17/Oct/2020 00:56:03] "GET /favicon.ico HTTP/1.0" 200 - 10 0.008 0.017
2020-10-17 01:01:09,215 20031 INFO XXXX.CO odoo.addons.base.models.ir_cron: Starting job `Post process payment transactions`.
2020-10-17 01:01:09,229 20031 INFO XXXX.CO odoo.addons.base.models.ir_cron: Job `Post process payment transactions` done.
2020-10-17 01:06:07,501 20029 INFO XXXX.CO odoo.addons.base.models.ir_cron: Starting job `Email Marketing: Process queue`.
2020-10-17 01:06:07,508 20029 INFO XXXX.CO odoo.modules.registry: Invalidating all model caches after database signaling.
2020-10-17 01:06:07,518 20029 INFO XXXX.CO odoo.addons.base.models.ir_cron: Job `Email Marketing: Process queue` done.

Avatar
Discard
Author Best Answer

@ Niyas Raphy

Thank you it works like charms.

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
Related Posts Replies Views Activity
0
Dec 21
642
4
Apr 17
3939
2
Mar 22
2548
4
Sep 15
4488
1
Dec 24
178