[英]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.