[Zope3-Users] message board package

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


Hiya,

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?

--Tim


-----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:
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

_______________________________________________
Zope3-users mailing list
Zope3-users at zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


More information about the Zope3-users mailing list