[英]Problem installing OpenERP server with buildout !
我正在尝试通过构建和自己的代码来部署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 ?
我决定尝试一个干净的virtualenv,而与主站点包没有任何关系。 但是在openerp服务器上使用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) {}
我总是收到错误消息,但是我的计算机上是否安装了psyopg2
好的,我最近做了这个:
不要尝试安装鸡蛋,openerp并不是真正的标准。
我使用了此构建代码段:
# get the openerp-stuff as a distutils package
[openerp-server]
recipe = zerokspot.recipe.distutils
urls = http://www.openerp.com/download/stable/source/openerp-server-5.0.6.tar.gz
# similar idea for the web component
[openerp-web]
recipe = zc.recipe.egg:scripts
find-links = http://www.openerp.com/download/stable/source/openerp-web-5.0.6.tar.gz
# add some symlinks so you can run it out of bin
[server-symlinks]
recipe = cns.recipe.symlink
symlink = ${buildout:parts-directory}/openerp-server/bin/openerp-server = ${buildout:bin-directory}
然而,关键的是,我没有使用的virtualenv。 您不需要建立。 Buildout + virtualenv就像Trojan + Ramses ...一个就足够了,除非您...一个就足够了。 ;)
现在,对于这个特定项目,我遵循了debian的说明,并通过aptitude安装了所需的库。 这只是因为当时我是新手,所以可以像安装psycopg2模块一样轻松
这里有一些很好的说明 。 如果不需要,请忽略django的内容。 丹·费尔斯(Dan Fairs)既是一位出色的作家,又是一位出色的家庭教师。 看看这个。 免责声明:根据他的使用习惯,我是他的门徒。
我确定您不想在pypi上使用鸡蛋,它对我没用,openerp没有鸡蛋化,它是distutils软件包。
祝好运!
我对扩展并不熟悉,但是如果我要尝试构建OpenERP安装程序,那么我首先来看看Open Source Consulting的一个不错的安装程序。 我用过它,对此非常满意。
上次检查时,它没有设置CRM电子邮件网关,但涵盖了我需要的所有其他内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.