[Zope] Re: error runing zope after installation
Tres Seaver
tseaver at palladion.com
Tue Jun 13 07:12:30 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Adinda Praditya wrote:
> Hi list,
>
> I just read previous thread "error: must supply either home or
> prefix/exec-prefix -- not
> both"<http://mail.zope.org/pipermail/zope/2006-April/166098.html>,
> so i compiled Python-2.4.3 and then installed Zope-2.9.2 successfully. I
> created a zope instance. When i tried to run it, i got this message:
> ====
> Traceback (most recent call last):
> File "/opt/Zope-2.9.2/lib/python/Zope2/Startup/zopectl.py", line 316, in ?
> main()
> File "/opt/Zope-2.9.2/lib/python/Zope2/Startup/zopectl.py", line 274, in
> main
> options.realize(args)
> File "/opt/Zope-2.9.2/lib/python/Zope2/Startup/zopectl.py", line 91, in
> realize
> ZDOptions.realize(self, *args, **kw)
> File "/opt/Zope-2.9.2//lib/python/zdaemon/zdoptions.py", line 273, in
> realize
> self.load_schema()
> File "/opt/Zope-2.9.2//lib/python/zdaemon/zdoptions.py", line 321, in
> load_schema
> self.schema = ZConfig.loadSchema(self.schemafile)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/loader.py", line 31, in
> loadSchema
> return SchemaLoader().loadURL(url)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/loader.py", line 65, in loadURL
> return self.loadResource(r)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/loader.py", line 159, in
> loadResource
> schema = ZConfig.schema.parseResource(resource, self)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/schema.py", line 27, in
> parseResource
> xml.sax.parse(resource.file, parser)
> File "/usr/local/lib/python2.4/xml/sax/__init__.py", line 33, in parse
> parser.parse(source)
> File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
> self.feed(buffer)
> File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
> self._parser.Parse(data, isFinal)
> File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 300, in
> start_element
> self._cont_handler.startElement(name, AttributesImpl(attrs))
> File "/opt/Zope-2.9.2//lib/python/ZConfig/schema.py", line 99, in
> startElement
> getattr(self, "start_" + name)(attrs)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/schema.py", line 475, in
> start_schema
> keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/schema.py", line 201, in
> get_sect_typeinfo
> datatype = self.get_datatype(attrs, "datatype", "null", base)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/schema.py", line 194, in
> get_datatype
> return self._registry.get(dtname)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/datatypes.py", line 398, in get
> t = self.search(name)
> File "/opt/Zope-2.9.2//lib/python/ZConfig/datatypes.py", line 423, in
> search
> package = __import__(n, g, g, component)
> File "/opt/Zope-2.9.2//lib/python/Zope2/Startup/datatypes.py", line 20, in
> ?
> from ZODB.config import ZODBDatabase
> File "/opt/Zope-2.9.2//lib/python/ZODB/__init__.py", line 20, in ?
> from persistent import TimeStamp
> File "/opt/Zope-2.9.2//lib/python/persistent/__init__.py", line 19, in ?
> from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
> ImportError: /opt/Zope-2.9.2/lib/python/persistent/cPersistence.so:
> undefined symbol: PyUnicodeUCS4_AsEncodedString
> ====
>
> Can anyone tell me what's wrong and figure out the solution?
You need to run Zope with the same Python as you compiled it with;
in this case, it looks as though the Python you compiled with uses UCS4
for unicode, but the one you are running with uses UCS2.
You can pass the preferred Python to 'configure', e.g.:
$ cd /tmp/Zope-2.9.2
$ make clobber
$ ./configure --with-python="/path/to/python2.4" \
--prefix="/opt/Zope-2.9.2" && make && make install
Tres.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEjp2d+gerLs4ltQ4RArXHAKCWi7OlaUrnWhECJ5MQJPOhPSfgHwCfaDgV
qRHk5i+JG6ZirWQOsCAT4yY=
=kecR
-----END PGP SIGNATURE-----
More information about the Zope
mailing list