Please see the sentence that starts out "You should always..." in http://docs.repoze.org/bfg/current/narr/project.html#the-interactive-shell
You shouldn't use the name "main" here as the second argument to bfgshell. Instead, you probably want "zodb" or whatever the "app" section in your .ini file is named. On 7/23/09 5:36 PM, George Wright wrote: > Hi > I wonder if anyone has ideas about this note I put up a couple of > weeks ago? > Regards > George > > Gidday > Following the page http://docs.repoze.org/bfg/current/narr/project.html > which I have called "tutorial" and run it behind a virtualenv called > "repozeenv" > I'm having trouble starting a repoze shell. > > geomacbk:~ georgewr$ cd /Users/georgewr/repozeenv > geomacbk:repozeenv georgewr$ source ./bin/activate > (repozeenv)geomacbk:repozeenv georgewr$ cd tutorial > (repozeenv)geomacbk:tutorial georgewr$ ../bin/paster -- > plugin=repoze.bfg bfgshell tutorial.ini main > Traceback (most recent call last): > File "../bin/paster", line 8, in<module> > load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster') > () > File "/Users/georgewr/repozeenv/lib/python2.5/site-packages/ > PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 84, in run > invoke(command, command_name, options, args[1:]) > File "/Users/georgewr/repozeenv/lib/python2.5/site-packages/ > PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 123, in > invoke > exit_code = runner.run(args) > File "/Users/georgewr/repozeenv/lib/python2.5/site-packages/ > PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 218, in run > result = self.command() > File "/Users/georgewr/repozeenv/lib/python2.5/site-packages/ > repoze.bfg-1.0a3-py2.5.egg/repoze/bfg/paster.py", line 82, in command > root, closer = get_root(app) > File "/Users/georgewr/repozeenv/lib/python2.5/site-packages/ > repoze.bfg-1.0a3-py2.5.egg/repoze/bfg/scripting.py", line 11, in > get_root > registry = app.registry > AttributeError: EnvironmentDeleterMiddleware instance has no attribute > 'registry' > (repozeenv)geomacbk:tutorial georgewr$ > > OR if I do it without the "--plugin=repoze.bfg" : > > (repozeenv)geomacbk:tutorial georgewr$ ../bin/paster bfgshell > tutorial.ini main > Command 'bfgshell' not known (you may need to run setup.py egg_info) > Known commands: > create Create the file layout for a Python distribution > exe Run #! executable files > help Display help > make-config Install a package and create a fresh config file/ > directory > points Show information about entry points > post Run a request for the described application > request Run a request for the described application > serve Serve the described application > setup-app Setup an application, given a config file > > AND > following the suggested "(you may need to run setup.py egg_info)" > makes no difference. > > Regards > > George Wright > georg...@bigpond.net.au > > > > > > _______________________________________________ > Repoze-dev mailing list > Repoze-dev@lists.repoze.org > http://lists.repoze.org/listinfo/repoze-dev > _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev