looks like you have an incomplete upgrade. admin was upgraded but the libraries from gluon/* no
On Nov 20, 2:38 am, Kenneth Lundström <kenneth.t.lundst...@gmail.com> wrote: > I tried to create a new application with the wizard and when I pressed > generate I got this error. When looking in the applictions folder all > subfolders that should be under applications/appliction_name are in the > applications folder. I created the folder and moved all subfolders into > it, now that application works. When I tried again I couldn t get the > error, so I don t know why this happened. > > Kenneth > > Version > web2py Version 1.89.4 (2010-11-19 02:50:05) > Python Python 2.6.5: /usr/bin/python > Traceback > > Traceback (most recent call last): > File "/data/domains/web2py/gluon/restricted.py", line 188, in restricted > exec ccode in environment > File > "/data/domains/web2py/applications/admin/views/wizard/generated.html", > line 61, in <module> > File "/data/domains/web2py/gluon/html.py", line 228, in _URL > return URL(*args, **kwargs) > File "/data/domains/web2py/gluon/html.py", line 188, in URL > raise SyntaxError, 'not enough information to build the url' > SyntaxError: not enough information to build the url > > Error snapshot help Detailed traceback description > > <type 'exceptions.SyntaxError'>(not enough information to build the url) > > inspect attributes > Exception instance attributes > __getslice__ <method-wrapper '__getslice__' of exceptions.SyntaxError > object> > text None > __str__ <method-wrapper '__str__' of exceptions.SyntaxError object> > __getattribute__ <method-wrapper '__getattribute__' of > exceptions.SyntaxError object> > __dict__ {} > __sizeof__ <built-in method __sizeof__ of exceptions.SyntaxError object> > __init__ <method-wrapper '__init__' of exceptions.SyntaxError object> > __setattr__ <method-wrapper '__setattr__' of exceptions.SyntaxError object> > __reduce_ex__ <built-in method __reduce_ex__ of exceptions.SyntaxError > object> > __new__ <built-in method __new__ of type object> > __format__ <built-in method __format__ of exceptions.SyntaxError object> > __class__ <type 'exceptions.SyntaxError'> > filename None > lineno None > msg 'not enough information to build the url' > __doc__ 'Invalid syntax.' > __getitem__ <method-wrapper '__getitem__' of exceptions.SyntaxError object> > __setstate__ <built-in method __setstate__ of exceptions.SyntaxError object> > __reduce__ <built-in method __reduce__ of exceptions.SyntaxError object> > print_file_and_line None > args ('not enough information to build the url',) > __subclasshook__ <built-in method __subclasshook__ of type object> > offset None > __unicode__ <built-in method __unicode__ of exceptions.SyntaxError object> > __delattr__ <method-wrapper '__delattr__' of exceptions.SyntaxError object> > __repr__ <method-wrapper '__repr__' of exceptions.SyntaxError object> > __hash__ <method-wrapper '__hash__' of exceptions.SyntaxError object> > Frames > > * > > File /data/domains/web2py/gluon/restricted.py in restricted at line 188 > code arguments variables > Function argument list > > (code='response.write(\'<!doctype html>\\n<html xmlns="ht... </div>\\n > </body>\\n</html>\\n\', escape=False)', environment={'A': <class > 'gluon.html.A'>, 'ALLOW_TOGGLE': 'true', 'B': <class 'gluon.html.B'>, > 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, 'BODY': <class > 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, 'CENTER': <class > 'gluon.html.CENTER'>, 'CHECK_VERSION': True, 'CLEANUP': <class > 'gluon.validators.CLEANUP'>, 'CODE': <class 'gluon.html.CODE'>, ...}, > layer='/data/domains/web2py/applications/admin/views/wizard/generated.html') > Code listing > > if type(code) == types.CodeType: > ccode = code > else: > ccode = compile2(code,layer) > > exec ccode in environment > > except HTTP: > raise > except Exception: > # XXX Show exception in Wing IDE if running in debugger > > Variables > environment {'A': <class 'gluon.html.A'>, 'ALLOW_TOGGLE': 'true', 'B': > <class 'gluon.html.B'>, 'BEAUTIFY': <class 'gluon.html.BEAUTIFY'>, > 'BODY': <class 'gluon.html.BODY'>, 'BR': <class 'gluon.html.BR'>, > 'CENTER': <class 'gluon.html.CENTER'>, 'CHECK_VERSION': True, 'CLEANUP': > <class 'gluon.validators.CLEANUP'>, 'CODE': <class 'gluon.html.CODE'>, ...} > ccode <code object <module> at 0x2b9adfe78300, file > "/...tions/admin/views/wizard/generated.html", line 1> > * > > File /data/domains/web2py/applications/admin/views/wizard/generated.html > in <module> at line 61 code arguments variables > Function argument list > > () > Code listing > > 52. > 53. > 54. > 55. > 56. > 57. > 58. > 59. > 60. > 61. > > 62. > 63. > 64. > 65. > 66. > 67. > 68. > 69. > 70. > 71. > > response.write('</li>\n ', escape=False) > pass > response.write('\n </ul>\n ', escape=False) > pass > response.write('\n </div>\n <div id="main">\n <div id="main_inner">\n > <div class="flash">', escape=False) > response.write(response.flash or '') > response.write('</div>\n ', escape=False) > response.write('\n\n', escape=False) > response.write('\n\n<a class="button" href="', escape=False) > response.write(URL(app,'default','index')) > > response.write('">Open new app in new window</a>\n<a class="button" > href="', escape=False) > response.write(URL('step1')) > response.write('">Back to wizard</a>\n<a class="button" href="', > escape=False) > response.write(URL('default','design',args=app)) > response.write('">Admin design page</a>\n', escape=False) > if have_mercurial: > response.write('\n<a class="button" href="', escape=False) > response.write(URL('mercurial','commit',args=app)) > response.write('">Admin versioning page</a>\n', escape=False) > pass > > Variables > * > > File /data/domains/web2py/gluon/html.py in _URL at line 228 code > arguments variables > Function argument list > > (*args=('', 'default', 'index'), **kwargs={}) > Code listing > > 223. > 224. > 225. > 226. > 227. > 228. > > 229. > 230. > 231. > 232. > > kwargs['f'] = args[0] > args = [] > if len(args) == 2 and not 'f' in kwargs and not 'c' in kwargs: > kwargs['c'], kwargs['f'] = args[0], args[1] > args = [] > return URL(*args, **kwargs) > > _URL.__doc__ = URL.__doc__ > return _URL > > Variables > global URL <function URL> > args ('', 'default', 'index') > kwargs {} > * > > File /data/domains/web2py/gluon/html.py in URL at line 188 code > arguments variables > Function argument list > > (a='', c='default', f='index', r=None, args=[], vars={}, anchor='', > extension=None, env=None) > Code listing > > function, extension = f.split('.',1) > else: > function = f > > if not (application and controller and function): > raise SyntaxError, 'not enough information to build the url' > > other = '' > if args != [] and not isinstance(args, (list, tuple)): > args = [args] > > Variables > builtinSyntaxError <type 'exceptions.SyntaxError'>