Skip to Content
Menu
This question has been flagged

I have developed a module that uses read_html function from pandas library and it was working great. Now that i installed the enterprise module social_push_notification and its dependency (firebase_admin) i get an error using the same module i developed. The error is:


Error:

Odoo Server Error


Traceback (most recent call last):

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/http.py", line 624, in _handle_exception

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

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/http.py", line 310, in _handle_exception

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

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/tools/pycompat.py", line 14, in reraise

    raise value

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/http.py", line 669, in dispatch

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

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/http.py", line 350, in _call_function

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

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/service/model.py", line 94, in wrapper

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

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/http.py", line 339, in checked_call

    result = self.endpoint(*a, **kw)

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/http.py", line 915, in __call__

    return self.method(*args, **kw)

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/http.py", line 515, in response_wrap

    response = f(*args, **kw)

  File "/home/pollo/odoo/odoo13/odoo/addons/web/controllers/main.py", line 1327, in call_kw

    return self._call_kw(model, method, args, kwargs)

  File "/home/pollo/odoo/odoo13/odoo/addons/web/controllers/main.py", line 1319, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/api.py", line 387, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/odoo-13.0-py3.8.egg/odoo/api.py", line 374, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "/home/pollo/odoo/odoo13/extra-addons/jp/jp_currency_rate_live/models/res_company.py", line 127, in update_currency_rates_sunat

    self.env.company.update_currency_rates()

  File "/home/pollo/odoo/odoo13/extra-addons/enterprise/currency_rate_live/models/res_config_settings.py", line 88, in update_currency_rates

    parse_results = parse_function(active_currencies)

  File "/home/pollo/odoo/odoo13/extra-addons/jp/jp_currency_rate_live/models/res_company.py", line 68, in _parse_sunat_data

    dictionary = self.get_dictionary(date, date)

  File "/home/pollo/odoo/odoo13/extra-addons/jp/jp_currency_rate_live/models/res_company.py", line 54, in get_dictionary

    dictionary = gr.get_exchange_rate('USD', from_date, end_date, self.env)

  File "/home/pollo/odoo/odoo13/extra-addons/jp/jp_currency_rate_live/models/getrate.py", line 97, in get_exchange_rate

    data_frame = self._data_frame(currency_code, date, to_date or date)

  File "/home/pollo/odoo/odoo13/extra-addons/jp/jp_currency_rate_live/models/getrate.py", line 52, in _data_frame

    dfs = pd.read_html(endpoint, header=0)

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/pandas/util/_decorators.py", line 299, in wrapper

    return func(*args, **kwargs)

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/pandas/io/html.py", line 1085, in read_html

    return _parse(

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/pandas/io/html.py", line 893, in _parse

    tables = p.parse_tables()

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/pandas/io/html.py", line 213, in parse_tables

    tables = self._parse_tables(self._build_doc(), self.match, self.attrs)

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/pandas/io/html.py", line 713, in _build_doc

    with urlopen(self.io) as f:

  File "/home/pollo/odoo/odoo13/odoo-venv/lib/python3.8/site-packages/pandas/io/common.py", line 195, in urlopen

    return urllib.request.urlopen(*args, **kwargs)

  File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen

    return opener.open(url, data, timeout)

  File "/usr/lib/python3.8/urllib/request.py", line 531, in open

    response = meth(req, response)

  File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response

    response = self.parent.error(

  File "/usr/lib/python3.8/urllib/request.py", line 563, in error

    result = self._call_chain(*args)

  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain

    result = func(*args)

  File "/usr/lib/python3.8/urllib/request.py", line 755, in http_error_302

    return self.parent.open(new, timeout=req.timeout)

  File "/usr/lib/python3.8/urllib/request.py", line 525, in open

    response = self._open(req, data)

  File "/usr/lib/python3.8/urllib/request.py", line 542, in _open

    result = self._call_chain(self.handle_open, protocol, protocol +

  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain

    result = func(*args)

  File "/usr/lib/python3.8/urllib/request.py", line 1393, in https_open

    return self.do_open(http.client.HTTPSConnection, req,

  File "/usr/lib/python3.8/urllib/request.py", line 1319, in do_open

    h = http_class(host, timeout=req.timeout, **http_conn_args)

TypeError: fixer() missing 3 required positional arguments: 'port', 'key_file', and 'cert_file'

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 24
1586
2
Jan 24
1346
1
Aug 24
1340
0
Apr 24
539
2
Apr 24
543