[ZODB-Dev] [ zodb-Bugs-621942 ] Python 2.2.2b1 + ZODB 1.0 Error - WinXP

noreply@sourceforge.net noreply@sourceforge.net
Fri, 11 Oct 2002 10:12:41 -0700


Bugs item #621942, was opened at 2002-10-11 15:44
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=621942&group_id=15628

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Chetan Gadgil (chetang)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.2.2b1 + ZODB 1.0 Error - WinXP

Initial Comment:
Python 2.2.2b1 with "StandAlone ZODB 1.0" (latest 
release) works on Solaris. (I suspect on most Unixes)

I downloaded Python 2.2.2b1 and built ZODB with 
MSVC 7.0 on Windows XP Pro.

The tests ran fine for a while, and I got some errors in 
lock_file.py (file is possibly locked by another process).

After a few such messages the test.py process hung.

Later, I tried the StorageServer.py. Worked on Solaris 
2.8 (gcc 3.0.4).
Failed on Windows with the lock_file error above.

I commented out the "raise" in the file, then the process 
started up. When I tried using the ZODB.ClientStorage, 
the client process hung.

ZODB does not work at all with Python 2.2.1 
(unpatched) - get a crash, but that's probably to the 
ExtensionClass bug.

Thanks for producing these amazing tools such as 
Python, ZODB etc. I don't use Perl anymore.

----------------------------------------------------------------------

>Comment By: Jeremy Hylton (jhylton)
Date: 2002-10-11 17:12

Message:
Logged In: YES 
user_id=31392

ZEO/StorageServer.py isn't a script; it's just a module.  If
you run the module as a script it won't start the server. 
The failure you see might be because the path isn't set
properly.

If you try to import ZODB, that works, right?  And import
ZODB.cPersistence also works?

For the crash, can you get a C stack trace from the debugger?


----------------------------------------------------------------------

Comment By: Chetan Gadgil (chetang)
Date: 2002-10-11 16:43

Message:
Logged In: YES 
user_id=21159

Following is the log when I try using ZEO/start.py

BTW StandAloneZODB worked fine on Solaris. Will try ZODB 
3.1b2 on solaris later today.

Sorry for the flood of these bug updates. But I thought 
separating these out would be more sensible.

Regards
Chetan


----------------------------------------------------------------------

Comment By: Chetan Gadgil (chetang)
Date: 2002-10-11 16:40

Message:
Logged In: YES 
user_id=21159

Maybe I am doing something wrong. This did not happen for 
StandAlone ZODB

C:\downloads\ZODB3-3.1b2>c:/python22/python.exe 
ZEO\StorageServer.py localhost 2
1000
Traceback (most recent call last):
  File "ZEO\StorageServer.py", line 31, in ?
    from ZEO.zrpc.server import Dispatcher
  File "C:\downloads\ZODB3-3.1b2\ZEO\zrpc\server.py", line 
18, in ?
    from ZEO.zrpc.connection import Connection, Delay
  File "C:\downloads\ZODB3-3.1b2\ZEO\zrpc\connection.py", 
line 23, in ?
    from ZEO.zrpc.error import ZRPCError, DisconnectedError
  File "C:\downloads\ZODB3-3.1b2\ZEO\zrpc\error.py", line 
14, in ?
    from ZODB import POSException
  File "C:\downloads\ZODB3-3.1b2\ZODB\__init__.py", line 
18, in ?
    import cPersistence, Persistence
ImportError: No module named cPersistence

C:\downloads\ZODB3-3.1b2>

----------------------------------------------------------------------

Comment By: Chetan Gadgil (chetang)
Date: 2002-10-11 16:39

Message:
Logged In: YES 
user_id=21159

OK. This, I tried on my Win2K (Pro) machine. Same 
compiler. Downloaded Python 2.2.2b1.

After the following errors, the program crashed.
(Instruction at 0x... referenced memory at 0x000000..)
(Null pointer?)

C:\downloads\ZODB3-3.1b2>c:/python22/python.exe test.py
Error in test testGhostUnghost 
(BTrees.tests.testBTrees.TestIOSets)
Traceback (most recent call last):
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 88, in 
testGhostUnghost
    self._delDB()
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 47, in 
_delDB
    removefs(self._fsname)
  File "lib.win32-2.2\ZODB\tests\StorageTestBase.py", line 
115, in removefs
    os.remove(path)
OSError: [Errno 13] Permission denied: 'fs_tmp__1896.lock'

Error in test testLoadAndStore 
(BTrees.tests.testBTrees.TestIOSets)
Traceback (most recent call last):
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 60, in 
testLoadAndStore
    self._delDB()
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 47, in 
_delDB
    removefs(self._fsname)
  File "lib.win32-2.2\ZODB\tests\StorageTestBase.py", line 
115, in removefs
    os.remove(path)
OSError: [Errno 13] Permission denied: 'fs_tmp__1896.lock'

Error in test testGhostUnghost 
(BTrees.tests.testBTrees.TestOOSets)
Traceback (most recent call last):
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 88, in 
testGhostUnghost
    self._delDB()
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 47, in 
_delDB
    removefs(self._fsname)
  File "lib.win32-2.2\ZODB\tests\StorageTestBase.py", line 
115, in removefs
    os.remove(path)
OSError: [Errno 13] Permission denied: 'fs_tmp__1896.lock'

Error in test testLoadAndStore 
(BTrees.tests.testBTrees.TestOOSets)
Traceback (most recent call last):
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 60, in 
testLoadAndStore
    self._delDB()
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 47, in 
_delDB
    removefs(self._fsname)
  File "lib.win32-2.2\ZODB\tests\StorageTestBase.py", line 
115, in removefs
    os.remove(path)
OSError: [Errno 13] Permission denied: 'fs_tmp__1896.lock'

Error in test testGhostUnghost 
(BTrees.tests.testBTrees.TestOISets)
Traceback (most recent call last):
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 88, in 
testGhostUnghost
    self._delDB()
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 47, in 
_delDB
    removefs(self._fsname)
  File "lib.win32-2.2\ZODB\tests\StorageTestBase.py", line 
115, in removefs
    os.remove(path)
OSError: [Errno 13] Permission denied: 'fs_tmp__1896.lock'

Error in test testLoadAndStore 
(BTrees.tests.testBTrees.TestOISets)
Traceback (most recent call last):
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 60, in 
testLoadAndStore
    self._delDB()
  File "lib.win32-2.2\BTrees\tests\testBTrees.py", line 47, in 
_delDB
    removefs(self._fsname)
  File "lib.win32-2.2\ZODB\tests\StorageTestBase.py", line 
115, in removefs
    os.remove(path)
OSError: [Errno 13] Permission denied: 'fs_tmp__1896.lock'


I have Win2K SP2 on this machine. Let me now try 
StorageServer.

Regards
Chetan

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2002-10-11 16:14

Message:
Logged In: YES 
user_id=6380

Thanks, that's what I was going to ask.


----------------------------------------------------------------------

Comment By: Chetan Gadgil (chetang)
Date: 2002-10-11 16:10

Message:
Logged In: YES 
user_id=21159

I will send an exact error log later today. (Don't have access 
to that machine right now)

----------------------------------------------------------------------

Comment By: Chetan Gadgil (chetang)
Date: 2002-10-11 16:07

Message:
Logged In: YES 
user_id=21159

I tried that too. Same error.

Regards
Chetan

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2002-10-11 16:01

Message:
Logged In: YES 
user_id=6380

Um, StandaloneZODB 1.0 is a bit old. We've released ZODB 3.1
beta 2 recently, which should be its successor. Can you try
that?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=621942&group_id=15628