[Zope] winlock.error: 33 -- Zope2.app()

mycrazylists mycrazylists mycrazylists at yahoo.com
Sun Feb 4 20:43:05 EST 2007


Hi All,
       I am getting winlock.error :33 when trying to execute a function called connectZope (mentioned below). If i execute the same function when zope is not running, it works fine. I think this is bcoz of zope acquiring lock on data.fs when its running. Am i missing anything here or Is there any other way i can accomplish the same ( i wolud like to execute a python script (zope object)) from a background process instead of calling the same on the Web).   
Any help would be appreciated. 

def connectZope():
    from Zope2.Startup.run import configure
    configure('C:\Zope-Instance\etc\zope.conf')
    import Zope2
    app = Zope2.app()
    return app

app = connectZope()
app.myscript()


Traceback (most recent call last):
  File "test.py", line 8, in ?
    app = connectZope()
  File "test.py", line 5, in connectZope
    app = Zope2.app()
  File "C:\Zope-2.8.4-final\lib\python\Zope2\__init__.py", line 51, in app
    startup()
  File "C:\Zope-2.8.4-final\lib\python\Zope2\__init__.py", line 47, in startup
    _startup()
  File "C:\Zope-2.8.4-final\lib\python\Zope2\App\startup.py", line 56, in startu
p
    DB = configuration.dbtab.getDatabase('/', is_root=1)
  File "C:\Zope-2.8.4-final\lib\python\DBTab\DBTab.py", line 96, in getDatabase
    db = self._createDatabase(name, is_root)
  File "C:\Zope-2.8.4-final\lib\python\DBTab\DBTab.py", line 113, in _createData
base
    db = factory.open()
  File "C:\Zope-2.8.4-final\lib\python\Zope2\Startup\datatypes.py", line 163, in
 open
    DB = self.createDB()
  File "C:\Zope-2.8.4-final\lib\python\Zope2\Startup\datatypes.py", line 160, in
 createDB
    return ZODBDatabase.open(self)
  File "C:\Zope-2.8.4-final\lib\python\ZODB\config.py", line 97, in open
    storage = section.storage.open()
  File "C:\Zope-2.8.4-final\lib\python\ZODB\config.py", line 133, in open
    quota=self.config.quota)
  File "C:\Zope-2.8.4-final\lib\python\ZODB\FileStorage\FileStorage.py", line 11
2, in __init__
    self._lock_file = LockFile(file_name + '.lock')
  File "C:\Zope-2.8.4-final\lib\python\ZODB\lock_file.py", line 63, in __init__
    lock_file(self._fp)
  File "C:\Zope-2.8.4-final\lib\python\ZODB\lock_file.py", line 33, in lock_file

    _LockFile(file.fileno(), 0, 0, 1, 0)
winlock.error: 33

 
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070204/44ddc289/attachment.htm


More information about the Zope mailing list