Plone準備( Python-2.5.2 + Zope-2.10.6インストール ) その2

[`evernote` not found]


Plone 入れる前に、ちょっと細かいところを。

  • Zope のインストールディレクトリにシンボリックリンクを張る

# cd /usr/local/

# ln -s zope_2.10.6 zope

  • Zope を動作させるユーザを追加する

$ su –

# adduser -d /home/zope zpoe

  • パスワードの設定

# passwd zope

  • Zopeインストールディレクトリ配下を、zope:zope に変更

# chown -R zope:zope /usr/local/zope_2.10.6

※元々zopeユーザで configure / make してればいらない作業かも?

  • zope ユーザになって、zopeの初期設定をするスクリプトを動かす

# cd /usr/local/zope/bin

# ./

Please choose a directory in which you’d like to install

Zope “instance home” files such as database files, configuration

files, etc.

Directory: /usr/local/zope → Zopeインストールディレクトリ

Please choose a username and password for the initial user.

These will be the credentials you use to initially manage

your new Zope instance.

Username: admin → 管理者アカウント

Password: → 管理者パスワード

Verify password: → もう一回パスワード

※ と間違え易いので注意

  • Zopeのデフォルトエンコードがiso-8859-15 なので、これを utf-8 に変更

# cd /usr/local/zope/etc

# vi zope.conf

default-zpublisher-encoding utf-8


んじゃ、zope を動かしてみましょうか

# su – zope

$ cd /usr/local/zope/bin

$ ./zopectl start

Traceback (most recent call last):

File “/usr/local/Zope_2.10.6/lib/python/Zope2/Startup/”, line 334, in <module>

exitstatus = main()

File “/usr/local/Zope_2.10.6/lib/python/Zope2/Startup/”, line 290, in main


File “/usr/local/Zope_2.10.6/lib/python/Zope2/Startup/”, line 95, in realize

ZDOptions.realize(self, *args, **kw)

File “/usr/local/Zope_2.10.6/lib/python/zdaemon/”, line 273, in realize


File “/usr/local/Zope_2.10.6/lib/python/zdaemon/”, line 321, in load_schema

self.schema = ZConfig.loadSchema(self.schemafile)

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 31, in loadSchema

return SchemaLoader().loadURL(url)

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 65, in loadURL

return self.loadResource(r)

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 159, in loadResource

schema = ZConfig.schema.parseResource(resource, self)

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 27, in parseResource

xml.sax.parse(resource.file, parser)

File “/usr/local/python_2.5.2/lib/python2.5/xml/sax/”, line 33, in parse


File “/usr/local/python_2.5.2/lib/python2.5/xml/sax/”, line 107, in parse

xmlreader.IncrementalParser.parse(self, source)

File “/usr/local/python_2.5.2/lib/python2.5/xml/sax/”, line 123, in parse


File “/usr/local/python_2.5.2/lib/python2.5/xml/sax/”, line 207, in feed

self._parser.Parse(data, isFinal)

File “/usr/local/python_2.5.2/lib/python2.5/xml/sax/”, line 301, in start_element

self._cont_handler.startElement(name, AttributesImpl(attrs))

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 99, in startElement

getattr(self, “start_” + name)(attrs)

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 475, in start_schema

keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 201, in get_sect_typeinfo

datatype = self.get_datatype(attrs, “datatype”, “null”, base)

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 194, in get_datatype

return self._registry.get(dtname)

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 398, in get

t =

File “/usr/local/Zope_2.10.6/lib/python/ZConfig/”, line 423, in search

package = __import__(n, g, g, component)

File “/usr/local/Zope_2.10.6/lib/python/Zope2/Startup/”, line 21, in <module>

import OFS.Uninstalled

File “/usr/local/Zope_2.10.6/lib/python/OFS/”, line 16, in <module>

import SimpleItem, Globals, Acquisition

File “/usr/local/Zope_2.10.6/lib/python/OFS/”, line 26, in <module>

import AccessControl.Role, AccessControl.Owned, App.Common

File “/usr/local/Zope_2.10.6/lib/python/AccessControl/”, line 17, in <module>

from Implementation import setImplementation

File “/usr/local/Zope_2.10.6/lib/python/AccessControl/”, line 98, in <module>


File “/usr/local/Zope_2.10.6/lib/python/AccessControl/”, line 51, in setImplementation

from AccessControl import ImplC as impl

File “/usr/local/Zope_2.10.6/lib/python/AccessControl/”, line 18, in <module>

from cAccessControl import rolesForPermissionOn, \

File “/usr/local/Zope_2.10.6/lib/python/AccessControl/”, line 82, in <module>

from DocumentTemplate.DT_Util import TemplateDict

File “/usr/local/Zope_2.10.6/lib/python/DocumentTemplate/”, line 21, in <module>

from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile

File “/usr/local/Zope_2.10.6/lib/python/DocumentTemplate/”, line 112, in <module>

from DT_String import String, File

File “/usr/local/Zope_2.10.6/lib/python/DocumentTemplate/”, line 19, in <module>

from DT_Util import ParseError, InstanceDict, TemplateDict, render_blocks, str

File “/usr/local/Zope_2.10.6/lib/python/DocumentTemplate/”, line 19, in <module>

from html_quote import html_quote, ustr # for import by other modules, dont remove!

File “/usr/local/Zope_2.10.6/lib/python/DocumentTemplate/”, line 4, in <module>

from ustr import ustr

File “/usr/local/Zope_2.10.6/lib/python/DocumentTemplate/”, line 18, in <module>

nasty_exception_str = Exception.__str__.im_func

AttributeError: ‘wrapper_descriptor’ object has no attribute ‘im_func’



色々調べたところ、Python 2.5系ではダメっぽい



デフォルトで入っていた 2.4.3 では怒られたので、次回は、2.4系の最新の、2.4.5 でやってみようと思う



メールアドレスが公開されることはありません。 * が付いている欄は必須項目です