[apport] run-onboard.py crashed with SyntaxError in run_script()

Bug #81910 reported by Vincenzo Ciancia
50
Affects Status Importance Assigned to Milestone
onboard (Ubuntu)
Fix Released
Medium
Accessibility
Declined for Feisty by Daniel Holbach

Bug Description

Binary package hint: onboard

I am running feisty, crash is right on startup.

ProblemType: Crash
Date: Sun Jan 28 00:57:58 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/share/onboard/run-onboard.py
InterpreterPath: /usr/bin/python2.5
Package: onboard 0.85
ProcCmdline: /usr/bin/python /usr/share/onboard/run-onboard.py
ProcCwd: /media/sda2/vincenzo
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=C
 SHELL=/bin/bash
PythonArgs: ['/usr/share/onboard/run-onboard.py']
SourcePackage: onboard
Uname: Linux frattaglia 2.6.20-5-generic #2 SMP Sat Jan 6 14:50:47 UTC 2007 i686 GNU/Linux

Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote : Dependencies.txt
Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote : ProcMaps.txt
Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote : ProcStatus.txt
Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote : Traceback.txt
Revision history for this message
fremm (fremm) wrote :

On feisty, I just try to run onboard.

Revision history for this message
Scott Zawalski (cowbud) wrote :

The fix is to declare the encoding in /usr/share/onboard/utils.py

The maintainer should add the following line:

# -*- coding: utf-8 -*-

-----for brevity here is the stack trace

Stack trace from onboard. It looks like a UTF issue.

Traceback (most recent call last):
  File "/usr/share/onboard/run-onboard.py", line 3, in <module>
    from sok import Sok
  File "/usr/share/onboard/sok.py", line 6, in <module>
    from Keyboard import Keyboard
  File "/usr/share/onboard/Keyboard.py", line 11, in <module>
    from utils import run_script
  File "/usr/share/onboard/utils.py", line 17
SyntaxError: Non-ASCII character '\xe2' in file /usr/share/onboard/utils.py on line 17, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Revision history for this message
Scott Zawalski (cowbud) wrote :

The fix is to declare the encoding in /usr/share/onboard/utils.py

The maintainer should add the following line:

# -*- coding: utf-8 -*-

-----for completeness here is the stack trace

Stack trace from onboard. It looks like a UTF issue.

Traceback (most recent call last):
  File "/usr/share/onboard/run-onboard.py", line 3, in <module>
    from sok import Sok
  File "/usr/share/onboard/sok.py", line 6, in <module>
    from Keyboard import Keyboard
  File "/usr/share/onboard/Keyboard.py", line 11, in <module>
    from utils import run_script
  File "/usr/share/onboard/utils.py", line 17
SyntaxError: Non-ASCII character '\xe2' in file /usr/share/onboard/utils.py on line 17, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Changed in onboard:
status: Unconfirmed → Confirmed
Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

Confirmed for me, the fix solves the problem.

Revision history for this message
Brian Murray (brian-murray) wrote :

86076 has a more complete stack trace if that is needed.

Changed in onboard:
importance: Undecided → Medium
Revision history for this message
Luke Yelavich (themuso) wrote :

Does this problem still exist in the latest onboard upload, 0.86

Revision history for this message
Andrew Frank (frank-geoinfo) wrote : Re: [Bug 81910] Re: [apport] run-onboard.py crashed with SyntaxError in run_script()

dear luke
i will test over the weekend...
(i see only that now the looked keyring is a second hurdle where input
is needed - so i now type my passord twice with each login)

i use 7.04 - i hope this is what you are interested in

andrew

Luke Yelavich wrote:
> Does this problem still exist in the latest onboard upload, 0.86
>
>

Changed in onboard:
assignee: nobody → accessibility
status: Confirmed → Needs Info
Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

It works now indeed, thank you.

Revision history for this message
Andrew Frank (frank-geoinfo) wrote :

on-board works - but it is not shown before login, only afterwards.
this is not sufficient for people with limitations (handicaps) and tablet users who have no keyboard.

there is an additional hint at accessibility in the ->system->login interface

Revision history for this message
Francesco Fumanti (frafu) wrote :

@Andrew

There are at least 2 threads in the forum about a hack to make onboard (formerly called sok) at the login screen:
http://ubuntuforums.org/showthread.php?t=267051
http://ubuntuforums.org/showthread.php?t=304045

Maybe that it can help you.

Revision history for this message
Vincenzo Ciancia (vincenzo-ml) wrote :

This bug should either be closed or edited to reflect the accessibility problem, what do you prefer? I was about to edit since it is assigned to the usability team but am not sure if it was done before Andrew's comment.

Chris Jones (tortoise)
Changed in onboard:
status: Needs Info → 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.