Hi,

I think I've figured it out:  I ran the command "bin/easy_install pyramid" 
as per the Installation Instructions before I ran: 
"bin/easy_install docutils pyramid_tm pyramid_zodbconn pyramid_debugtoolbar 
nose coverage" as per the ZODB + Traversal Wiki Tutorial ( 1.4-branch) 
instructions. 
 I have since rerun though the  ZODB + Traversal Wiki Tutorial  again, 
clean (without running "bin/easy_install pyramid") , and do not have the 
"cannot import name DBSession" error.

One note:  since I am using pyramid v1.5a3, I find that I have to apply the 
additional instructions located at 
 
http://docs.pylonsproject.org/projects/pyramid/en/master/whatsnew-1.5.html<http://docs.pylonsproject.org/projects/pyramid/en/master/whatsnew-1.5.html>

Thanks much,
Tom


On Thursday, January 23, 2014 11:39:27 PM UTC-5, Chris McDonough wrote:
>
> On 01/23/2014 08:37 PM, Thomas Grzybowski wrote: 
> > Hi, 
> > 
> > I am attempting to run through the ZODB + Traversal Wiki Tutorial, but 
> > when I come to Defining Views - Viewing the Application 
> > in a Browser, when I run "../bin/pserve development.ini --reload", I run 
> > into the following error: "cannot import name DBSession". Running 
> > "../bin/pserve production.ini" gives the same error. 
> > 
> > When I run the setup test "../bin/python setup.py test -q",  I get the 
> > following: "AttributeError: 'module' object has no attribute 'views' ". 
> >    I'm not sure if this error is related to the previous. 
> > 
> > I have reviewed the code changes I made as per the tutorial, but cannot 
> > find any reference to "DBSession." 
> > 
> > Any suggestions on how to proceed debugging would be greatly 
> appreciated. 
>
> I think you used "pcreate -s alchemy" instead of "pcreate -s zodb".  The 
> zodb scaffold does not define a name "DBSession" 
>
>
> > 
> > Thanks, 
> > Tom 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "pylons-discuss" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to [email protected] <javascript:>. 
> > To post to this group, send email to 
> > [email protected]<javascript:>. 
>
> > Visit this group at http://groups.google.com/group/pylons-discuss. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to