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].
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.

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