Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error base64.encodestring() is deprecated while importing products #94

Open
mariogustavoorrillo opened this issue Jun 27, 2022 · 0 comments

Comments

@mariogustavoorrillo
Copy link

2022-06-27 20:22:20,540 47495 WARNING prueba1 py.warnings: /opt/odoo15/sources/meli_oerp/models/product.py:988: DeprecationWarning: encodestring() is a deprecated alias since 3.1, use encodebytes()
File "/usr/lib/python3.8/threading.py", line 890, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/opt/odoo15/odoo/odoo/service/server.py", line 1062, in _runloop
self.process_work()
File "/opt/odoo15/odoo/odoo/service/server.py", line 1101, in process_work
self.process_request(client, addr)
File "/opt/odoo15/odoo/odoo/service/server.py", line 1092, in process_request
self.server.process_request(client, addr)
File "/usr/lib/python3.8/socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.8/socketserver.py", line 747, in init
self.handle()
File "/opt/odoo15/odoo-venv/lib/python3.8/site-packages/werkzeug/serving.py", line 329, in handle
rv = BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/opt/odoo15/odoo-venv/lib/python3.8/site-packages/werkzeug/serving.py", line 364, in handle_one_request
return self.run_wsgi()
File "/opt/odoo15/odoo-venv/lib/python3.8/site-packages/werkzeug/serving.py", line 306, in run_wsgi
execute(self.server.app)
File "/opt/odoo15/odoo-venv/lib/python3.8/site-packages/werkzeug/serving.py", line 294, in execute
application_iter = app(environ, start_response)
File "/opt/odoo15/odoo/odoo/service/wsgi_server.py", line 110, in application
return ProxyFix(application_unproxied)(environ, start_response)
File "/opt/odoo15/odoo-venv/lib/python3.8/site-packages/werkzeug/middleware/proxy_fix.py", line 232, in call
return self.app(environ, start_response)
File "/opt/odoo15/odoo/odoo/service/wsgi_server.py", line 87, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/opt/odoo15/odoo/odoo/http.py", line 1336, in call
return self.dispatch(environ, start_response)
File "/opt/odoo15/odoo/odoo/http.py", line 1302, in call
return self.app(environ, start_wrapped)
File "/opt/odoo15/odoo-venv/lib/python3.8/site-packages/werkzeug/middleware/shared_data.py", line 220, in call
return self.app(environ, start_response)
File "/opt/odoo15/odoo/odoo/http.py", line 1531, in dispatch
result = ir_http._dispatch()
File "/opt/odoo15/odoo/addons/website_sale/models/ir_http.py", line 15, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/opt/odoo15/odoo/addons/website/models/ir_http.py", line 198, in _dispatch
response = super(Http, cls)._dispatch()
File "/opt/odoo15/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "/opt/odoo15/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/opt/odoo15/odoo/addons/utm/models/ir_http.py", line 29, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "/opt/odoo15/odoo/addons/http_routing/models/ir_http.py", line 519, in _dispatch
result = super(IrHttp, cls)._dispatch()
File "/opt/odoo15/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/opt/odoo15/odoo/odoo/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo15/odoo/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo15/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo15/odoo/odoo/http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo15/odoo/odoo/http.py", line 916, in call
return self.method(*args, **kw)
File "/opt/odoo15/odoo/odoo/http.py", line 535, in response_wrap
response = f(*args, **kw)
File "/opt/odoo15/odoo/addons/web/controllers/main.py", line 1351, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo15/odoo/addons/web/controllers/main.py", line 1339, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo15/odoo/odoo/api.py", line 464, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo15/odoo/odoo/api.py", line 451, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo15/sources/meli_oerp/models/product_post.py", line 476, in product_template_import
res = company.product_meli_get_products(context=custom_context)
File "/opt/odoo15/sources/meli_oerp/models/company.py", line 772, in product_meli_get_products
productcreated.product_meli_get_product()
File "/opt/odoo15/sources/meli_oerp/models/product.py", line 1806, in product_meli_get_product
product._meli_set_images_x(product_template=product_template, pictures=pictures, rjson=rjson)
File "/opt/odoo15/sources/meli_oerp/models/product.py", line 1097, in _meli_set_images_x
variant._meli_set_image_xy( picture_hash=picture_hash, variations_hash=variations_hash, meli=meli, config=config )
File "/opt/odoo15/sources/meli_oerp/models/product.py", line 988, in _meli_set_image_xy
image_base64 = base64.encodestring(image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant