New install backtrace on page view

Bug #283981 reported by Russ Brown
0
Affects Status Importance Assigned to Milestone
Bundle Buggy
New
Undecided
Unassigned

Bug Description

Just playing at this stage: the email stuff isn't set up properly set etc, but I was just wanting to get the UI working.

Following database setup and the creation of the first user, I started up bb and browsed to the site. This backtrace was shown on the page:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/cherrypy/_cphttptools.py", line 121, in _run
    self.main()
  File "/usr/lib/python2.5/site-packages/cherrypy/_cphttptools.py", line 264, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in default
  File "/usr/lib/python2.5/site-packages/turbogears/controllers.py", line 359, in expose
    *args, **kw)
  File "<string>", line 5, in run_with_transaction
  File "/usr/lib/python2.5/site-packages/turbogears/database.py", line 407, in sa_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/usr/lib/python2.5/site-packages/turbogears/controllers.py", line 372, in <lambda>
    mapping, fragment, args, kw)))
  File "/usr/lib/python2.5/site-packages/turbogears/controllers.py", line 401, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File "/usr/lib/python2.5/site-packages/turbogears/errorhandling.py", line 77, in try_call
    return func(self, *args, **kw)
  File "/home/admin/bundlebuggy/bundlebuggy/controllers.py", line 472, in default
    return getattr(controller, action_name)(**result_copy)
  File "<string>", line 3, in list
  File "/usr/lib/python2.5/site-packages/turbogears/controllers.py", line 354, in expose
    *args, **kw)
  File "<string>", line 5, in _expose
  File "/usr/lib/python2.5/site-packages/turbogears/controllers.py", line 372, in <lambda>
    mapping, fragment, args, kw)))
  File "/usr/lib/python2.5/site-packages/turbogears/controllers.py", line 414, in _execute_func
    return _process_output(output, template, format, content_type, mapping, fragment)
  File "/usr/lib/python2.5/site-packages/turbogears/controllers.py", line 87, in _process_output
    fragment=fragment)
  File "/usr/lib/python2.5/site-packages/turbogears/view/base.py", line 147, in render
    return engine.render(**kw)
  File "/usr/lib/python2.5/site-packages/turbokid/kidsupport.py", line 206, in render
    output=output, format=format)
  File "/usr/lib/python2.5/site-packages/kid/__init__.py", line 301, in serialize
    raise_template_error(module=self.__module__)
  File "/usr/lib/python2.5/site-packages/kid/__init__.py", line 299, in serialize
    return serializer.serialize(self, encoding, fragment, format)
  File "/usr/lib/python2.5/site-packages/kid/serialization.py", line 107, in serialize
    text = ''.join(self.generate(stream, encoding, fragment, format))
  File "/usr/lib/python2.5/site-packages/kid/serialization.py", line 629, in generate
    for ev, item in self.apply_filters(stream, format):
  File "/usr/lib/python2.5/site-packages/kid/serialization.py", line 165, in format_stream
    for ev, item in stream:
  File "/usr/lib/python2.5/site-packages/kid/parser.py", line 221, in _coalesce
    for ev, item in stream:
  File "/usr/lib/python2.5/site-packages/kid/serialization.py", line 477, in inject_meta_tags
    for ev, item in stream:
  File "/usr/lib/python2.5/site-packages/kid/parser.py", line 179, in _track
    for p in stream:
  File "/usr/lib/python2.5/site-packages/kid/filter.py", line 32, in apply_matches
    item = stream.expand()
  File "/usr/lib/python2.5/site-packages/kid/parser.py", line 108, in expand
    for ev, item in self._iter:
  File "/usr/lib/python2.5/site-packages/kid/parser.py", line 179, in _track
    for p in stream:
  File "/usr/lib/python2.5/site-packages/kid/parser.py", line 221, in _coalesce
    for ev, item in stream:
  File "/home/admin/bundlebuggy/bundlebuggy/templates/welcome.py", line 106, in _pull
  File "/usr/lib/python2.5/site-packages/kid/parser.py", line 179, in _track
    for p in stream:
  File "/home/admin/bundlebuggy/bundlebuggy/templates/master.py", line 267, in __navigation
AttributeError: 'NoneType' object has no attribute 'id'
Error location in template file '/home/admin/bundlebuggy/bundlebuggy/templates/welcome.kid'
on line 48:
<div py:replace="navigation('requests')" />

My kid version is 0.9.6 in case that is relevant. Failing that, doed the BB frontend require the email stuff tobe set up in order to run at all?

Thanks.

Revision history for this message
Russ Brown (pickscrape) wrote :

I've found the problem. This happens when no projects have been created yet. It seems that it just needs a check adding somewhere and a message displayed to tell the user what the problem is.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.