<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
a blob of green gelatin wrote:
<blockquote cite="midPine.BSI.4.61.0603211549520.8970@malasada.lava.net"
 type="cite">On Tue, 21 Mar 2006, Chris McDonough wrote:
  <br>
  <br>
  <blockquote type="cite">These are warnings coming from GCC (as
opposed to errors, which would prevent compilation from finishing).
    <br>
    <br>
GCC 4.X emits these pointer signedness warnings whereas earlier GCC
versions did not.&nbsp; This issue has been fixed on the Zope trunk, I
believe (the codebase which will become Zope 2.10).
    <br>
  </blockquote>
  <br>
Thanks for the answer!
  <br>
  <br>
I went ahead and continued then with my installation.
  <br>
  <br>
after running 'make install' with no problems, I created an instance
via the /usr/local/bin/zope/bin/mkzopeinstance.py script.&nbsp; The script
ran fine with no errors.
  <br>
  <br>
Following the INSTALL.txt file in the Zope directory, my next step
would be to head over to my installed instance and run the zopectl
script to get things going.
  <br>
  <br>
When I ran it, I get the following:
  <br>
  <br>
slimemold[62]:/home/jello/zope/bin% ./zopectl start
  <br>
Traceback (most recent call last):
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/Zope2/Startup/zopectl.py", line
316, in ?
  <br>
&nbsp;&nbsp;&nbsp; main()
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/Zope2/Startup/zopectl.py", line
274, in main
  <br>
&nbsp;&nbsp;&nbsp; options.realize(args)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/Zope2/Startup/zopectl.py", line
91, in realize
  <br>
&nbsp;&nbsp;&nbsp; ZDOptions.realize(self, *args, **kw)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/zdaemon/zdoptions.py", line 273,
in realize
  <br>
&nbsp;&nbsp;&nbsp; self.load_schema()
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/zdaemon/zdoptions.py", line 321,
in load_schema
  <br>
&nbsp;&nbsp;&nbsp; self.schema = ZConfig.loadSchema(self.schemafile)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/loader.py", line 31, in
loadSchema
  <br>
&nbsp;&nbsp;&nbsp; return SchemaLoader().loadURL(url)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/loader.py", line 65, in
loadURL
  <br>
&nbsp;&nbsp;&nbsp; return self.loadResource(r)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/loader.py", line 159, in
loadResource
  <br>
&nbsp;&nbsp;&nbsp; schema = ZConfig.schema.parseResource(resource, self)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 27, in
parseResource
  <br>
&nbsp;&nbsp;&nbsp; xml.sax.parse(resource.file, parser)
  <br>
&nbsp; File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/__init__.py",
line 31, in parse
  <br>
&nbsp;&nbsp;&nbsp; parser.parse(filename_or_stream)
  <br>
&nbsp; File
"/usr/lib64/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
109, in parse
  <br>
&nbsp;&nbsp;&nbsp; xmlreader.IncrementalParser.parse(self, source)
  <br>
&nbsp; File "/usr/lib64/python2.4/site-packages/_xmlplus/sax/xmlreader.py",
line 123, in parse
  <br>
&nbsp;&nbsp;&nbsp; self.feed(buffer)
  <br>
&nbsp; File
"/usr/lib64/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
216, in feed
  <br>
&nbsp;&nbsp;&nbsp; self._parser.Parse(data, isFinal)
  <br>
&nbsp; File
"/usr/lib64/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
311, in start_element
  <br>
&nbsp;&nbsp;&nbsp; self._cont_handler.startElement(name, AttributesImpl(attrs))
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 99, in
startElement
  <br>
&nbsp;&nbsp;&nbsp; getattr(self, "start_" + name)(attrs)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 475, in
start_schema
  <br>
&nbsp;&nbsp;&nbsp; keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 201, in
get_sect_typeinfo
  <br>
&nbsp;&nbsp;&nbsp; datatype = self.get_datatype(attrs, "datatype", "null", base)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/schema.py", line 194, in
get_datatype
  <br>
&nbsp;&nbsp;&nbsp; return self._registry.get(dtname)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/datatypes.py", line 398,
in get
  <br>
&nbsp;&nbsp;&nbsp; t = self.search(name)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZConfig/datatypes.py", line 423,
in search
  <br>
