AttributeError: 'IdentityView' object has no attribute 'error'

Bug #1878493 reported by Paul Larson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
Undecided
Unassigned

Bug Description

Testing core20 on a rpi3a+ with the armhf image from http://cdimage.ubuntu.com/ubuntu-core/20/beta/20200512.3/

Similar conditions to https://bugs.launchpad.net/subiquity/+bug/1878471 but I encountered this problem during the initial configuration, not during reinstall mode

After entering my email address and pressing enter on [done], here is the traceback I got:
Traceback (most recent call last):
  File "/usr/bin/console-conf", line 11, in <module>
    load_entry_point('subiquity==0.0.5', 'console_scripts', 'console-conf-tui')()
  File "/usr/share/subiquity/console_conf/cmd/tui.py", line 86, in main
    interface.run()
  File "/usr/share/subiquity/subiquitycore/core.py", line 686, in run
    self.urwid_loop.run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 286, in run
    self._run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 384, in _run
    self.event_loop.run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 1484, in run
    reraise(*exc_info)
  File "/usr/lib/python3/dist-packages/urwid/compat.py", line 58, in reraise
    raise value
  File "/usr/lib/python3.8/asyncio/events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 403, in <lambda>
    wrapper = lambda: self.parse_input(
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 502, in parse_input
    callback(processed, processed_codes)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 411, in _update
    self.process_input(keys)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 511, in process_input
    k = self._topmost_widget.keypress(self.screen_size, k)
  File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 648, in keypress
    return self._current_widget.keypress(size, key)
  File "/usr/share/subiquity/subiquitycore/ui/container.py", line 178, in keypress
    upkey = self.focus.keypress(tsize, downkey)
  File "/usr/share/subiquity/subiquitycore/view.py", line 87, in keypress
    key = super().keypress(size, key)
  File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 622, in keypress
    return self._original_widget.keypress(maxvals, key)
  File "/usr/share/subiquity/subiquitycore/ui/container.py", line 178, in keypress
    upkey = self.focus.keypress(tsize, downkey)
  File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 622, in keypress
    return self._original_widget.keypress(maxvals, key)
  File "/usr/share/subiquity/subiquitycore/ui/container.py", line 178, in keypress
    upkey = self.focus.keypress(tsize, downkey)
  File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 540, in keypress
    self._emit('click')
  File "/usr/lib/python3/dist-packages/urwid/widget.py", line 460, in _emit
    signals.emit_signal(self, name, self, *args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 265, in emit
    result |= self._call_callback(callback, user_arg, user_args, args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 295, in _call_callback
    return bool(callback(*args_to_pass))
  File "/usr/share/subiquity/subiquitycore/ui/form.py", line 472, in _click_done
    emit_signal(self, 'submit', self)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 265, in emit
    result |= self._call_callback(callback, user_arg, user_args, args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 295, in _call_callback
    return bool(callback(*args_to_pass))
  File "/usr/share/subiquity/console_conf/ui/views/identity.py", line 57, in done
    self.controller.identity_done(result.email.value)
  File "/usr/share/subiquity/console_conf/controllers/identity.py", line 159, in identity_done
    self.ui.body.error.set_text(
AttributeError: 'IdentityView' object has no attribute 'error'

If I press enter after the error, console-conf restarts, but I can never get through it completely. It gives me this error every time.

Tags: uc20
tags: added: core20
Paul Larson (pwlars)
tags: added: uc20
removed: core20
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Changed in subiquity:
status: New → In Progress
Changed in subiquity (Ubuntu):
importance: Undecided → High
importance: High → Critical
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The most recent builds for amd64/armhf/arm64 in here should have a fix for this

https://launchpad.net/~xnox/+snap/xnox-core20

Also available in edge/xnox-consoleconf-fixes

Trying to build images with these in place, but it's very slow for me for some reason.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

horum, not available from the store! well use downloads to build them.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Images available at https://people.canonical.com/~xnox/uc20/

Please test them and let me know if this issue is now resolved for you, or can be reproduced still.

Revision history for this message
Paul Larson (pwlars) wrote :

Unfortunately, I'm not having a lot of success getting this image working. I've put the arm64 image on a mmc and removed the cma line in config.txt so that it *should* boot on rpi3a+, but it's never getting past the "Installing the system, please wait for reboot" phase.

Revision history for this message
Paul Larson (pwlars) wrote :

I tried this on the edge/dangerous build yesterday, the current beta image from today (20200521) and also the images from https://people.canonical.com/~xnox/uc20/ but even with removing the cma line, I can only get to:
Installing the system, please wait for reboot
[ 936.831387] systemd[1]: Starting Cleanup of Temporary Directories...
[ 936.886737] systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
[ 936.888841] systemd[1]: Finished Cleanup of Temporary Directories.

It never completes the install phase, so I never get far enough to try console-conf

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

All fixes for this issue landed in edge on Friday. Please confirm this is ok to promote to beta.

no longer affects: subiquity (Ubuntu)
Changed in subiquity:
status: In Progress → Fix Committed
Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

Couldn't reproduce this on arm64 rpi4 (1 GB) using core20 663 from edge.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

this was fixed in May 2020

Changed in subiquity:
status: Fix Committed → Fix Released
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.