英文:
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 '_exsltDateXpathCtxtRegister'
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>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论