Hi All,<br> 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). <br>Any help would be appreciated. <br><br>def connectZope():<br> from Zope2.Startup.run import configure<br> configure('C:\Zope-Instance\etc\zope.conf')<br> import Zope2<br> app = Zope2.app()<br> return app<br><br>app = connectZope()<br>app.myscript()<br><br><br>Traceback (most recent call last):<br> File "test.py", line 8, in ?<br> app = connectZope()<br> File
"test.py", line 5, in connectZope<br> app = Zope2.app()<br> File "C:\Zope-2.8.4-final\lib\python\Zope2\__init__.py", line 51, in app<br> startup()<br> File "C:\Zope-2.8.4-final\lib\python\Zope2\__init__.py", line 47, in startup<br> _startup()<br> File "C:\Zope-2.8.4-final\lib\python\Zope2\App\startup.py", line 56, in startu<br>p<br> DB = configuration.dbtab.getDatabase('/', is_root=1)<br> File "C:\Zope-2.8.4-final\lib\python\DBTab\DBTab.py", line 96, in getDatabase<br> db = self._createDatabase(name, is_root)<br> File "C:\Zope-2.8.4-final\lib\python\DBTab\DBTab.py", line 113, in _createData<br>base<br> db = factory.open()<br> File "C:\Zope-2.8.4-final\lib\python\Zope2\Startup\datatypes.py", line 163, in<br> open<br> DB = self.createDB()<br> File
"C:\Zope-2.8.4-final\lib\python\Zope2\Startup\datatypes.py", line 160, in<br> createDB<br> return ZODBDatabase.open(self)<br> File "C:\Zope-2.8.4-final\lib\python\ZODB\config.py", line 97, in open<br> storage = section.storage.open()<br> File "C:\Zope-2.8.4-final\lib\python\ZODB\config.py", line 133, in open<br> quota=self.config.quota)<br> File "C:\Zope-2.8.4-final\lib\python\ZODB\FileStorage\FileStorage.py", line 11<br>2, in __init__<br> self._lock_file = LockFile(file_name + '.lock')<br> File "C:\Zope-2.8.4-final\lib\python\ZODB\lock_file.py", line 63, in __init__<br> lock_file(self._fp)<br> File "C:\Zope-2.8.4-final\lib\python\ZODB\lock_file.py", line 33, in lock_file<br><br> _LockFile(file.fileno(), 0, 0, 1, 0)<br>winlock.error: 33<br><p> 
<hr size=1>Expecting? Get great news right away with <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">email Auto-Check.</a><br>Try the <a href="http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html">Yahoo! Mail Beta.</a>