[Zope-Coders] Zope 2.6 breaks CMF Tests

Tres Seaver tseaver@zope.com
15 Nov 2002 19:03:47 -0500


On Fri, 2002-11-15 at 06:10, Chris Withers wrote:

Try rebuilding the shared libs / DLLs in your Zope (this looks like you
are running from a checkout, and freshening it with 'cvs up', but not
re-running 'wo_pcgi' / 'setup.py --build_ext'.

> I'm hoping someone can help sort out these errors which are causing the CMF 
> nightly tests to fail:
> 
> zope-tests@squishdot.org wrote:
> > ==============================================================================
> > Traceback (most recent call last):
> >   File "all_cmf_tests.py", line 74, in ?
> >     main()
> <snip>
> >   File "D:\ZopeTests\sandbox\Zope\lib\python\Globals.py", line 23, in ?
> >     import Acquisition, ComputedAttribute, App.PersistentExtra, os
> >   File "D:\ZopeTests\sandbox\Zope\lib\python\App\PersistentExtra.py", line 15, in ?
> >     from Persistence import Persistent
> > ImportError: cannot import name Persistent
> 
> Now, I have included D:\ZopeTests\sandbox\Zope and 
> D:\ZopeTests\sandbox\Zope\lib\python on my PYTHONPATH, which used to work fine 
> with Zope 2.5.x, however, it appears that 'import Zope' does something different 
> in Zope 2.6.
> 
> I tried the following patch:
> --- \zope\cmf_dev\Products\all_cmf_tests.py     Mon Aug 19 18:25:46 2002
> +++ all_cmf_tests.py    Fri Nov 15 11:02:50 2002
> @@ -14,7 +14,9 @@
> 
>   def test_suite():
> 
> +    import Testing
>       import Zope
> +    import ZODB
>       from Products.CMFCore.tests.base.utils import build_test_suite
> 
>       suite = unittest.TestSuite()
> 
> ...but that just changes the exception (apologies for its length :-S):
> 
> Traceback (most recent call last):
>    File "all_cmf_tests.py", line 20, in test_suite
>      from Products.CMFCore.tests.base.utils import build_test_suite
> <snip>
>    File "D:\ZopeTests\sandbox\Zope\lib\python\Products\ZCatalog\__init__.py", lin
> e 16, in ?
>      import ZCatalog, Catalog, CatalogAwareness, CatalogPathAwareness, ZClasses
>    File "D:\ZopeTests\sandbox\Zope\lib\python\ZClasses\__init__.py", line 20, in
> ?
>      import ZClass
>    File "D:\ZopeTests\sandbox\Zope\lib\python\ZClasses\ZClass.py", line 16, in ?
>      import Method, Basic, Property, AccessControl.Role, re
>    File "D:\ZopeTests\sandbox\Zope\lib\python\ZClasses\Method.py", line 18, in ?
>      import App.Dialogs, ZClasses, App.Factory, App.Product, App.ProductRegistry
>    File "D:\ZopeTests\sandbox\Zope\lib\python\App\Factory.py", line 19, in ?
>      import Products, Product
>    File "D:\ZopeTests\sandbox\Zope\lib\python\App\Product.py", line 44, in ?
>      from Factory import Factory
> ImportError: cannot import name Factory
> 
> At this point I thought it was best to mail this list and pray ;-)
> 
> Heylp!
> 
> Chris
> 
> 
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://lists.zope.org/mailman/listinfo/zope-coders
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com