Hi All,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 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).&nbsp;  <br>Any help would be appreciated. <br><br>def connectZope():<br>&nbsp;&nbsp;&nbsp; from Zope2.Startup.run import configure<br>&nbsp;&nbsp;&nbsp; configure('C:\Zope-Instance\etc\zope.conf')<br>&nbsp;&nbsp;&nbsp; import Zope2<br>&nbsp;&nbsp;&nbsp; app = Zope2.app()<br>&nbsp;&nbsp;&nbsp; return app<br><br>app = connectZope()<br>app.myscript()<br><br><br>Traceback (most recent call last):<br>&nbsp; File "test.py", line 8, in ?<br>&nbsp;&nbsp;&nbsp; app = connectZope()<br>&nbsp; File
 "test.py", line 5, in connectZope<br>&nbsp;&nbsp;&nbsp; app = Zope2.app()<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\Zope2\__init__.py", line 51, in app<br>&nbsp;&nbsp;&nbsp; startup()<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\Zope2\__init__.py", line 47, in startup<br>&nbsp;&nbsp;&nbsp; _startup()<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\Zope2\App\startup.py", line 56, in startu<br>p<br>&nbsp;&nbsp;&nbsp; DB = configuration.dbtab.getDatabase('/', is_root=1)<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\DBTab\DBTab.py", line 96, in getDatabase<br>&nbsp;&nbsp;&nbsp; db = self._createDatabase(name, is_root)<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\DBTab\DBTab.py", line 113, in _createData<br>base<br>&nbsp;&nbsp;&nbsp; db = factory.open()<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\Zope2\Startup\datatypes.py", line 163, in<br>&nbsp;open<br>&nbsp;&nbsp;&nbsp; DB = self.createDB()<br>&nbsp; File
 "C:\Zope-2.8.4-final\lib\python\Zope2\Startup\datatypes.py", line 160, in<br>&nbsp;createDB<br>&nbsp;&nbsp;&nbsp; return ZODBDatabase.open(self)<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\ZODB\config.py", line 97, in open<br>&nbsp;&nbsp;&nbsp; storage = section.storage.open()<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\ZODB\config.py", line 133, in open<br>&nbsp;&nbsp;&nbsp; quota=self.config.quota)<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\ZODB\FileStorage\FileStorage.py", line 11<br>2, in __init__<br>&nbsp;&nbsp;&nbsp; self._lock_file = LockFile(file_name + '.lock')<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\ZODB\lock_file.py", line 63, in __init__<br>&nbsp;&nbsp;&nbsp; lock_file(self._fp)<br>&nbsp; File "C:\Zope-2.8.4-final\lib\python\ZODB\lock_file.py", line 33, in lock_file<br><br>&nbsp;&nbsp;&nbsp; _LockFile(file.fileno(), 0, 0, 1, 0)<br>winlock.error: 33<br><p>&#32;

<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>