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

问题描述 投票:0回答:3

我有一些问题要安装名为ODOO BRASIL - MODULO BASE(br_base)的Odoo模块。

错误消息是:

无法安装模块“br_base”,因为未找到外部依赖项:没有名为pytrustnfe.nfe的模块

翻译:

模块“br_base未安装,因为外部依赖关系未建立:没有名为pytrustnfe.nfe的模块

odoo odoo-11
3个回答
0
投票

如果您使用的是Linux:

pip install PyTrustNFe

0
投票

没有安装PyTrustNFe的依赖,称为xmlsec。当我尝试安装此依赖项时,我有这个。

[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/

0
投票

解决这个问题的正确命令是PIP3,因为这个依赖关系在python2.7中被弃用了

pip3 install PyTrustNFe3==1.0.35
© www.soinside.com 2019 - 2024. All rights reserved.