使用buildout安装OpenERP服务器时遇到问题!

8 python distutils setuptools buildout openerp

我正在尝试使用buildout和我自己的代码来部署OpenERP.事实上,我想构建一个完整的部署结构,允许我将OpenERP与自定义模块和补丁一起使用.

首先,在添加任何个人配置之前,我试图创建一个具有配置所有内容的责任的buildout.

构建配置

我的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
Run Code Online (Sandbox Code Playgroud)

配置问题

但是当尝试启动buildout时,我在尝试安装最后需要的蛋时会出现一些错误(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 ?
Run Code Online (Sandbox Code Playgroud)

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) {}
Run Code Online (Sandbox Code Playgroud)

我总是有错误信息,但是我的机器上安装了psyopg2或者没有安装

系统的配置

  • Ubuntu 9.10 x86-64
  • 试用Python 2.5/Python 2.6

Don*_*kby 0

我不熟悉构建,但如果我要尝试构建 OpenERP 安装程序,我会首先查看Open Source Consulting提供的一个不错的安装程序。我已经使用过它并且非常满意。

上次我检查时,它没有设置 CRM 电子邮件网关,但涵盖了我需要的所有其他内容。