ImportError: No module named cPersistence when creating new instance
Hi I'm getting this when running ./zopectl after creating a new instance. This was simply using the /utilities/mkzopeinstance.py script from within the main zope directory and running the system python on it. The original instance works fine but not the new one. Any ideas? File "/home/zopesinstance/Zope-2.9.3-src/lib/python/Zope2/Startup/zopectl.py", line 308, in ? main() File "/home/zopesinstance/Zope-2.9.3-src/lib/python/Zope2/Startup/zopectl.py", line 274, in main options.realize(args) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/Zope2/Startup/zopectl.py", line 91, in realize ZDOptions.realize(self, *args, **kw) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/zdaemon/zdoptions.py", line 273, in realize self.load_schema() File "/home/zopesinstance/Zope-2.9.3-src/lib/python/zdaemon/zdoptions.py", line 321, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/loader.py", line 31, in loadSchema return SchemaLoader().loadURL(url) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/loader.py", line 65, in loadURL return self.loadResource(r) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/loader.py", line 159, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py", line 27, in parseResource xml.sax.parse(resource.file, parser) File "/usr/local/lib/python2.3/xml/sax/__init__.py", line 33, in parse parser.parse(source) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/local/lib/python2.3/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 300, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py", line 99, in startElement getattr(self, "start_" + name)(attrs) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py", line 475, in start_schema keytype, valuetype, datatype = self.get_sect_typeinfo(attrs) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py", line 201, in get_sect_typeinfo datatype = self.get_datatype(attrs, "datatype", "null", base) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/schema.py", line 194, in get_datatype return self._registry.get(dtname) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/datatypes.py", line 398, in get t = self.search(name) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZConfig/datatypes.py", line 423, in search package = __import__(n, g, g, component) File "/home/zopesinstance/Zope-2.9.3-src/lib/python/Zope2/Startup/datatypes.py", line 20, in ? from ZODB.config import ZODBDatabase File "/home/zopesinstance/Zope-2.9.3-src/lib/python/ZODB/__init__.py", line 21, in ? from persistent import TimeStamp File "/home/zopesinstance/Zope-2.9.3-src/lib/python/persistent/__init__.py", line 19, in ? from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY ImportError: No module named cPersistence -- michael
On 4/4/07, michael nt milne <michael.milne@gmail.com> wrote:
I'm getting this when running ./zopectl after creating a new instance. This was simply using the /utilities/mkzopeinstance.py script from within the main zope directory and running the system python on it. The original instance works fine but not the new one. Any ideas?
Did you compile the Zope C extensions? ./configure; make -- Martijn Pieters
yes, the main instance runs fine but not the new one which was created using mkzopeinstance.py...I checked the archives but they don't help On 4/4/07, Martijn Pieters <mj@zopatista.com> wrote:
On 4/4/07, michael nt milne <michael.milne@gmail.com> wrote:
I'm getting this when running ./zopectl after creating a new instance. This was simply using the /utilities/mkzopeinstance.py script from within the main zope directory and running the system python on it. The original instance works fine but not the new one. Any ideas?
Did you compile the Zope C extensions? ./configure; make
-- Martijn Pieters
-- michael
Sounds like you have missed the "make install" step. You should then be able to run $SOFTWARE_HOME/bin/mkzopeinstance.py directly to create a new instance using this version of the software. Laurence michael nt milne wrote:
yes, the main instance runs fine but not the new one which was created using mkzopeinstance.py...I checked the archives but they don't help
On 4/4/07, *Martijn Pieters * <mj@zopatista.com <mailto:mj@zopatista.com>> wrote:
On 4/4/07, michael nt milne < michael.milne@gmail.com <mailto:michael.milne@gmail.com>> wrote: > I'm getting this when running ./zopectl after creating a new instance. This > was simply using the /utilities/mkzopeinstance.py script from within the > main zope directory and running the system python on it. The original > instance works fine but not the new one. Any ideas?
Did you compile the Zope C extensions? ./configure; make
-- Martijn Pieters
-- michael
------------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
if the "make install" step had been missed then wouldn't the initial zope instance be faulty? On 4/4/07, Laurence Rowe <l@lrowe.co.uk> wrote:
Sounds like you have missed the "make install" step. You should then be able to run $SOFTWARE_HOME/bin/mkzopeinstance.py directly to create a new instance using this version of the software.
Laurence
michael nt milne wrote:
yes, the main instance runs fine but not the new one which was created using mkzopeinstance.py...I checked the archives but they don't help
On 4/4/07, *Martijn Pieters * <mj@zopatista.com <mailto:mj@zopatista.com>> wrote:
On 4/4/07, michael nt milne < michael.milne@gmail.com <mailto:michael.milne@gmail.com>> wrote: > I'm getting this when running ./zopectl after creating a new instance. This > was simply using the /utilities/mkzopeinstance.py script from within the > main zope directory and running the system python on it. The original > instance works fine but not the new one. Any ideas?
Did you compile the Zope C extensions? ./configure; make
-- Martijn Pieters
-- michael
------------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- michael
participants (4)
-
Laurence Rowe -
Maciej Wisniowski -
Martijn Pieters -
michael nt milne