&nbsp;&nbsp;&nbsp; package = __import__(n, g, g, component)
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/Zope2/Startup/datatypes.py",
line 20, in ?
  <br>
&nbsp;&nbsp;&nbsp; from ZODB.config import ZODBDatabase
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/ZODB/__init__.py", line 20, in ?
  <br>
&nbsp;&nbsp;&nbsp; from persistent import TimeStamp
  <br>
&nbsp; File "/usr/local/bin/zope/lib/python/persistent/__init__.py", line
19, in ?
  <br>
&nbsp;&nbsp;&nbsp; from cPersistence import Persistent, GHOST, UPTODATE, CHANGED,
STICKY
  <br>
ImportError: /usr/local/bin/zope/lib/python/persistent/cPersistence.so:
undefined symbol: PyUnicodeUCS2_AsEncodedString
  <br>
  <br>
  <br>
I configured this to use /usr/local/bin/python (2.4.2 compiled) instead
of the default /usr/bin/python (2.4.1 package).
  <br>
  <br>
I searched the archives to look for something here, and I've found one
similar thread:
  <br>
  <br>
<a class="moz-txt-link-freetext" href="http://www.gossamer-threads.com/lists/zope/users/163264?search_string=%2Bzopectl%20%2Bimporterror;#163264">http://www.gossamer-threads.com/lists/zope/users/163264?search_string=%2Bzopectl%20%2Bimporterror;#163264</a>
  <br>
  <br>
which mentions some possibilities:
  <br>
  <br>
"Ah. uhm.. sorry. This traceback can only occur when cPersistence.so
  <br>
wasnt compiled yet, has been deleted, is for the wrong python version
  <br>
or is otherwise unavailable.
  <br>
It is usually generated thru installation/compilation.
  <br>
  <br>
I'd check paths for INSTANCE_HOME, SOFTWARE_HOME etc;
  <br>
which python version is used (and if its different to
  <br>
the version you installed with) "
  <br>
  <br>
So far with this installation, the only (as far as I can tell)
modification from the vanilla installation is that I'm using a seperate
python instance on the box.&nbsp; Otherwise it's a simple
configure/make/make install from the /tmp directory.
  <br>
  <br>
I installed zope to /usr/local/bin/zope and given my regular user write
permissions (via group) to that directory so that my 'make install'
didn't require a sudo.&nbsp; I installed the instance to /home/jello/zope
and ran the /home/jello/zope/bin/zopectl start command (as referenced
above) with the aforementioned output.
  <br>
  <br>
I'm thinking it must be something really simple because I'm not seeing
it in the archives and I'm not really deviating from what's in the
doc/INSTALL.txt file.&nbsp; (I didn't see anything different in the Zope
book either.&nbsp; It's all pretty straightforward from what I'm reading.
<a class="moz-txt-link-freetext" href="http://www.plope.com/Books/2_7Edition/InstallingZope.stx#2-6">http://www.plope.com/Books/2_7Edition/InstallingZope.stx#2-6</a>)
  <br>
  <br>
Anyone have ideas?&nbsp; I'd appreciate it!
  <br>
  <br>
Thanks in advance!
  <br>
  <br>
-Chris
  <br>
-</blockquote>
<br>
Blob,<br>
<br>
FWIW,<br>
<br>
Maybe PyUnicodeUCS2_AsEncodedString is the culprit?. <br>
<br>
Found this via google
(<a class="moz-txt-link-freetext" href="http://www.egenix.com/files/python/mxODBC-Zope-DA.html">http://www.egenix.com/files/python/mxODBC-Zope-DA.html</a>):&nbsp; <br>
<p><b>Python Unicode versions:</b> If you get errors mentioning <tt>"unresolved
symbol PyUnicodeUCS2_AsEncodedString"</tt> during loading of the mxODBC
Zope DA product, you are likely using a Linux distribution which ships
with a UCS4-build (4-byte Unicode) of Python. </p>
<p> RedHat 9 and SuSE 9 and later ship with UCS4 builds of Python and
Zope, so please download the UCS4 versions of the product. </p>
<p>To find out which Python Unicode you have, please run the following
command using the Python interpreter used by your Zope installation: <code>python
-c "import sys; print (sys.maxunicode &lt; 66000) and 'UCS2' or 'UCS4'"</code></p>
<br>
David<br>
<br>
</body>
</html>