Re: [Repoze-dev] Error message when running bfg shell in repoze.bfg 1.1a4

2009-09-24 Thread Chris McDonough
george hu wrote:
> ../bin/paster --plugin=repoze.bfg bfgshell sqlroute.ini main
> 
> Traceback (most recent call last):
>   File "../bin/paster", line 8, in 
> load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
>   File 
> "/home/systemadmin/bfg11/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 
> "/home/systemadmin/bfg11/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 
> "/home/systemadmin/bfg11/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py",
> line 218, in run
> result = self.command()
>   File 
> "/home/systemadmin/bfg11/lib/python2.5/site-packages/repoze.bfg-1.1a4-py2.5.egg/repoze/bfg/paster.py",
> line 79, in command
> root, closer = get_root(app)
>   File 
> "/home/systemadmin/bfg11/lib/python2.5/site-packages/repoze.bfg-1.1a4-py2.5.egg/repoze/bfg/scripting.py",
> line 11, in get_root
> registry = app.registry
> AttributeError: TM instance has no attribute 'registry'
> ___
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev
> 

It's probably not "main", it's whatever your "app" section is named in your 
.ini file.

- C
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] Error message when running bfg shell in repoze.bfg 1.1a4

2009-09-24 Thread george hu
../bin/paster --plugin=repoze.bfg bfgshell sqlroute.ini main

Traceback (most recent call last):
  File "../bin/paster", line 8, in 
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
  File 
"/home/systemadmin/bfg11/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 
"/home/systemadmin/bfg11/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 
"/home/systemadmin/bfg11/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py",
line 218, in run
result = self.command()
  File 
"/home/systemadmin/bfg11/lib/python2.5/site-packages/repoze.bfg-1.1a4-py2.5.egg/repoze/bfg/paster.py",
line 79, in command
root, closer = get_root(app)
  File 
"/home/systemadmin/bfg11/lib/python2.5/site-packages/repoze.bfg-1.1a4-py2.5.egg/repoze/bfg/scripting.py",
line 11, in get_root
registry = app.registry
AttributeError: TM instance has no attribute 'registry'
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev