Hi,

Using the 1.5-branch tutorial I was able to run pserve and interact with 
the web application without any errors, or additions to the scripts. Thanks 
much!

Tom

On Friday, January 24, 2014 4:48:46 PM UTC-5, Thomas Grzybowski wrote:
>
> Oh - I did not know that we had 1-5-branch tutorials, a mistake.  I will 
> take your advice and start clean again using the up-to-date tutorial.
> Thanks,
> Tom
>
> On Friday, January 24, 2014 2:27:03 PM UTC-5, Michael Merickel wrote:
>>
>> If you're using 1.5a3, then you should be using the 1.5-branch of the 
>> documentation, not 1.4 and not master. The tutorials have all been updated 
>> to work properly without needing to look at the whatsnew document, unless 
>> you really do find a bug.
>>
>>
>> http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/tutorials/wiki/index.html
>>
>> Any DBSession errors are a clear indicator that you created your project 
>> using the alchemy scaffold, and not the zodb one as you seem to think. You 
>> should delete your project and start again with the correct scaffold and 
>> the correct tutorial if this is the case. This'll give you a much higher 
>> chance of success.
>>
>> You should not have to install all of the dependencies manually. They 
>> should be included in your setup.py file, and installed by running 
>> "$VENV/bin/python setup.py develop".
>>
>>
>>
>> On Fri, Jan 24, 2014 at 11:22 AM, Thomas Grzybowski <
>> thomasgr...@gmail.com> wrote:
>>
>>> 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 pylons-discus...@googlegroups.com. 
>>>> > To post to this group, send email to pylons-...@googlegroups.com. 
>>>> > 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 pylons-discus...@googlegroups.com.
>>> To post to this group, send email to pylons-...@googlegroups.com.
>>> 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 pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
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