没有名为pytrustnfe.nfe的模块(Odoo服务器错误)

没有名为pytrustnfe.nfe的模块(Odoo服务器错误),odoo,odoo-11,Odoo,Odoo 11,我在安装名为Odoo BRASIL-MODULO BASE(br_BASE)的ODO模块时遇到一些问题 错误消息是: O módulo“br_base”nãO pode ser instalado porque uma dependencia externa não foi encontrada:没有名为pytrustnfe.nfe的模块 翻译: 无法安装模块“br_base”,因为没有外部依赖关系 已创建:没有名为pytrustnfe.nfe的模块 如果您使用的是Linux: pip inst

我在安装名为Odoo BRASIL-MODULO BASE(br_BASE)的ODO模块时遇到一些问题

错误消息是:

O módulo“br_base”nãO pode ser instalado porque uma dependencia externa não foi encontrada:没有名为pytrustnfe.nfe的模块

翻译:

无法安装模块“br_base”,因为没有外部依赖关系 已创建:没有名为pytrustnfe.nfe的模块


如果您使用的是Linux:

pip install PyTrustNFe

名为xmlsecPyTrustNFe的依赖项未安装。当我尝试安装此依赖项时,我遇到了此问题

[root@agileweb ~]# pip install xmlsec
Collecting xmlsec
  Using cached https://files.pythonhosted.org/packages/35/42/d7cd323c91d4706f3cc32ffe7d5f851ab8ef9898ccb350f6ba593dd8b89a/xmlsec-1.3.3.tar.gz
Requirement already satisfied: pkgconfig in /usr/lib/python2.7/site-packages (from xmlsec) (1.3.1)
Requirement already satisfied: lxml>=3.0 in /usr/lib64/python2.7/site-packages (from xmlsec) (3.7.1)
Building wheels for collected packages: xmlsec
  Running setup.py bdist_wheel for xmlsec ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-sk_Ibz/xmlsec/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-Vx1fna --python-tag cp27:
  running bdist_wheel
  running build
  running build_ext
  *********************************************************************************
  Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed?
  *********************************************************************************

  ----------------------------------------
  Failed building wheel for xmlsec
  Running setup.py clean for xmlsec
Failed to build xmlsec
Installing collected packages: xmlsec
  Running setup.py install for xmlsec ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-sk_Ibz/xmlsec/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-qiBfpy/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    *********************************************************************************
    Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed?
    *********************************************************************************

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-sk_Ibz/xmlsec/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-qiBfpy/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-sk_Ibz/xmlsec/

解决此问题的正确命令应该是PIP3,因为在python2.7中,此依赖项已被弃用

pip3 install PyTrustNFe3==1.0.35

这篇github文章应该会有帮助:您是如何安装odoo的,以及安装在什么平台上的。