0% found this document useful (0 votes)
162 views

Odoo 13 Error

This document contains log output from an Odoo instance. It shows an error occurring during the loading of modules and initialization of the registry when attempting to install a new module. Specifically, it is failing to adapt a dictionary value when executing a SQL query, resulting in a psycopg2 programming error. This is preventing the registry from loading properly.

Uploaded by

no
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
162 views

Odoo 13 Error

This document contains log output from an Odoo instance. It shows an error occurring during the loading of modules and initialization of the registry when attempting to install a new module. Specifically, it is failing to adapt a dictionary value when executing a SQL query, resulting in a psycopg2 programming error. This is preventing the registry from loading properly.

Uploaded by

no
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

Traceback (most recent call last):

File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 87, in new


odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/shani/fynarfin/odoo13/odoo/modules/loading.py", line 426, in
load_modules
processed_modules += load_marked_modules(cr, graph,
File "/home/shani/fynarfin/odoo13/odoo/modules/loading.py", line 313, in
load_marked_modules
loaded, processed = load_module_graph(
File "/home/shani/fynarfin/odoo13/odoo/modules/loading.py", line 202, in
load_module_graph
registry.init_models(cr, model_names, {'module': package.name}, new_install)
File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 377, in
init_models
func()
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 381, in _reflect
self.env['ir.model.fields']._reflect_model(self)
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_model.py", line 931,
in _reflect_model
ids = query_insert(cr, self._table, to_insert)
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_model.py", line 57,
in query_insert
cr.execute(query, params)
File "/home/shani/fynarfin/odoo13/odoo/sql_db.py", line 173, in wrapper
return f(self, *args, **kwargs)
File "/home/shani/fynarfin/odoo13/odoo/sql_db.py", line 250, in execute
res = self._obj.execute(query, params)
File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/
psycopg2/extensions.py", line 120, in getquoted
pobjs = [adapt(o) for o in self._seq]
File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/
psycopg2/extensions.py", line 120, in <listcomp>
pobjs = [adapt(o) for o in self._seq]
psycopg2.ProgrammingError: can't adapt type 'dict'
2022-05-19 11:34:07,667 30588 ERROR odoodb13 odoo.http: Exception during JSON
request handling.
Traceback (most recent call last):
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 625, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 311, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/shani/fynarfin/odoo13/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 670, in dispatch
result = self._call_function(**self.params)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 351, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/shani/fynarfin/odoo13/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 340, in checked_call
result = self.endpoint(*a, **kw)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 916, in __call__
return self.method(*args, **kw)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 516, in response_wrap
response = f(*args, **kw)
File "/home/shani/fynarfin/odoo13/addons/web/controllers/main.py", line 1346, in
call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/shani/fynarfin/odoo13/addons/web/controllers/main.py", line 1334, in
_call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/shani/fynarfin/odoo13/odoo/api.py", line 390, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/shani/fynarfin/odoo13/odoo/api.py", line 377, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-60>", line 2, in button_immediate_install
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_module.py", line 73,
in check_and_log
return method(self, *args, **kwargs)
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_module.py", line
464, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_module.py", line
574, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/shani/fynarfin/odoo13/odoo/modules/loading.py", line 426, in
load_modules
processed_modules += load_marked_modules(cr, graph,
File "/home/shani/fynarfin/odoo13/odoo/modules/loading.py", line 313, in
load_marked_modules
loaded, processed = load_module_graph(
File "/home/shani/fynarfin/odoo13/odoo/modules/loading.py", line 202, in
load_module_graph
registry.init_models(cr, model_names, {'module': package.name}, new_install)
File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 377, in
init_models
func()
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 381, in _reflect
self.env['ir.model.fields']._reflect_model(self)
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_model.py", line 931,
in _reflect_model
ids = query_insert(cr, self._table, to_insert)
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/ir_model.py", line 57,
in query_insert
cr.execute(query, params)
File "/home/shani/fynarfin/odoo13/odoo/sql_db.py", line 173, in wrapper
return f(self, *args, **kwargs)
File "/home/shani/fynarfin/odoo13/odoo/sql_db.py", line 250, in execute
res = self._obj.execute(query, params)
File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/
psycopg2/extensions.py", line 120, in getquoted
pobjs = [adapt(o) for o in self._seq]
File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/
psycopg2/extensions.py", line 120, in <listcomp>
pobjs = [adapt(o) for o in self._seq]
psycopg2.ProgrammingError: can't adapt type 'dict'
2022-05-19 11:34:07,859 30588 DEBUG odoodb13 odoo.modules.registry: Multiprocess
load registry signaling: [Registry: 1] [Cache: 2]
2022-05-19 11:34:07,867 30588 INFO odoodb13 odoo.modules.loading: loading 1
modules...
2022-05-19 11:34:07,867 30588 DEBUG odoodb13 odoo.modules.loading: loading module
base (1/1)
2022-05-19 11:34:07,889 30588 INFO odoodb13 odoo.modules.loading: 1 modules loaded
in 0.02s, 0 queries
2022-05-19 11:34:07,896 30588 DEBUG odoodb13 odoo.modules.loading: Updating graph
with 7 more modules
2022-05-19 11:34:07,896 30588 INFO odoodb13 odoo.modules.loading: loading 8
modules...
2022-05-19 11:34:07,897 30588 DEBUG odoodb13 odoo.modules.loading: loading module
swipe_images_backend (2/8)
2022-05-19 11:34:07,897 30588 DEBUG odoodb13 odoo.modules.loading: loading module
web (3/8)
2022-05-19 11:34:07,906 30588 DEBUG odoodb13 odoo.modules.loading: loading module
base_import (4/8)
2022-05-19 11:34:07,918 30588 DEBUG odoodb13 odoo.modules.loading: loading module
web_diagram (5/8)
2022-05-19 11:34:07,919 30588 DEBUG odoodb13 odoo.modules.loading: loading module
web_editor (6/8)
2022-05-19 11:34:07,924 30588 DEBUG odoodb13 odoo.modules.loading: loading module
web_kanban_gauge (7/8)
2022-05-19 11:34:07,924 30588 DEBUG odoodb13 odoo.modules.loading: loading module
web_tour (8/8)
2022-05-19 11:34:07,925 30588 INFO odoodb13 odoo.modules.loading: 8 modules loaded
in 0.03s, 0 queries
2022-05-19 11:34:07,975 30588 INFO odoodb13 odoo.modules.loading: Modules loaded.
2022-05-19 11:34:07,978 30588 WARNING odoodb13 odoo.modules.loading: Transient
module states were reset
2022-05-19 11:34:07,978 30588 ERROR odoodb13 odoo.modules.registry: Failed to load
registry
Traceback (most recent call last):
File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 61, in __new__
return cls.registries[db_name]
File "/home/shani/fynarfin/odoo13/odoo/tools/func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "/home/shani/fynarfin/odoo13/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: 'odoodb13'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):


File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/shani/fynarfin/odoo13/odoo/modules/loading.py", line 544, in
load_modules
model._register_hook()
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/res_lang.py", line 88,
in _register_hook
if not self.search_count([]):
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 1632, in search_count
res = self.search(args, count=True)
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 1655, in search
res = self._search(args, offset=offset, limit=limit, order=order, count=count)
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 4506, in _search
query = self._where_calc(args)
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 4228, in _where_calc
where_clause, where_params = e.to_sql()
File "/home/shani/fynarfin/odoo13/odoo/osv/expression.py", line 1306, in to_sql
q, ps = self.__leaf_to_sql(leaf)
TypeError: _wrapper() missing 2 required positional arguments: 'model' and 'alias'
2022-05-19 11:34:07,993 30588 INFO odoodb13 werkzeug: 127.0.0.1 - - [19/May/2022
11:34:07] "POST /web/dataset/call_button HTTP/1.1" 500 - 2257 3.694 3.192
2022-05-19 11:34:08,044 30588 ERROR odoodb13 werkzeug: Error on request:
Traceback (most recent call last):
File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 61, in __new__
return cls.registries[db_name]
File "/home/shani/fynarfin/odoo13/odoo/tools/func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "/home/shani/fynarfin/odoo13/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: 'odoodb13'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):


File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/
werkzeug/serving.py", line 304, in run_wsgi
execute(self.server.app)
File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/
werkzeug/serving.py", line 292, in execute
application_iter = app(environ, start_response)
File "/home/shani/fynarfin/odoo13/odoo/service/server.py", line 440, in app
return self.app(e, s)
File "/home/shani/fynarfin/odoo13/odoo/service/wsgi_server.py", line 142, in
application
return application_unproxied(environ, start_response)
File "/home/shani/fynarfin/odoo13/odoo/service/wsgi_server.py", line 117, in
application_unproxied
result = odoo.http.root(environ, start_response)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 1288, in __call__
return self.dispatch(environ, start_response)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 1258, in __call__
return self.app(environ, start_wrapped)
File "/home/shani/fynarfin/odoo13/odoo13env/lib/python3.8/site-packages/
werkzeug/middleware/shared_data.py", line 220, in __call__
return self.app(environ, start_response)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 1479, in dispatch
response = self.get_response(httprequest, result, explicit_session)
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 285, in __exit__
elif self.registry:
File "/home/shani/fynarfin/odoo13/odoo/http.py", line 369, in registry
return odoo.registry(self.db)
File "/home/shani/fynarfin/odoo13/odoo/__init__.py", line 104, in registry
return modules.registry.Registry(database_name)
File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 63, in __new__
return cls.new(db_name)
File "/home/shani/fynarfin/odoo13/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/shani/fynarfin/odoo13/odoo/modules/loading.py", line 544, in
load_modules
model._register_hook()
File "/home/shani/fynarfin/odoo13/odoo/addons/base/models/res_lang.py", line 88,
in _register_hook
if not self.search_count([]):
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 1632, in search_count
res = self.search(args, count=True)
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 1655, in search
res = self._search(args, offset=offset, limit=limit, order=order, count=count)
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 4506, in _search
query = self._where_calc(args)
File "/home/shani/fynarfin/odoo13/odoo/models.py", line 4228, in _where_calc
where_clause, where_params = e.to_sql()
File "/home/shani/fynarfin/odoo13/odoo/osv/expression.py", line 1306, in to_sql
q, ps = self.__leaf_to_sql(leaf)
TypeError: _wrapper() missing 2 required positional arguments: 'model' and 'alias'
- - -

You might also like