[Zope3-Users] message board package

oezzyu oezzyu at web.de
Fri Jan 14 13:23:09 EST 2005

Hi, I started to learn Zope3 and was working through the Zope's 
Developers Book.
I run Zope3 on windows with Python 2.3.4 . I have the same situation as 
discribed in the
following post:

Until step v everything workes as discribed, except for the paths(see 
Next i put the messageboard.py into the messageboard-package, wich if i 
understood correctly are defined
through a folder i.e. book\message and an empty __init__.py file inside 
that folder.

when I try to execute (in dev-book)
python2.3 test.py -vpu --dir src/book/messageboard

wich on my system is
E:\Zope3>python bin\test.py -vpu --dir   E:\Zope3\src\book\messageboard  

I get the following results:

Running UNIT tests at all levels
Removing stale bytecode file .\src\book\messageboard\tests\test_mboard.pyc
Running UNIT tests from E:\Zope3\lib\python
No module named ssageboard.tests
['E:\\Zope3\\lib\\python', 'E:\\Zope3\\src', 'E:\\Zope3\\lib\\python', 
on23\\Lib\\site-packages', 'E:\\Zope3\\bin', 'E:\\Zope3\\src', 
tem32\\python23.zip', 'E:\\Zope3', 'E:\\Python23\\DLLs', 
'E:\\Python23\\lib', 'E
:\\Python23\\lib\\plat-win', 'E:\\Python23\\lib\\lib-tk', 
'E:\\Python23', 'E:\\P
ython23\\lib\\site-packages', 'E:\\Python23\\lib\\site-packages\\win32', 
Traceback (most recent call last):
 File "bin\test.py", line 58, in ?
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 1189, 
in pro
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 824, 
in main

   files = find_tests(module_filter)
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 594, 
in find
   walk_with_symlinks(d, finder.visit, rx)
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 574, 
in walk
   walk_with_symlinks(name, func, arg)
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 568, 
in walk
   func(arg, top, names)
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 541, 
in visi
ImportError: No module named ssageboard.tests

So it seems that the name is stripped somehow, like described in the 
post that i mentioned.
How can i fix this or is there another problem?

Thanks for any help

More information about the Zope3-users mailing list