[Zope3-dev] Re: MS4 unit test failures in ZEO

Garrett Smith garrett at mojave-corp.com
Mon Dec 29 15:03:41 EST 2003


I'm developing on a Windows machine and also run into these errors. To 
test, I qualify the packages as follows:

   python test.py -p zope

The -p is a progress flag, which I like to use.

IIRC, someone mentioned that addressing these issues for Windows is 
non-trivial, so I just bypass the zodb tests. Maybe it's the wrong thing 
to do, but I've lost no sleep over it.

I believe that's the only Windows specific issue with the Zope 3 -- if 
you run into anything else, post your issue and hopefully we can sort it 
out.

  -- Garrett


David Harris wrote:

> Two days ago, I downloaded the Zope3-MS4-Windows.zip file to begin my 
> study of Zope3.
>  
> Today, I'm still on the first command in the README.txt file: python 
> test.py -v. I just cannot get past the ZEO tests. If anyone can help 
> me with the unit tests, I would greatly appreciate it.
>  
> First, my environment:
> Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on 
> win32
> Windows XP Personal SP1
> AMD Athlon 1GHz, 384MB RAM
>  
> Every unit test which wanders down into start_zeo_server() in forker.py 
> fails by timing out with multiple 10061 Connection refused errors (an 
> error for every one of the 120 passes through the loop.) I've found 
> references to this behavior several places on the 'Net. I even saw where 
> the loop limit was bumped from 20 to 120 on October 15 by 'jeremy' to 
> account for slow DB starts. I can set the limit to 1000 and never get a 
> connection.
>  
> I have not recompiled any C files - I'm running everything as it came 
> out of the box.
>  
> The first unit test failure is the testNOK test, followed by testOK, and 
> countless others (I can't tell you how many because it takes HOURS due 
> to the retry loop in start_zeo_server). Here's the unit test output 
> (which incidentally differs significantly from the traceback issued by 
> test.py and I've attached it after the unit test traceback....
>  
> testNOK (zodb.zeo.tests.test_auth.PlainTextAuth) ..
>  
> Error in test testNOK (zodb.zeo.tests.test_auth.PlainTextAuth)
> Traceback (most recent call last):
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\test_auth.py", 
> line 42, in setUp
>     self.__super_setUp()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\connection.py", 
> line 89, in setUp
>     self.startServer()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\connection.py", 
> line 181, in startServer
>     zeoport, adminaddr, pid, path = forker.start_zeo_server(
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\forker.py", 
> line 110, in start_zeo_server
>     s.connect(adminaddr)
>   File "<string>", line 1, in connect
> error: (10061, 'Connection refused')
>  
> testNOK (zodb.zeo.tests.test_auth.DigestAuth) ...
>  
> Error in test testNOK (zodb.zeo.tests.test_auth.DigestAuth)
> Traceback (most recent call last):
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\test_auth.py", 
> line 42, in setUp
>     self.__super_setUp()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\connection.py", 
> line 89, in setUp
>     self.startServer()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\connection.py", 
> line 181, in startServer
>     zeoport, adminaddr, pid, path = forker.start_zeo_server(
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\forker.py", 
> line 110, in start_zeo_server
>     s.connect(adminaddr)
>   File "<string>", line 1, in connect
> error: (10061, 'Connection refused')
>  
> 
> ======================================================================
> ERROR: testNOK (zodb.zeo.tests.test_auth.PlainTextAuth)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\test_auth.py", 
> line 42, in setUp
>     self.__super_setUp()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\connection.py", 
> line 89, in setUp
>     self.startServer()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\connection.py", 
> line 181, in startServer
>     zeoport, adminaddr, pid, path = forker.start_zeo_server(
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\forker.py", 
> line 110, in start_zeo_server
>     s.connect(adminaddr)
>   File "<string>", line 1, in connect
> error: (10061, 'Connection refused')
>  
> ======================================================================
> ERROR: testNOK (zodb.zeo.tests.test_auth.DigestAuth)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\test_auth.py", 
> line 42, in setUp
>     self.__super_setUp()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\connection.py", 
> line 89, in setUp
>     self.startServer()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\connection.py", 
> line 181, in startServer
>     zeoport, adminaddr, pid, path = forker.start_zeo_server(
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\forker.py", 
> line 110, in start_zeo_server
>     s.connect(adminaddr)
>   File "<string>", line 1, in connect
> error: (10061, 'Connection refused')
>  
> ----------------------------------------------------------------------
> Ran 2 tests in 288.585s
>  
> FAILED (errors=2)
>  
> Here's what appears on the screen when the test fails:
>  
> C:\rascal\dev\Zope3\Zope3-MS4-Windows>python test.py -vv . "testNOK"
> Running unit tests at level 1
> Running unit tests from C:\rascal\dev\Zope3\Zope3-MS4-Windows
> 
> Traceback (most recent call last):
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\zeoserver.py",
> line 182, in ?
>     main()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\zeoserver.py",
> line 135, in main
>     zo.realize(["-C", configfile])
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zdaemon\zdoptions.py", 
> line 25
> 9, in realize
>     self.load_schema()
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zdaemon\zdoptions.py", 
> line 31
> 0, in load_schema
>     self.schema = ZConfig.loadSchema(self.schemafile)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\loader.py", 
> line 37, i
> n loadSchema
>     return SchemaLoader().loadURL(url)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\loader.py", 
> line 71, i
> n loadURL
>     return self.loadResource(r)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\loader.py", 
> line 137,
> in loadResource
>     schema = ZConfig.schema.parseResource(resource, self)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\schema.py", 
> line 43, i
> n parseResource
>     xml.sax.parse(resource.file, parser)
>   File "C:\PYTHON23\Lib\xml\sax\__init__.py", line 33, in parse
>     parser.parse(source)
>   File "C:\PYTHON23\Lib\xml\sax\expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "C:\PYTHON23\Lib\xml\sax\xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "C:\PYTHON23\Lib\xml\sax\expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "C:\PYTHON23\Lib\xml\sax\expatreader.py", line 300, in start_element
>     self._cont_handler.startElement(name, AttributesImpl(attrs))
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\schema.py", 
> line 119,
> in startElement
>     getattr(self, "start_" + name)(attrs)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\schema.py", 
> line 306,
> in start_import
>     src = self._loader.schemaComponentSource(pkg, file)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\loader.py", 
> line 156,
> in schemaComponentSource
>     raise ZConfig.SchemaError("could not load package %s: %s"
> ZConfig.SchemaError: could not load package zodb/zeo: No module named 
> zodb/zeo
> Traceback (most recent call last):
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\zeoserver.py",
> line 182, in ?
>     main()
>   File 
> "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zodb\zeo\tests\zeoserver.py",
> line 135, in main
>     zo.realize(["-C", configfile])
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zdaemon\zdoptions.py", 
> line 25
> 9, in realize
>     self.load_schema()
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\zdaemon\zdoptions.py", 
> line 31
> 0, in load_schema
>     self.schema = ZConfig.loadSchema(self.schemafile)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\loader.py", 
> line 37, i
> n loadSchema
>     return SchemaLoader().loadURL(url)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\loader.py", 
> line 71, i
> n loadURL
>     return self.loadResource(r)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\loader.py", 
> line 137,
> in loadResource
>     schema = ZConfig.schema.parseResource(resource, self)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\schema.py", 
> line 43, i
> n parseResource
>     xml.sax.parse(resource.file, parser)
>   File "C:\PYTHON23\Lib\xml\sax\__init__.py", line 33, in parse
>     parser.parse(source)
>   File "C:\PYTHON23\Lib\xml\sax\expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "C:\PYTHON23\Lib\xml\sax\xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "C:\PYTHON23\Lib\xml\sax\expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "C:\PYTHON23\Lib\xml\sax\expatreader.py", line 300, in start_element
>     self._cont_handler.startElement(name, AttributesImpl(attrs))
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\schema.py", 
> line 119,
> in startElement
>     getattr(self, "start_" + name)(attrs)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\schema.py", 
> line 306,
> in start_import
>     src = self._loader.schemaComponentSource(pkg, file)
>   File "C:\rascal\dev\Zope3\Zope3-MS4-Windows\src\ZConfig\loader.py", 
> line 156,
> in schemaComponentSource
>     raise ZConfig.SchemaError("could not load package %s: %s"
> ZConfig.SchemaError: could not load package zodb/zeo: No module named 
> zodb/zeo
>  
> C:\rascal\dev\Zope3\Zope3-MS4-Windows>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-dev





More information about the Zope3-dev mailing list