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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 10 Nov 2002 09:12:39 -0800


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: Chetan Gadgil (chetang)
Date: 2002-11-10 17:12

Message:
Logged In: YES 
user_id=21159

Thanks for your response.
Will try with final ZODB 3.1

(Already tried with Python 2.2.2 final - did not work)

I was unable to compile Python 2.2.2 with VS.NET because 
of some missing macros (64 bit types, if I remember 
correctly).

I manually patched the Python 2.2.2 src distribution from 
CVS, and then was able to compile.

However, have not tried with ZODB after that. Will let you 
know, possibly tomorrow (Monday).

Regards
Chetan Gadgil


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

Comment By: Guido van Rossum (gvanrossum)
Date: 2002-11-09 22:23

Message:
Logged In: YES 
user_id=6380

We have never tried MSVC 7.0. Can you try the final releases
of Python 2.2.2 and ZODB 3.1 with MSVC 6.0? And then with 7.0?

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

Comment By: Chetan Gadgil (chetang)
Date: 2002-10-12 00:44

Message:
Logged In: YES 
user_id=21159

My last comment was for the crash problem.

ZODB tests crash on WinXP or Win2K (both Pro editions)
after some time. Till they crash, they report the "file
lock" exception below.

Regards
Chetan

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

Comment By: Chetan Gadgil (chetang)
Date: 2002-10-12 00:29

Message:
Logged In: YES 
user_id=21159

The .pyd files DO exist.

Anyway, I will try to build Python 2.2.2b1 from scratch and
run it in the debugger. Don't hope to find much as I am not
familiar with the ZODB/Python C source code.

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

Comment By: Jeremy Hylton (jhylton)
Date: 2002-10-11 20:53

Message:
Logged In: YES 
user_id=31392

Do you have a cPersistence.pyd file?  When I build ZODB3 on
Windows (MSVC 6), I get
buil\lib.win32-2.2\ZODB\cPersistence.pyd.

Note that the test.py script runs out of the build
directory, not the source directory.  If you run Python from
the same directory as test.py, it will try to run from the
source directory and fail.  You need to put the build\lib
directory on PYTHONPATH.

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

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

Message:
Logged In: YES 
user_id=21159

Actually:
import ZODB does  not work.

...
running install_headers
not copying ExtensionClass/src/ExtensionClass.h (output up-
to-date)
not copying ZODB/cPersistence.h (output up-to-date)

C:\downloads\ZODB3-3.1b2>c:/python22/python.exe
Python 2.2.2b1 (#36, Oct  7 2002, 18:08:23) [MSC 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more 
information.
>>> import ZODB
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "ZODB\__init__.py", line 18, in ?
    import cPersistence, Persistence
ImportError: No module named cPersistence
>>>

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

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

Message:
Logged In: YES 
user_id=21159

Actually 7 files were created
So:
cat xaa xab xac xad xae xaf xag> ZODB_ZIP.zip


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

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

Message:
Logged In: YES 
user_id=21159

part2

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

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

Message:
Logged In: YES 
user_id=21159

seg 2

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

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

Message:
Logged In: YES 
user_id=21159

ZIP file attached.

COULD NOT ATTACH LARGE ZIP FILE.
I have used "split" to split it into 250k chunks. 
Just 

cat xaa xab xac xad xae xaf > ZODB_ZIP.zip

unzip ZODB_ZIP.zip
The image was built on WinXP with MSVC 7.0.

Extract the zip. Then cd to the ZODB dir extracted.

c:/python22/python.exe test.py

The python.exe is from http://www.python.org/
Version: 2.2.2b1

Regards
Chetan

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

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

Message:
Logged In: YES 
user_id=21159

ZIP file attached.

The image was built on WinXP with MSVC 7.0.

Extract the zip. Then cd to the ZODB dir extracted.

c:/python22/python.exe test.py

The python.exe is from http://www.python.org/
Version: 2.2.2b1

Regards
Chetan

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

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