Hi I have a few helper scripts to do some ZODB modifications from the outside, using "import Zope; a=Zope.app()" but after upgrading to 2.6.0 they stopped working. I can reproduce the core dump with: --- 8< --- 8< --- bash-2.03# /usr/local/bin/tar xfz ~peter/Zope-2.6.0-solaris-2.8-sparc.tgz bash-2.03# cd Zope-2.6.0-solaris-2.8-sparc/ bash-2.03# ./install ------------------------------------------------------------------------------ Compiling python modules ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ creating default inituser file Note: The initial user name and password are 'admin' and 'Te7iq1Ud'. You can change the name and password through the web interface or using the 'zpasswd.py' script. chmod 0600 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/inituser chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/var ------------------------------------------------------------------------------ setting dir permissions ------------------------------------------------------------------------------ creating default database chmod 0600 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/var/Data.fs ------------------------------------------------------------------------------ Writing the pcgi resource file (ie cgi script), /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/Zope.cgi chmod 0755 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/Zope.cgi ------------------------------------------------------------------------------ Creating start script, start chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/start ------------------------------------------------------------------------------ Creating stop script, stop chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/stop ------------------------------------------------------------------------------ Done! bash-2.03# export PYTHONPATH=lib/python bash-2.03# bin/python -i -c "import Zope"
a=Zope.app() ^D
bash-2.03# bin/python -i -c "import Zope; a=Zope.app()" ZODB/cPickleCache.c:445: failed assertion `key != Py_None' Abort (core dumped) bash-2.03# --- 8< --- 8< --- The confusing part is that it works if I do it manualy from the python prompt, but fail to execute if I do it in a script... Any clues for a workaround? / Johan -- Johan Lübcke <johan.lubcke@appload.net> Appload Nordic AB