[Zope-dev] Zope head broken on cygwin?

Chris McDonough chrism at plope.com
Mon May 10 21:10:26 EDT 2004


I'm surprised it works for you under OpenBSD.  The HEAD is broken
currently because database mounts don't work.  See the thread started by
http://mail.zope.org/pipermail/zope-dev/2004-April/022684.html for more
info.

On Mon, 2004-05-10 at 19:56, zope at netchan.cotse.net wrote:
> Something is not right with the Zope 2.x cvs head on cygwin. I used
> yesterdays checkout of Zope and Python 2.3 maintenance branch. The same
> combo works on OpenBSD.
> Here's the story:
> 
> netchan at GYOGYI /zope/cvszope/bin
> $ /zope/python23/bin/python ./mkzopeinstance.py
> Please choose a directory in which you'd like to install
> Zope "instance home" files such as database files, configuration
> files, etc.
> 
> Directory: /zope/instances/ndev
> Please choose a username and password for the initial user.
> These will be the credentials you use to initially manage
> your new Zope instance.
> 
> Username: admin
> Password:
> Verify password:
> 
> netchan at GYOGYI /zope/cvszope/bin
> $ cd /zope/instances/ndev/bin/
> 
> netchan at GYOGYI /zope/instances/ndev/bin
> $ ./runzope
> 2004-05-10 18:36:15 WARNING Init Ambiguous name for method of
> OFS.Uninstalled.BrokenClass: 'manage' != 'manage_main'
> 2004-05-10 18:36:15 WARNING Init Ambiguous name for method of
> OFS.Uninstalled.BrokenClass: 'manage' != 'manage_workspace
> '
> 2004-05-10 18:36:15 INFO ZServer HTTP server started at Mon May 10
> 18:36:15 2004
>         Hostname: GYOGYI.WorkGroup
>         Port: 8080
> 2004-05-10 18:36:15 INFO ZServer FTP server started at Mon May 10
> 18:36:15 2004
>         Hostname: GYOGYI.WorkGroup
>         Port: 8021
> 2004-05-10 18:36:18 DEBUG ZODB.BaseStorage create storage
> /zope/instances/ndev/var/Data.fs
> 2004-05-10 18:36:18 DEBUG txn.168034336 new transaction
> 2004-05-10 18:36:18 DEBUG txn.168034336 new transaction
> 2004-05-10 18:36:18 DEBUG txn.168034336 commit <Connection at 0ac91f6c>
> 2004-05-10 18:36:18 DEBUG txn.168034336 commit
> 2004-05-10 18:36:18 ERROR Zope.ZODBMountPoint Failed to mount database.
> exceptions.AttributeError ('Connection' object h
> as no attribute '_getMountedConnection')
> Traceback (most recent call last):
>   File "/zope/cvszope/lib/python/Products/ZODBMountPoint/Mount.py", line
> 93, in _getOrOpenObject
>     conn = self._getMountedConnection(anyjar)
>   File "/zope/cvszope/lib/python/Products/ZODBMountPoint/Mount.py", line
> 71, in _getMountedConnection
>     conn = anyjar._getMountedConnection(db_name)
> AttributeError: 'Connection' object has no attribute
> '_getMountedConnection'
> 2004-05-10 18:36:18 ERROR Zope Default Object Creation Could not add a
> /temp_folder mount point due to an error.
> Traceback (most recent call last):
>   File "/zope/cvszope/lib/python/OFS/Application.py", line 359, in
> install_tempfolder_and_sdc
>     manage_addMounts(app, ('/temp_folder',))
>   File
> "/zope/cvszope/lib/python/Products/ZODBMountPoint/MountedObject.py",
> line 283, in manage_addMounts
>     mo._test(app)
>   File "/zope/cvszope/lib/python/Products/ZODBMountPoint/Mount.py", line
> 126, in _test
>     self._getOrOpenObject(parent)
>   File "/zope/cvszope/lib/python/Products/ZODBMountPoint/Mount.py", line
> 93, in _getOrOpenObject
>     conn = self._getMountedConnection(anyjar)
>   File "/zope/cvszope/lib/python/Products/ZODBMountPoint/Mount.py", line
> 71, in _getMountedConnection
>     conn = anyjar._getMountedConnection(db_name)
> AttributeError: 'Connection' object has no attribute
> '_getMountedConnection'
> 2004-05-10 18:36:18 DEBUG txn.168034336 new transaction
> 2004-05-10 18:36:18 DEBUG txn.168034336 commit <Connection at 0ac91f6c>
> 
> [same stuff for a few more times]
> 
> 2004-05-10 18:36:25 INFO Zope New disk product detected, determining if
> we need to fix up any ZClasses.
> 2004-05-10 18:36:25 BLATHER Z2 Installed sighandler for SIGTERM
> 2004-05-10 18:36:25 BLATHER Z2 Installed sighandler for SIGINT
> 2004-05-10 18:36:25 BLATHER Z2 Installed sighandler for SIGHUP
> 2004-05-10 18:36:25 BLATHER Z2 Installed sighandler for SIGUSR2
> 2004-05-10 18:36:25 INFO Zope Ready to handle requests
> 
> ---------------------------
> Here I hit Ctrl-C
> ---------------------------
> 
> 2004-05-10 18:36:36 INFO Z2 Caught signal SIGINT
> 2004-05-10 18:36:36 INFO Z2 Shutting down
> 
> netchan at GYOGYI /zope/instances/ndev/bin
> $ ls -lag ../var/
> total 1929
> drwxr-xr-x+   2 netchan  None            0 May 10 18:36 .
> drwxr-xr-x+   9 netchan  None            0 May 10 18:36 ..
> -rw-r--r--    1 netchan  None      1379510 May 10 18:36 Data.fs
> -rw-r--r--    1 netchan  None          103 May 10 18:36 Data.fs.index
> -rw-r--r--    1 netchan  None            5 May 10 18:36 Data.fs.lock
> -rw-r--r--    1 netchan  None       591302 May 10 18:36 Data.fs.tmp
> -rw-r--r--    1 netchan  None          299 May 10 18:36 README.txt
> 
> netchan at GYOGYI /zope/instances/ndev/bin
> $ ./runzope
> 2004-05-10 18:37:13 WARNING Init Ambiguous name for method of
> OFS.Uninstalled.BrokenClass: 'manage' != 'manage_main'
> 2004-05-10 18:37:13 WARNING Init Ambiguous name for method of
> OFS.Uninstalled.BrokenClass: 'manage' != 'manage_workspace
> '
> 2004-05-10 18:37:13 INFO ZServer HTTP server started at Mon May 10
> 18:37:13 2004
>         Hostname: GYOGYI.WorkGroup
>         Port: 8080
> 2004-05-10 18:37:13 INFO ZServer FTP server started at Mon May 10
> 18:37:13 2004
>         Hostname: GYOGYI.WorkGroup
>         Port: 8021
> 2004-05-10 18:37:15 DEBUG ZODB.BaseStorage create storage
> /zope/instances/ndev/var/Data.fs
> 2004-05-10 18:37:15 WARNING ZODB.FileStorage Ignoring index for
> /zope/instances/ndev/var/Data.fs
> 2004-05-10 18:37:15 ERROR ZODB.Connection Couldn't load state for
> 0000000000000000
> Traceback (most recent call last):
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 795, in
> setstate
>     self._setstate(obj)
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 849, in
> _setstate
>     self._reader.setGhostState(obj, p)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 400, in
> setGhostState
>     state = self.getState(pickle)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 393, in
> getState
>     return unpickler.load()
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 492, in
> _persistent_load
>     return self._conn.get(oid)
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 333, in get
>     obj = self._reader.getGhost(p)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 387, in
> getGhost
>     return klass.__new__(klass, *args)
> TypeError: Acquirer.__new__(Application) is not safe, use
> Persistence.Persistent.__new__()
> Traceback (most recent call last):
>   File "/zope/cvszope/lib/python/Zope/Startup/run.py", line 55, in ?
>     run()
>   File "/zope/cvszope/lib/python/Zope/Startup/run.py", line 21, in run
>     starter.prepare()
>   File "/zope/cvszope/lib/python/Zope/Startup/__init__.py", line 96, in
> prepare
>     self.startZope()
>   File "/zope/cvszope/lib/python/Zope/Startup/__init__.py", line 252, in
> startZope
>     Zope.startup()
>   File "/zope/cvszope/lib/python/Zope/__init__.py", line 46, in startup
>     _startup()
>   File "/zope/cvszope/lib/python/Zope/App/startup.py", line 91, in
> startup
>     Globals.VersionNameName)
>   File "/zope/cvszope/lib/python/ZODB/ZApplication.py", line 33, in
> __init__
>     if not root.has_key(name):
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 795, in
> setstate
>     self._setstate(obj)
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 849, in
> _setstate
>     self._reader.setGhostState(obj, p)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 400, in
> setGhostState
>     state = self.getState(pickle)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 393, in
> getState
>     return unpickler.load()
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 492, in
> _persistent_load
>     return self._conn.get(oid)
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 333, in get
>     obj = self._reader.getGhost(p)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 387, in
> getGhost
>     return klass.__new__(klass, *args)
> TypeError: Acquirer.__new__(Application) is not safe, use
> Persistence.Persistent.__new__()
> 
> netchan at GYOGYI /zope/instances/ndev/bin
> $
> -----------------------------
> The testrunner is weird, too:
> -----------------------------
> 
> netchan at GYOGYI /zope/cvszope/lib/python
> $ ../../bin/testrunner.py -a
> Adding /zope/cvszope/lib/python to sys.path.
> No handlers could be found for logger "Init"
> Module testUserFolder.py failed to load
> exceptions.TypeError: Acquirer.__new__(UserFolder) is not safe, use
> Persistence.Persistent.__new__()
> 
>   File "../../bin/testrunner.py", line 68, in getSuiteFromFile
>     module=imp.load_module(name, file, pathname, desc)
>   File "/zope/cvszope/lib/python/AccessControl/tests/testUserFolder.py",
> line 24, in ?
>     Zope.startup()
>   File "/zope/cvszope/lib/python/Zope/__init__.py", line 46, in startup
>     _startup()
>   File "/zope/cvszope/lib/python/Zope/App/startup.py", line 96, in
> startup
>     OFS.Application.initialize(application)
>   File "/zope/cvszope/lib/python/OFS/Application.py", line 279, in
> initialize
>     initializer.initialize()
>   File "/zope/cvszope/lib/python/OFS/Application.py", line 306, in
> initialize
>     self.install_products()
>   File "/zope/cvszope/lib/python/OFS/Application.py", line 553, in
> install_products
>     return install_products(app)
>   File "/zope/cvszope/lib/python/OFS/Application.py", line 584, in
> install_products
>     folder_permissions, raise_exc=debug_mode)
>   File "/zope/cvszope/lib/python/OFS/Application.py", line 721, in
> install_product
>     productObject=App.Product.initializeProduct(
>   File "/zope/cvszope/lib/python/App/Product.py", line 495, in
> initializeProduct
>     products=app.Control_Panel.Products
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 795, in
> setstate
>     self._setstate(obj)
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 849, in
> _setstate
>     self._reader.setGhostState(obj, p)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 400, in
> setGhostState
>     state = self.getState(pickle)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 393, in
> getState
>     return unpickler.load()
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 492, in
> _persistent_load
>     return self._conn.get(oid)
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 333, in get
>     obj = self._reader.getGhost(p)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 387, in
> getGhost
>     return klass.__new__(klass, *args)
> 
> Module testCatalog.py failed to load
> exceptions.TypeError: Acquirer.__new__(UserFolder) is not safe, use
> Persistence.Persistent.__new__()
> 
>   File "../../bin/testrunner.py", line 68, in getSuiteFromFile
>     module=imp.load_module(name, file, pathname, desc)
>   File
> "/zope/cvszope/lib/python/Products/ZCatalog/tests/testCatalog.py", line
> 42, in ?
>     app = createDatabase()
>   File
> "/zope/cvszope/lib/python/Products/ZCatalog/tests/testCatalog.py", line
> 38, in createDatabase
> 
>     OFS.Application.install_products(app) # XXX: this is still icky
>   File "/zope/cvszope/lib/python/OFS/Application.py", line 584, in
> install_products
>     folder_permissions, raise_exc=debug_mode)
>   File "/zope/cvszope/lib/python/OFS/Application.py", line 721, in
> install_product
>     productObject=App.Product.initializeProduct(
>   File "/zope/cvszope/lib/python/App/Product.py", line 495, in
> initializeProduct
>     products=app.Control_Panel.Products
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 795, in
> setstate
>     self._setstate(obj)
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 849, in
> _setstate
>     self._reader.setGhostState(obj, p)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 400, in
> setGhostState
>     state = self.getState(pickle)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 393, in
> getState
>     return unpickler.load()
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 492, in
> _persistent_load
>     return self._conn.get(oid)
>   File "/zope/cvszope/lib/python/ZODB/Connection.py", line 333, in get
>     obj = self._reader.getGhost(p)
>   File "/zope/cvszope/lib/python/ZODB/serialize.py", line 387, in
> getGhost
>     return klass.__new__(klass, *args)
> 
> test_bound_unused_container (testBindings.TestBindings) ... ok
> test_bound_unused_context (testBindings.TestBindings) ... ok
> test_bound_used_container (testBindings.TestBindings) ... ok
> test_bound_used_container_allowed (testBindings.TestBindings) ... ok
> test_bound_used_context (testBindings.TestBindings) ... ok
> [...]
> 
> Any idea?
> 
> Reagrds,
> Sandor
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope )




More information about the Zope-Dev mailing list