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

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

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

问题

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

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

出现以下错误:

  1. 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 '
  2. 如何解决这个问题?
  3. 我尝试重新安装`psql`,但没有任何变化。
  4. <details>
  5. <summary>英文:</summary>
  6. After installing Odoo from source and requirements I run
  7. python3 odoo-bin --addons-path addons -r odoo -w odoo and get
  8. I get the following error:
  9. 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;
  10. How can I solve this?
  11. I have tried to reinstall `psql` but nothing happen.
  12. </details>
  13. # 答案1
  14. **得分**: 1
  15. 你需要手动创建这个库。可以在[这里][1]找到描述。
  16. 我已执行以下步骤:
  17. curl -LO https://github.com/lxml/lxml/releases/download/lxml-4.9.3/lxml-4.9.3.tar.gz
  18. tar xzf lxml-4.9.3.tar.gz
  19. cd lxml-4.9.3
  20. python3.9 setup.py build --static-deps
  21. STATIC_DEPS=true python3.9 setup.py install --static-deps
  22. [1]: https://lxml.de/build.html#building-lxml-on-macos-x
  23. <details>
  24. <summary>英文:</summary>
  25. You have to create the library manually. You can find a description [here][1].
  26. I have executed these steps:
  27. curl -LO https://github.com/lxml/lxml/releases/download/lxml-4.9.3/lxml-4.9.3.tar.gz
  28. tar xzf lxml-4.9.3.tar.gz
  29. cd lxml-4.9.3
  30. python3.9 setup.py build --static-deps
  31. STATIC_DEPS=true python3.9 setup.py install --static-deps
  32. [1]: https://lxml.de/build.html#building-lxml-on-macos-x
  33. </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:

确定