Odoo Help

1

Failed to load external entity "xmldsignature_v10.xsd" ?

By
Aslam Up
on 3/29/18, 1:52 AM 579 views

Hi,

I've got a problem while validating the customer invoice in odoo 10. Any ideas how to solve this?

Traceback (most recent call last):
  File "/home/odoo/src/odoo/odoo/http.py", line 641, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/odoo/http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/odoo/http.py", line 333, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/odoo/http.py", line 326, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/odoo/http.py", line 506, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 895, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 883, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/src/odoo/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/home/odoo/src/odoo/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/odoo/src/user/bmya/l10n-chile/l10n_cl_dte/models/invoice.py", line 1985, in action_invoice_open
    inv._do_stamp()
  File "/home/odoo/src/user/bmya/l10n-chile/l10n_cl_dte/models/invoice.py", line 1408, in _do_stamp
    self.split_cert(certp), doc_id_number, type)
  File "/home/odoo/src/user/bmya/l10n-chile/l10n_cl_dte/models/invoice.py", line 711, in sign_full_xml
    msg = msg if self.xml_validator(msg, 'sig') else ''
  File "/home/odoo/src/user/bmya/l10n-chile/l10n_cl_dte/models/invoice.py", line 537, in xml_validator
    some_xml_string, validacion)
  File "/home/odoo/.local/lib/python2.7/site-packages/pysiidte.py", line 238, in xml_validator
    xmlschema_doc = etree.parse(xsd_file)
  File "src/lxml/lxml.etree.pyx", line 3442, in lxml.etree.parse (src/lxml/lxml.etree.c:81716)
  File "src/lxml/parser.pxi", line 1811, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:118635)
  File "src/lxml/parser.pxi", line 1837, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:118982)
  File "src/lxml/parser.pxi", line 1741, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:117894)
  File "src/lxml/parser.pxi", line 1138, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:112440)
  File "src/lxml/parser.pxi", line 595, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:105896)
  File "src/lxml/parser.pxi", line 706, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:107604)
  File "src/lxml/parser.pxi", line 633, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:106415)
IOError: Error reading file '/home/odoo/.local/lib/python2.7/site-packages/xsd/xmldsignature_v10.xsd': failed to load external entity "/home/odoo/.local/lib/python2.7/site-packages/xsd/xmldsignature_v10.xsd"
1
Ing. Daniel Blanco
On 4/10/18, 9:40 AM

I am aware of the issue, and it happens because the XSD files aren't loaded by the pysiidte library installation. You can workaround downloading the xsd/ directory to its location by hand till I provide a solution to the installer, or you can make a PR with the solution to the pysiidte library.

Thanks for your response. Where can i find the xsd/directory ?

Aslam Up
on 4/10/18, 9:50 AM

I can see an xsd directory in this link : https://github.com/PySIIDTE/pysiidte

Did you mean this ?

Aslam Up
on 4/10/18, 9:57 AM

Yes it is

El mar., 10 de abr. de 2018 10:57, Aslam <aslamup0042@gmail.com> escribió:

I can see an xsd directory in this link : https://github.com/PySIIDTE/pysiidte

Did you mean this ?

--
Aslam


Sent by Odoo S.A. using Odoo.

--
Quedo atento a sus comentarios. Saludos:



Ing. Daniel Blanco
Director
Blanco Martín & Asociados
Móvil: +56 9 73880409 / +54 9 351 228-0893
Skype: hdanielb
Twitter: hdanielb

Chile: 
Blanco Martín EIRL
Apoquindo 6410 Of 212
+56 2 2840 0990 / +56 2 2979 0208
Las Condes - Región Metropolitana

Argentina:
BMyA S.A.
Nicasio 6970. Córdoba
+54 351 5694621 / +54 351 5691933
Argüello - Córdoba



Blanco Martin y Asociados , Ing. Daniel Blanco
on 4/10/18, 10:24 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/29/18, 1:52 AM
Seen: 579 times
Last updated: 5/10/18, 9:10 AM