安装带扩展的 OpenERP 服务器时出现问题!
我正在尝试使用构建和我自己的代码来部署 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
配置问题
但是当尝试启动构建时,在尝试安装最后需要的 Egg (openerp-server) 时出现了几个错误
在我这边,它只是找不到这些模块,但它们在我的 Egg 目录中:
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) {}
我总是收到错误消息,但是我的机器上是否安装了 psyopg2
系统配置
- Ubuntu 9.10 x86-64
- 在 Python 2.5/Python 2.6 上尝试过
I'm trying to deploy OpenERP with a buildout and my own piece of code. In fact I would like to build a complete deployement structure allowing me to use OpenERP with custom modules and patch.
First of all, before adding any personnal configuration, I was trying to create a buildout which will have the responsability to configure everything.
Buildout Configuration
My buildout.cfg configuration file look like this:
[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
Configuration problem
But when trying to launch the buildout I have a couples of errors when trying to install the last needed egg (openerp-server)
On my side it just cannot find these modules, but they are in my eggs dir:
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, a try
I decided to give a try to a clean virtualenv without any relation to the main site-package. But when using easy_install on openerp-server:
$ 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) {}
I have always the error message however psyopg2 was installed or not on my machine
System's Configuration
- Ubuntu 9.10 x86-64
- Tried on Python 2.5/Python 2.6
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好吧,我最近这样做了:
不要尝试安装 Egg,openerp 并不是真正的标准。
我使用了这个构建片段:
然而,关键是我没有使用 virtualenv。您不需要进行扩建。 Buildout + virtualenv 就像 Trojan + Ramses...一个就足够了,除非你...嗯,一个就足够了。 ;)
现在,对于这个特定的项目,我遵循了 debian 说明并通过 aptitude 安装了所需的库。这只是因为我当时是构建新手,可以轻松安装 psycopg2 模块
这里有一些很好的说明。如果不需要,请忽略 django 的东西。丹·费尔斯既是一位伟大的作家,也是一位伟大的建筑导师。一探究竟。免责声明:根据他的构建用法,我是该人的弟子。
我确信你不想在 pypi 上使用 Egg,它对我来说从来没有用过,openerp 没有 Eggified,它是一个 distutils 包。
祝你好运!
Ok I did this recently:
Don't try to install the egg, openerp is not really standard.
I used this buildout snippet:
The key however, is that I did not use virtualenv. You don't need to with buildout. Buildout + virtualenv is like Trojan + Ramses... one is enough, unless you are ... well one is enough. ;)
Now for this particular project I had followed the debian instructions and installed the required libs via aptitude. This was only because I was new to buildout at the time, one could just as easily install the psycopg2 module
Here are some excellent instructions. Ignore the django stuff if you don't need it. Dan Fairs is both a great writer and great buildout tutor. Check it out. Disclaimer: I am a disciple of the man, based on his buildout usage.
I am certain you do not want to use the egg on pypi, it never worked for me, openerp is not eggified, it's a distutils package.
Good luck!
仅供记录:Pypi 中有一个OpenERP 构建方案。
Just for the record: there is a buildout recipe for OpenERP available in Pypi.
我不熟悉构建,但如果我要尝试构建 OpenERP 安装程序,我会首先查看 开源咨询。我已经使用过它并且非常满意。
上次我检查时,它没有设置 CRM 电子邮件网关,但涵盖了我需要的所有其他内容。
I'm not familiar with buildout, but if I were going to try building an OpenERP installer, I'd start by looking at the nice one from Open Source Consulting. I've used it and been pretty happy with it.
Last time I checked, it doesn't set up the CRM e-mail gateway, but everything else I need was covered.