[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:
http://mail.zope.org/pipermail/zope3-users/2004-November/000039.html

Until step v everything workes as discribed, except for the paths(see 
post).
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  
-a0

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', 
'E:\\Pyth
on23\\Lib\\site-packages', 'E:\\Zope3\\bin', 'E:\\Zope3\\src', 
'C:\\WINDOWS\\Sys
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', 
'E:\\Py
thon23\\lib\\site-packages\\win32\\lib', 
'E:\\Python23\\lib\\site-packages\\Pyth
onwin']
Traceback (most recent call last):
 File "bin\test.py", line 58, in ?
   test.process_args(args)
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 1189, 
in pro
cess_args
   bad = main(MODULE_FILTERS, TEST_FILTERS, LIBDIR)
 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
_tests
   walk_with_symlinks(d, finder.visit, rx)
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 574, 
in walk
_with_symlinks
   walk_with_symlinks(name, func, arg)
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 568, 
in walk
_with_symlinks
   func(arg, top, names)
 File "E:\Python23\Lib\site-packages\zope\app\tests\test.py", line 541, 
in visi
t
   __import__(pkg)
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