No se puede instalar el módulo l10n_mx_facturae en CentOS 7
Closed
No se puede instalar el módulo l10n_mx_facturae en CentOS 7
Que tal @agb80, al tratar de instalar el módulo l10n_mx_facture v8.0.2.4.3, me marca el siguiente error:
Odoo Server Error
Traceback (most recent call last):
File "/opt/pyerp/parts/server/openerp/http.py", line 538, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/pyerp/parts/server/openerp/http.py", line 575, in dispatch
result = self._call_function(**self.params)
File "/opt/pyerp/parts/server/openerp/http.py", line 311, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/pyerp/parts/server/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/pyerp/parts/server/openerp/http.py", line 308, in checked_call
return self.endpoint(*a, **kw)
File "/opt/pyerp/parts/server/openerp/http.py", line 804, in __call__
return self.method(*args, **kw)
File "/opt/pyerp/parts/server/openerp/http.py", line 404, in response_wrap
response = f(*args, **kw)
File "/opt/pyerp/parts/server/addons/web/controllers/main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/pyerp/parts/server/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/pyerp/parts/server/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/pyerp/parts/server/openerp/addons/base/module/module.py", line 447, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/opt/pyerp/parts/server/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/pyerp/parts/server/openerp/addons/base/module/module.py", line 495, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/opt/pyerp/parts/server/openerp/modules/registry.py", line 365, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/pyerp/parts/server/openerp/modules/loading.py", line 354, in load_modules
loaded_modules, update_module)
File "/opt/pyerp/parts/server/openerp/modules/loading.py", line 255, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/pyerp/parts/server/openerp/modules/loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/pyerp/parts/server/openerp/modules/loading.py", line 118, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/pyerp/parts/server/openerp/tools/convert.py", line 900, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/pyerp/parts/server/openerp/tools/convert.py", line 975, in convert_xml_import
etree.parse(os.path.join(config['root_path'],'import_xml.rng' )))
File "lxml.etree.pyx", line 3310, in lxml.etree.parse (src/lxml/lxml.etree.c:72517)
File "parser.pxi", line 1791, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:105979)
File "parser.pxi", line 1817, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:106278)
File "parser.pxi", line 1721, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:105277)
File "parser.pxi", line 1122, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:100227)
File "parser.pxi", line 580, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:94350)
File "parser.pxi", line 690, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:95786)
File "parser.pxi", line 631, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:95065)
XMLSyntaxError: None
No se sí sea problema del módulo o se tenga que hacer algo en especifico para correrlo en CentOS porque en Ubuntu no tenemos mayor problema.
La configuración del server es: Static hostname: centos-7-1 Icon name: computer-vm Chassis: vm Machine ID: 316c0f34b334ebf11b3fd066cf9671b8 Boot ID: 5e2dfc79d4904dbebd0fdb155442102a Virtualization: kvm Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-693.17.1.el7.x86_64 Architecture: x86-64
Saludos y gracias de antemano
Gracias @agb80, de hecho es la versión que tengo, esto me manda el comando: [david_perez@centos-7-1 opt]$ xmlsec1 --version xmlsec1 1.2.20 (openssl)
El error se sigue presentando.
Saludos.
Prueba con este comando para bajar a una versión anterior:
sudo yum downgrade xmlsec1
y luego con este otro comando asegúrate de que la salida sea de esta manera:
sudo yum list xmlsec1 Loaded plugins: fastestmirror Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast Determining fastest mirrors * base: mirror.cenac.ipn.mx * epel: mirror.sfo12.us.leaseweb.net * extras: mirror.cenac.ipn.mx * updates: mirror.cenac.ipn.mx Installed Packages xmlsec1.x86_64 1.2.20-5.el7 @base Available Packages xmlsec1.i686 1.2.20-7.el7_4 updates xmlsec1.x86_64 1.2.20-7.el7_4 updates
Checate que la versión del paquete que tenemos instalada es la
1.2.20-5.el7
y la más actualizada1.2.20-7.el7_4
Que @agb80, ya pude dejar esa versión tal como la mandas. Pero me marca un error al instalar el módulo:
Error
Imposible instalar el módulo "l10n_mx_ir_attachment_facturae" porqué hay una dependencia externa no resuelta: No module named xmlsec
Consideras que es mejor correr de nuevo el buildout??
Saludos
@david.perez quedo resuelto este problema? Yo tuve el mismo incidente usando archilinux, la solución en mi caso fue actualizar el modulo lxml a la version 4.2.1
por favor revisen http://gitlab.openpyme.mx/pyerp/bench/merge_requests/85/diffs
@federico.cruz y que versión de xmlsec tienes instalada, lo pudedes checar con este comando:
xmlsec1 --version
added Bug label
mentioned in issue facturacion#95 (closed)