[Zope] Mouting + Logging Errors after Zope Upgrade 2.7.4 -->
2.11.1
Dieter Maurer
dieter at handshake.de
Sat Aug 2 03:45:50 EDT 2008
Wolfgang Lausenhammer wrote at 2008-8-1 09:20 +0200:
> ...
>__init__
> File "D:\zope\2.11.1\Zope\lib\python\ZODB\lock_file.py", line 42, in
>_lock_file
>LockError: Couldn't lock
>'D:\\workspace_zope\\xla-2008/var/Stdcontainer_o.fs.lock'
A look at the code reveals:
# Windows
def _lock_file(file):
# Lock just the first byte
try:
msvcrt.locking(file.fileno(), msvcrt.LK_NBLCK, 1)
except IOError:
raise LockError("Couldn't lock %r" % file.name)
Thus, your Windows operating system reported a problem
in "msvcrt.locking".
Emulate the operation in an interactive Python interpreter
and more carefully look at the error indication.
Consult your OS documentation to find out the reasons for the problem.
--
Dieter
More information about the Zope
mailing list