Version differences and other questions

5 views
Skip to first unread message

Kamek

unread,
Aug 8, 2009, 10:28:22 PM8/8/09
to tg.book
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
ookmarker.py
C:\Python26\lib\site-packages\cherrypy-2.3.0-py2.6.egg\cherrypy\lib
\cptools.py:3
: DeprecationWarning: the md5 module is deprecated; use hashlib
instead
import md5
C:\Python26\lib\site-packages\cherrypy-2.3.0-py2.6.egg\cherrypy\filters
\sessionf
ilter.py:33: DeprecationWarning: the sha module is deprecated; use the
hashlib m
odule instead
import sha
Traceback (most recent call last):
File "start-bookmarker.py", line 26, in <module>
from bookmarker.controllers import Root
File "C:\Documents and Settings\Kamek\My Documents\Downloads
\bookmarker\bookma
rker\controllers.py", line 16, in <module>
class bookmark_fields(widgets.WidgetsList):
File "C:\Documents and Settings\Kamek\My Documents\Downloads
\bookmarker\bookma
rker\controllers.py", line 20, in bookmark_fields
select_categories = widgets.MultipleSelectField
(options=get_category_options
())
File "C:\Python26\lib\site-packages\turbogears-1.1b3-py2.6.egg
\turbogears\widg
ets\meta.py", line 126, in widget_init
func(self, *args, **kw)
File "C:\Python26\lib\site-packages\turbogears-1.1b3-py2.6.egg
\turbogears\widg
ets\forms.py", 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
Forward
0 new messages