找不到符号在 Odoo16 Mac M1 中的扁平命名空间中的 ‘_exsltDateXpathCtxtRegister’。

huangapple go评论60阅读模式
英文:

Symbol not found in flat namespace '_exsltDateXpathCtxtRegister' in Odoo16 Mac m1

问题

安装Odoo源码和所需的依赖后,运行以下命令:

python3 odoo-bin --addons-path addons -r odoo -w odoo

出现以下错误:

ImportError: dlopen(/Users/nasko/odoo_mac/odoo/venv/lib/python3.9/site-packages/lxml/etree.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace ' _exsltDateXpathCtxtRegister '

如何解决这个问题?

我尝试重新安装`psql`,但没有任何变化。

<details>
<summary>英文:</summary>

After installing Odoo from source and requirements I run 

    python3 odoo-bin --addons-path addons -r odoo -w odoo  and get 

I get the following error:

    ImportError: dlopen(/Users/nasko/odoo_mac/odoo/venv/lib/python3.9/site-packages/lxml/etree.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace &#39;_exsltDateXpathCtxtRegister&#39;

How can I solve this?

I have tried to reinstall `psql` but nothing happen.

</details>


# 答案1
**得分**: 1

你需要手动创建这个库。可以在[这里][1]找到描述。

我已执行以下步骤:

    curl -LO https://github.com/lxml/lxml/releases/download/lxml-4.9.3/lxml-4.9.3.tar.gz
    tar xzf lxml-4.9.3.tar.gz
    cd lxml-4.9.3
    python3.9 setup.py build --static-deps
    STATIC_DEPS=true python3.9 setup.py install --static-deps

  [1]: https://lxml.de/build.html#building-lxml-on-macos-x

<details>
<summary>英文:</summary>

You have to create the library manually. You can find a description [here][1].

I have executed these steps:

    curl -LO https://github.com/lxml/lxml/releases/download/lxml-4.9.3/lxml-4.9.3.tar.gz 
    tar xzf lxml-4.9.3.tar.gz
    cd lxml-4.9.3
    python3.9 setup.py build --static-deps
    STATIC_DEPS=true python3.9 setup.py install --static-deps


  [1]: https://lxml.de/build.html#building-lxml-on-macos-x

</details>



huangapple
  • 本文由 发表于 2023年4月4日 06:11:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/75924116.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定