Community mailing list archives

Erro when fetch mail from POP Server

Cezar Jr
- 09/05/2016 17:21:51
I'm using the email to task feature, but I'm getting this error:

2016-09-05 20:44:35,612 14779 INFO odoo-dev openerp.addons.fetchmail.fetchmail: Failed to process mail from pop server odoo-dev.
Traceback (most recent call last):
  File "/opt/odoo-dev/TemosOdoo/addons/fetchmail/", line 225, in fetch_mail
  File "/opt/odoo-dev/TemosOdoo/openerp/", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo-dev/TemosOdoo/openerp/", line 354, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo-dev/TemosOdoo/addons/mail/models/", line 1191, in message_process
    msg = self.message_parse(msg_txt, save_original=save_original)
  File "/opt/odoo-dev/TemosOdoo/openerp/", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo-dev/TemosOdoo/addons/mail/models/", line 1434, in message_parse
    msg_dict['body'], msg_dict['attachments'] = self._message_extract_payload(message, save_original=save_original)
  File "/opt/odoo-dev/TemosOdoo/addons/mail/models/", line 1348, in _message_extract_payload
    body, attachments = self._message_extract_payload_postprocess(message, body, attachments)
  File "/opt/odoo-dev/TemosOdoo/addons/mail/models/", line 1267, in _message_extract_payload_postprocess
    root = lxml.html.fromstring(body)
  File "/opt/odoo-dev/venv/local/lib/python2.7/site-packages/lxml/html/", line 723, in fromstring
    doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
  File "/opt/odoo-dev/venv/local/lib/python2.7/site-packages/lxml/html/", line 613, in document_fromstring
    value = etree.fromstring(html, parser, **kw)
  File "lxml.etree.pyx", line 3092, in lxml.etree.fromstring (src/lxml/lxml.etree.c:70473)
  File "parser.pxi", line 1823, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:106272)
ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.

I am working with Odoo v9.0c from OCA/OCB and the email is in pt_BR.

Can anyone help me?

Best regards

Cezar Sant'Anna Jr. PMP, Prince2 Practitioner M. Sc.
(15) 996.615.786
(15) 3035-9700