[Zope3-Users] message board package

Leeuw van der, Tim tim.leeuwvander at nl.unisys.com
Mon Jan 17 00:53:51 EST 2005


I had this exact same problem and filed as a bug in collector (bug# 316 iirc?). Basically, your code is in the wrong location.

It should be in lib/python/ (relative to your Z3 instance), not in src/ or anything like that.

(If you would have checked out Z3 and work from that, yes then it would be in src/ from what I gather... But not if you use the release build / windows installer).

does that help?


-----Original Message-----
From: zope3-users-bounces at zope.org [mailto:zope3-users-bounces at zope.org]On Behalf Of oezzyu
Sent: Friday, January 14, 2005 7:23 PM
To: zope3-users at zope.org
Subject: [Zope3-Users] message board package

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

Zope3-users mailing list
Zope3-users at zope.org

More information about the Zope3-users mailing list