On Fri, 2011-04-01 at 15:39 -0500, Matt Feifarek wrote: > Hello. > > > Long-time Pylons user here. I'm just starting to learn Pyramid, and > was starting with the wiki tutorial here: > http://docs.pylonsproject.org/projects/pyramid/1.0/tutorials/wiki/index.html > > > When I get to the step of running the app for the first time: > > > $paster serve development.ini --reload > > > I get this: > > > [some traceback snipped...] > File > > "/home/mjf/pyr/pyramid_tut/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", > line 129, in filter_wrapper > **context.local_conf) > File > > "/home/mjf/pyr/pyramid_tut/lib/python2.6/site-packages/paste/deploy/util/fixtypeerror.py", > line 57, in fix_call > val = callable(*args, **kw) > File > > "/home/mjf/pyr/pyramid_tut/lib/python2.6/site-packages/repoze/tm/__init__.py", > line 102, in make_tm > commit_veto = EntryPoint.parse('x=%s' % > commit_veto).load(False) > File > > "/home/mjf/pyr/pyramid_tut/lib/python2.6/site-packages/distribute-0.6.14-py2.6.egg/pkg_resources.py", > line 1959, in load > raise ImportError("%r has no %r attribute" % (entry,attr)) > ImportError: <module 'repoze.tm' from > > '/home/mjf/pyr/pyramid_tut/lib/python2.6/site-packages/repoze/tm/__init__.pyc'> > has no 'default_commit_veto' attribute > > > > > Indeed, there is no string called "default_commit_veto" in repoze.tm's > __init__.py. > > > Pip seems to have installed two repoze.tm packages: > repoze.tm-1.0a5-py2.6.egg > repoze.tm2-1.0b1-py2.6.egg > > The installed/activated version is tm-1.0a5. The other egg seems to > have the 'default_commit_veto' attribute. > > > I am sure that I am running in a clean virtualenv with > --no-site-packages flag. > > > Nuking repoze.tm and installing repoze.tm2 makes it work. > > > So, it seems that there are two versions of repoze.tm kicking around, > and the tutorial wants repoze.tm2, but the docs suggest repoze.tm.
Thanks, I think this is already fixed in the trunk docs. - C > > > > > FYI. > > -- > You received this message because you are subscribed to the Google > Groups "pylons-discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to pylons-discuss > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
