Version differences and other questions

Skip to first unread message


Aug 8, 2009, 10:28:22 PM8/8/09
Ok I just got the book and did all the installation and everything.
Quickstarted me a project and it looks nothing like the one in the
book. Turns out I got tg 1.1b3, so what I'm wondering is what version
was used for the book. oes it matter? I got kid working and some of
the examples work but I get this error when trying to run the
Chapter5b example:

C:\Documents and Settings\Kamek\My Documents\Downloads
\bookmarker>python start-b
: DeprecationWarning: the md5 module is deprecated; use hashlib
import md5
\sessionf DeprecationWarning: the sha module is deprecated; use the
hashlib m
odule instead
import sha
Traceback (most recent call last):
File "", line 26, in <module>
from bookmarker.controllers import Root
File "C:\Documents and Settings\Kamek\My Documents\Downloads
rker\", line 16, in <module>
class bookmark_fields(widgets.WidgetsList):
File "C:\Documents and Settings\Kamek\My Documents\Downloads
rker\", line 20, in bookmark_fields
select_categories = widgets.MultipleSelectField
File "C:\Python26\lib\site-packages\turbogears-1.1b3-py2.6.egg
ets\", line 126, in widget_init
func(self, *args, **kw)
File "C:\Python26\lib\site-packages\turbogears-1.1b3-py2.6.egg
ets\", line 858, in __init__
raise ValueError, ("No validator specified and couldn't "
ValueError: No validator specified and couldn't guess one. I cannot
work properl
y without it

What version do I need to make the examples work, and how would I
uninstall my current turbogears stuff to install the right version, as
I didnt use virtualenv for this.
Reply all
Reply to author
0 new messages