[Zope] Strange errors while 'make'ing

a blob of green gelatin jello at lava.net
Wed Mar 22 20:03:54 EST 2006


On Wed, 22 Mar 2006, Jens Vagelpohl wrote:

>> slimemold[62]:/home/jello/zope/bin% ./zopectl start
>> Traceback (most recent call last):
>>   File "/usr/local/bin/zope/lib/python/Zope2/Startup/zopectl.py", line 316, 
>> in ?
>>     main()
>>   File "/usr/local/bin/zope/lib/python/Zope2/Startup/zopectl.py", line 274, 
>> in main
>>     options.realize(args)
>>   File "/usr/local/bin/zope/lib/python/Zope2/Startup/zopectl.py", line 91, 
>> in realize
>>     ZDOptions.realize(self, *args, **kw)
>>   File "/usr/local/bin/zope/lib/python/zdaemon/zdoptions.py", line 273, in 
>> realize
>>     self.load_schema()
>>   File "/usr/local/bin/zope/lib/python/zdaemon/zdoptions.py", line 321, in 
>> load_schema
>>     self.schema = ZConfig.loadSchema(self.schemafile)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/loader.py", line 31, in 
>> loadSchema
>>     return SchemaLoader().loadURL(url)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/loader.py", line 65, in 
>> loadURL
>>     return self.loadResource(r)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/loader.py", line 159, in 
>> loadResource
>>     schema = ZConfig.schema.parseResource(resource, self)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 27, in 
>> parseResource
>>     xml.sax.parse(resource.file, parser)
>>   File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/__init__.py", line 
>> 31, in parse
>>     parser.parse(filename_or_stream)
>>   File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/expatreader.py", 
>> line 109, in parse
>>     xmlreader.IncrementalParser.parse(self, source)
>>   File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 
>> 123, in parse
>>     self.feed(buffer)
>>   File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/expatreader.py", 
>> line 216, in feed
>>     self._parser.Parse(data, isFinal)
>>   File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/expatreader.py", 
>> line 311, in start_element
>>     self._cont_handler.startElement(name, AttributesImpl(attrs))
>>   File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 99, in 
>> startElement
>>     getattr(self, "start_" + name)(attrs)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 475, in 
>> start_schema
>>     keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 201, in 
>> get_sect_typeinfo
>>     datatype = self.get_datatype(attrs, "datatype", "null", base)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 194, in 
>> get_datatype
>>     return self._registry.get(dtname)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/datatypes.py", line 398, in 
>> get
>>     t = self.search(name)
>>   File "/usr/local/bin/zope/lib/python/ZConfig/datatypes.py", line 423, in 
>> search
>>     package = __import__(n, g, g, component)
>>   File "/usr/local/bin/zope/lib/python/Zope2/Startup/datatypes.py", line 
>> 20, in ?
>>     from ZODB.config import ZODBDatabase
>>   File "/usr/local/bin/zope/lib/python/ZODB/__init__.py", line 20, in ?
>>     from persistent import TimeStamp
>>   File "/usr/local/bin/zope/lib/python/persistent/__init__.py", line 19, in 
>> ?
>>     from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
>> ImportError: /usr/local/bin/zope/lib/python/persistent/cPersistence.so: 
>> undefined symbol: PyUnicodeUCS2_AsEncodedString
>> 
>> 
>> I configured this to use /usr/local/bin/python (2.4.2 compiled) instead of 
>> the default /usr/bin/python (2.4.1 package).
>
> You have the Pythons confused it seems. You're saying it's using /usr/ 
> local/bin/python, while some of the paths in that traceback point to the 
> system python. Either you built it with the system Python or you ran it with 
> the system Python now.
>
> jens

Hi Jens.  First off, thanks for the reply!

I admit I can't be sure of what python's being used, but I can be sure I 
followed the instructions given in the doc/INSTALL.txt and the configure 
--help .  If I specify the non-system python (2.4.2 in 
/usr/local/bin/python) in the configure, do I need to also add it into the 
zope.conf somewhere?  I had looked for a reference in the conf file but 
didn't find one.  Perhaps there is a command-line switch for zopectl to 
specify the non-system python?  I didn't see anything listed with the 
--help for zopectl.

So perhaps when I run the zopectl it'll revert to the system python rather 
than the build-time location specified?  Does anyone know?

Oh, and I didn't notice where you had seen the reference to the system 
python in the traceback.  Could you point out which line you saw with it?

Cheers!  :)

-Chris
----

Some people wear Superman pajamas. Superman wears Chuck Norris pajamas.



More information about the Zope mailing list