我正在尝试使用构建和我自己的代码来部署 OpenERP。事实上,我想建立一个完整的部署结构,允许我使用带有自定义模块和补丁的 OpenERP。
首先,在添加任何个人配置之前,我试图创建一个构建,它将负责配置所有内容。
扩建配置
我的 buildout.cfg 配置文件如下所示:
[buildout]
parts = eggs
versions=versions
newest = false
extensions = lovely.buildouthttp
unzip = true
find-links =
http://download.gna.org/pychart/
[versions]
[eggs]
recipe = zc.recipe.egg
interpreter = python
eggs =
Paste
PasteScript
PasteDeploy
psycopg2
PyChart
pydot
openerp-server
配置问题
但是在尝试启动构建时,我在尝试安装最后一个需要的鸡蛋(openerp-server)时遇到了几个错误
在我这边,它只是找不到这些模块,但它们在我的鸡蛋目录中:
Error: python module psycopg2 (PostgreSQL module) is required
Error: python module libxslt (libxslt python bindings) is required
Error: python module pychart (pychart module) is required
Error: python module pydot (pydot module) is required
error: Setup script exited with 1
An error occured when trying to install openerp-server 5.0.0-3. Look above this message for any errors that were output by easy_install.
Is this possible that openerp hardcoded the his searching path somewhere ?
easy_install,试试
我决定尝试一个干净的 virtualenv,与主站点包没有任何关系。但是在 openerp-server 上使用 easy_install 时:
$ source openerp-python/bin/activate
$ easy_install openerp-server
...
File "build/bdist.linux-i686/egg/pkg_resources.py", line 887, in extraction_error
pkg_resources.ExtractionError: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg
cache:
SandboxViolation: mkdir('/home/mlhamel/.python-eggs/psycopg2-2.0.13-py2.5-linux-x86_64.egg-tmp', 511) {}
我总是收到错误消息,但是我的机器上是否安装了 psypg2
系统配置
- Ubuntu 9.10 x86-64
- 在 Python 2.5/Python 2.6 上试过