<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OK<div>Doing the excellent Bluebream Tutorial "ticketcollector"</div><div><a href="http://bluebream.zope.org/doc/1.0/tutorial1.html?highlight=shell">5. Tutorial — Part 1 — BlueBream v1.0b4 documentation</a></div><div>I found the answers to my previous bzr questions at section 5.2.2 - OK I understand.</div><div><br></div><div>I have a few other comments which I hope might help in a revision of the Tutorial 1 &nbsp;:......</div><div><br></div><div>1.<span class="Apple-tab-span" style="white-space:pre">        </span>When I got to section 5.2.5 and did the ./bin/buildout</div><div>it went into the same loop as reported previously below.</div><div>What I had to do was:</div><div>•<span class="Apple-tab-span" style="white-space:pre">        </span>stop the buildout</div><div>•<span class="Apple-tab-span" style="white-space:pre">        </span>quit from Terminal</div><div>•<span class="Apple-tab-span" style="white-space:pre">        </span>restart Terminal</div><div>• <span class="Apple-tab-span" style="white-space:pre">        </span>cd to the project</div><div>•<span class="Apple-tab-span" style="white-space:pre">        </span>./bin/buildout</div><div>and everything went fine.</div><div><br></div><div>If that's something not unique to my particular set up it might be helpful</div><div>to add a note to quit and restart terminal in the tutorial ?</div><div><br></div><div>2.<span class="Apple-tab-span" style="white-space:pre">        </span>I n section 5.4, I don't have a file ./etc/zope.conf &nbsp;the tutorial refers to !</div><div>There is&nbsp;<span class="Apple-style-span" style="font-size: 12px; line-height: 20px; ">etc/zope-debug.conf and&nbsp;</span><span class="Apple-style-span" style="font-size: 12px; line-height: 20px; ">etc/zope-deploy.conf but no zope.conf here!</span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 20px; ">3.<span class="Apple-tab-span" style="white-space:pre">        </span>Nor is there an&nbsp;</span><span class="Apple-style-span" style="font-size: 12px; line-height: 20px; ">etc/site.zcml (Section 5.5)</span></div><div><span class="Apple-style-span" style="font-size: 12px; line-height: 20px; "><div><i>geomacbk:ticketcollector georgewr$ ls ./etc</i></div><div><i>debug.zcml</i><span class="Apple-tab-span" style="white-space:pre"><i>                </i></span><i>deploy.zcml</i><span class="Apple-tab-span" style="white-space:pre"><i>                </i></span><i>zope-debug.conf</i><span class="Apple-tab-span" style="white-space:pre"><i>                </i></span><i>zope-deploy.conf</i></div><div>4.<span class="Apple-tab-span" style="white-space:pre">        </span>I wonder if anything has changed since bluebream-1.0b4 ??</div><div>I can locate plenty of zope.conf files in projects for earlier zope &amp; bluebream versions but not in this ticketcollector project</div><div>which uses bluebream 1.0</div><div><div style="line-height: normal; font-size: medium; "><span class="Apple-style-span" style="font-size: 12px; line-height: 20px; "><div>5.<span class="Apple-tab-span" style="white-space:pre">        </span>Most of what the tutorial (5.5) describes as the contents of&nbsp;etc/site.zcml&nbsp;is actually in the file</div><div>src/tc/main/bluebream.zcml</div></span></div></div><div>6.<span class="Apple-tab-span" style="white-space:pre">        </span>Most of what the same section describes as the contents of&nbsp;src/tc/collector/configure.zcml is</div><div>actually in the file&nbsp;src/tc/main/configure.zcml</div><div>And I guess there are other matches - so the tutorial needs to be updated.</div><div>7.<span class="Apple-tab-span" style="white-space:pre">        </span>Just near the end of section 5.8.1 we create a persistent container "c1"</div><div><span class="Apple-style-span" style="font-family: sans-serif; line-height: normal; font-size: 16px; "><p style="text-align: justify; line-height: 20px; ">"Now if you exit the debug prompt and open it again, you will see that you can access the persistent object:</p><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 15px; font: normal normal normal 12px/normal Helvetica; background-color: rgb(238, 255, 204); "><i>$ ./bin/paster </i><span style="background-color: #fbe54e"><i>shell</i></span><i> debug.ini</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 15px; font: normal normal normal 12px/normal Helvetica; background-color: rgb(238, 255, 204); "><i>...</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 15px; font: normal normal normal 12px/normal Helvetica; background-color: rgb(238, 255, 204); "><i>Welcome to the interactive debug prompt.</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 15px; font: normal normal normal 12px/normal Helvetica; background-color: rgb(238, 255, 204); "><i>The 'root' variable contains the ZODB root folder.</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 15px; font: normal normal normal 12px/normal Helvetica; background-color: rgb(238, 255, 204); "><i>The 'app' variable contains the Debugger, 'app.publish(path)' simulates a request.</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 15px; font: normal normal normal 12px/normal Helvetica; background-color: rgb(238, 255, 204); "><i>&gt;&gt;&gt; root['c1']</i></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 15px; font: normal normal normal 12px/normal Helvetica; background-color: rgb(238, 255, 204); "><i>&lt;tc.main.MyContainer object at 0x96091ac&gt;</i></div></div></span></div></span></div><div>"</div><div>That's OK except I get a "zc.lockfile.LockError: Couldn't lock 'var/filestorage/Data.fs.lock'"</div><div>&nbsp;error and have to delete the "var/filestorage/Data.fs.lock" first. Maybe that deserves a mention in the tutorial</div><div>as it occurs often.</div><div><br></div><div>8.<span class="Apple-tab-span" style="white-space:pre">        </span>In section 5.8.5 the&nbsp;<span class="Apple-style-span" style="line-height: 20px; ">src/tc/collector/views.py file must have this line added:</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; line-height: 20px; "><div><font class="Apple-style-span" face="Helvetica">from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile</font></div><div><font class="Apple-style-span" face="Helvetica"><br></font></div><div><span class="Apple-style-span" style="line-height: normal; "><span class="Apple-style-span" style="line-height: 20px;"><font class="Apple-style-span" face="Helvetica">9.</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="Helvetica">        </font></span><font class="Apple-style-span" face="Helvetica">Towards the end of 5.8.5 the tutorial suggests viewing&nbsp;</font></span></span><span class="Apple-style-span" style="line-height: normal; "><a href="http://localhost:8080/@@add_ticket_collector"><font class="Apple-style-span" face="Helvetica">http://localhost:8080/@@add_ticket_collector</font></a></span></div><div><font class="Apple-style-span" face="Helvetica">After adding an&nbsp;object with a&nbsp;name and description it comes up with a debug error screen&nbsp;</font></div><div><span class="Apple-style-span" style="line-height: normal; "><font class="Apple-style-span" face="Helvetica">NotFound: Object: &lt;tc.collector.ticketcollector.Collector object at 0x10115c500&gt;, name: u'@@index'</font></span></div><div><span class="Apple-style-span" style="line-height: normal; "><font class="Apple-style-span" face="Helvetica">It's disconcerting that the explanation for that error doesn't happen until 5.8.6</font></span></div><div><span class="Apple-style-span" style="line-height: normal; "><font class="Apple-style-span" face="Helvetica">When I start up the shell I found a half dozen objects were created as I fiddled with the "add ticket collector" form:</font></span></div><div><span class="Apple-style-span" style="font-family: Helvetica, sans-serif; line-height: normal; font-size: medium; "><b><div><span class="Apple-style-span" style="font-weight: normal;">&gt;&gt; list(root.keys())</span></div><div><span class="Apple-style-span" style="font-weight: normal;">[u'fred', u'freddy', u'george', u'georges app', u'gfc', u'mycollector']</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&gt;&gt;&gt;&nbsp;</span></div><div><br></div><div>I think this is a good tutorial as it makes a fine attempt to explain what is going on rather than simply</div><div>set out a set of mysterious steps to follow. I hope my comments are helpful.</div></b></span></div></span></div><div><br></div><div>Regards</div><div>George</div><div><br><div><div>On 11/05/2011, at 2:00 AM, <a href="mailto:bluebream-request@zope.org">bluebream-request@zope.org</a> wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>Date: Tue, 10 May 2011 21:32:20 +1000<br>From: George Wright &lt;<a href="mailto:georgewr@bigpond.net.au">georgewr@bigpond.net.au</a>&gt;<br>Subject: Re: [BlueBream] buildout error creating sampleproject<br>To: <a href="mailto:bluebream@zope.org">bluebream@zope.org</a><br>Message-ID: &lt;<a href="mailto:949F579C-24DE-408A-95C4-221FF05D6B8A@bigpond.net.au">949F579C-24DE-408A-95C4-221FF05D6B8A@bigpond.net.au</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>Thanks Christophe<br>some comments below.<br>George<br><br>On 09/05/2011, at 2:00 AM, <a href="mailto:bluebream-request@zope.org">bluebream-request@zope.org</a> wrote:<br><br><blockquote type="cite">Message: 1<br></blockquote><blockquote type="cite">Date: Sun, 8 May 2011 13:45:06 +1000<br></blockquote><blockquote type="cite">From: George Wright &lt;<a href="mailto:georgewr@bigpond.net.au">georgewr@bigpond.net.au</a>&gt;<br></blockquote><blockquote type="cite">Subject: [BlueBream] buildout error creating sampleproject<br></blockquote><blockquote type="cite">To: <a href="mailto:bluebream@zope.org">bluebream@zope.org</a><br></blockquote><blockquote type="cite">Message-ID: &lt;<a href="mailto:A06CA923-1FCA-4C93-A131-CFB925581E0A@bigpond.net.au">A06CA923-1FCA-4C93-A131-CFB925581E0A@bigpond.net.au</a>&gt;<br></blockquote><blockquote type="cite">Content-Type: text/plain; charset="windows-1252"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Following the screencast Installing BlueBream Screencasts ? BlueBream v1.0 documentation<br></blockquote><blockquote type="cite">Using a newly installed Bluebream 1.0 on OSX 10.6.7<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I get to the ./bin/buildout stage it goes into an &nbsp;loop (infinite?) where it seems to be unhappy <br></blockquote><blockquote type="cite">using both 'distribute-0.6.14' and 'setuptools version 0.6c11'<br></blockquote><blockquote type="cite">Any suggestions?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">geomacbk:sampleproject georgewr$ sudo python bootstrap.py<br></blockquote><blockquote type="cite">Password:<br></blockquote><blockquote type="cite">Creating directory '/Users/georgewr/sampleproject/bin'.<br></blockquote><blockquote type="cite">Creating directory '/Users/georgewr/sampleproject/parts'.<br></blockquote><blockquote type="cite">Creating directory '/Users/georgewr/sampleproject/develop-eggs'.<br></blockquote><blockquote type="cite">Generated script '/Users/georgewr/sampleproject/bin/buildout'.<br></blockquote><blockquote type="cite">geomacbk:sampleproject georgewr$ sudo ./bin/buildout<br></blockquote><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py:262: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Users/georgewr/.buildout/eggs/distribute-0.6.14-py2.6.egg is being added to sys.path<br></blockquote><blockquote type="cite"> import pkg_resources<br></blockquote><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py:262: UserWarning: Module site was already imported from /Users/georgewr/sampleproject/parts/buildout/site.py, but /Users/georgewr/.buildout/eggs/distribute-0.6.14-py2.6.egg is being added to sys.path<br></blockquote><blockquote type="cite"> import pkg_resources<br></blockquote><blockquote type="cite">Upgraded:<br></blockquote><blockquote type="cite"> setuptools version 0.6c11;<br></blockquote><blockquote type="cite">restarting.<br></blockquote><blockquote type="cite">Generated script '/Users/georgewr/sampleproject/bin/buildout'.<br></blockquote><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py:262: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Users/georgewr/.buildout/eggs/distribute-0.6.14-py2.6.egg is being added to sys.path<br></blockquote><blockquote type="cite"> import pkg_resources<br></blockquote><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py:262: UserWarning: Module site was already imported from /Users/georgewr/sampleproject/parts/buildout/site.pyc, but /Users/georgewr/.buildout/eggs/distribute-0.6.14-py2.6.egg is being added to sys.path<br></blockquote><blockquote type="cite"> import pkg_resources<br></blockquote><blockquote type="cite">Upgraded:<br></blockquote><blockquote type="cite"> setuptools version 0.6c11;<br></blockquote><blockquote type="cite">....<br></blockquote><blockquote type="cite">etc<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Message: 2<br></blockquote><blockquote type="cite">Date: Sun, 08 May 2011 10:16:39 +0200<br></blockquote><blockquote type="cite">From: Christophe Combelles &lt;<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>&gt;<br></blockquote><blockquote type="cite">Subject: Re: [BlueBream] buildout error creating sampleproject<br></blockquote><blockquote type="cite">To: <a href="mailto:bluebream@zope.org">bluebream@zope.org</a><br></blockquote><blockquote type="cite">Message-ID: &lt;<a href="mailto:4DC65167.5040800@free.fr">4DC65167.5040800@free.fr</a>&gt;<br></blockquote><blockquote type="cite">Content-Type: text/plain; charset=UTF-8; format=flowed<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Le 08/05/2011 05:45, George Wright a ?crit :<br></blockquote><blockquote type="cite"><blockquote type="cite">Following the screencast Installing BlueBream Screencasts ? BlueBream v1.0<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">documentation &lt;<a href="http://bluebream.zope.org/screencasts.html">http://bluebream.zope.org/screencasts.html</a>&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Using a newly installed Bluebream 1.0 on OSX 10.6.7<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">When I get to the ./bin/buildout stage it goes into an loop (infinite?) where it<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">seems to be unhappy<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">using both 'distribute-0.6.14' and 'setuptools version 0.6c11'<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Any suggestions?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">geomacbk:sampleproject georgewr$ sudo python bootstrap.py<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Why sudo ? The bootstrap purpose is to install buildout in a sandbox so that you <br></blockquote><blockquote type="cite">don't have to be administrator.<br></blockquote><br>OK Christophe. I started again and this time did the python bootstrap.py &nbsp;without sudo.<br>That did make quite a big difference! All running ok now.<br>However a couple of questions;<br>I could not follow the purpose of these steps:<br> rm -fr src/sampleproject.egg-info/,<br>bzr init<br>bzr add *<br>bzr ci<br>As well the "initial commit " insert into the bzr_log file. I've not used bzr before and as there is no audio on the screencast I didn't follow what was going on. I guess it is to do with version control and not actually coding the project - and I guess these steps could be omitted without ill effect?<br><br><br><blockquote type="cite">The loop below is the sign of a conflict between Distribute and a system-wide <br></blockquote><blockquote type="cite">setuptools, or something like that.<br></blockquote><blockquote type="cite">First try to recreate your sample app from scratch. If this occurs again, try to <br></blockquote><blockquote type="cite">upgrade your system-wide setuptools or distribute (this time with a sudo: sudo <br></blockquote><blockquote type="cite">easy_install --upgrade distribute, or sudo pip install --upgrade distribute).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Password:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Creating directory '/Users/georgewr/sampleproject/bin'.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Creating directory '/Users/georgewr/sampleproject/parts'.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Creating directory '/Users/georgewr/sampleproject/develop-eggs'.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Generated script '/Users/georgewr/sampleproject/bin/buildout'.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">geomacbk:sampleproject georgewr$ sudo ./bin/buildout<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py:262: UserWarning: Module<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">pkg_resources was already imported from<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">but /Users/georgewr/.buildout/eggs/distribute-0.6.14-py2.6.egg is being added to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sys.path<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">import pkg_resources<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py:262: UserWarning: Module<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">site was already imported from<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py, but<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/Users/georgewr/.buildout/eggs/distribute-0.6.14-py2.6.egg is being added to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sys.path<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">import pkg_resources<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Upgraded:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">setuptools version 0.6c11;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">restarting.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Generated script '/Users/georgewr/sampleproject/bin/buildout'.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py:262: UserWarning: Module<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">pkg_resources was already imported from<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">but /Users/georgewr/.buildout/eggs/distribute-0.6.14-py2.6.egg is being added to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sys.path<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">import pkg_resources<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.py:262: UserWarning: Module<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">site was already imported from<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/Users/georgewr/sampleproject/parts/buildout/site.pyc, but<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">/Users/georgewr/.buildout/eggs/distribute-0.6.14-py2.6.egg is being added to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sys.path<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">import pkg_resources<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Upgraded:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">setuptools version 0.6c11;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">....<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">****************************************<br></blockquote><br>George Wright<br><a href="mailto:georgewr@bigpond.net.au">georgewr@bigpond.net.au</a><br>http://www.labyrinth.net.au/~gwright<br><br><br><br><br><br><br><br>------------------------------<br><br>_______________________________________________<br>bluebream mailing list<br>bluebream@zope.org<br>https://mail.zope.org/mailman/listinfo/bluebream<br><br><br>End of bluebream Digest, Vol 17, Issue 2<br>****************************************<br></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>George Wright</div><div><a href="mailto:georgewr@bigpond.net.au">georgewr@bigpond.net.au</a></div><div><a href="http://www.labyrinth.net.au/~gwright">http://www.labyrinth.net.au/~gwright</a></div></div><div><br></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>