Included demo Fails with code 3

Bug #694824 reported by Brendan M. Sleight on 2010-12-27
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pythondialog (Ubuntu)
Undecided
Unassigned

Bug Description

bms@ben-ten:~$ python /usr/share/doc/python-dialog/examples/demo.py

 pythondialog demo
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

                                                                        ┌────────────────────────────┐
                                                                        │ One moment, please. Just │
                                                                        │ wasting some time here to │
                                                                        │ show you the infobox... │
                                                                        │ │
                                                                        │ │
                                                                        │ │
                                                                        │ │
                                                                        │ │
                                                                        └────────────────────────────┘

 pythondialog demo
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

                                                            ┌──────────Still testing your patience...────────────
                                                            │ Yeah, this boring crap will be over Really Soon │
                                                            │ Now. │
                                                            │ │
                                                            │ ┌──────────────────────────────────────────────┐ │
                                                            │ │ 100% │ │
                                                            │ └──────────────────────────────────────────────┘ │
                                                            └────────────────────────────────────────────────────┘

 pythondialog demo
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

                                                                        ┌────────────────────────────┐
                                                                        │ Do you like this demo? │
                                                                        │ │
                                                                        │ │
                                                                        │ │
                                                                        │ │
                                                                        │ │
                                                                        ├────────────────────────────┤
                                                                        │ < Yes > < No > │
                                                                        └────────────────────────────┘

 pythondialog demo
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

                                                                        ┌────────────────────────────┐
                                                                        │ Excellent! Press OK to see │
                                                                        │ the source code. │
                                                                        │ │
                                                                        │ │
                                                                        │ │
                                                                        │ │
                                                                        ├────────────────────────────┤
                                                                        │ < OK > │
                                                                        └────────────────────────────┘

Error:

dialog-like terminated due to an error: the dialog-like program exited with code 3 (was passed to it as the DIALOG_ERROR environment variable)
bms@ben-ten:~$
bms@ben-ten:~$ dpkg -l | grep python-dialog
ii python-dialog 2.7-1 Python module for making simple Text/Console
bms@ben-ten:~$ dpkg -l | grep dialog
ii dialog 1.1-20080819-1 Displays user-friendly dialog boxes from she
ii libgdu-gtk0 2.30.1-1 GTK+ standard dialog library for libgdu
ii python-dialog 2.7-1 Python module for making simple Text/Console
ii whiptail 0.52.10-5ubuntu1 Displays user-friendly dialog boxes from she
ii zenity 2.30.0-0ubuntu1 Display graphical dialog boxes from shell sc
bms@ben-ten:~$
bms@ben-ten:~$ lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04
bms@ben-ten:~$ apt-cache policy python-dialog
python-dialog:
  Installed: 2.7-1
  Candidate: 2.7-1
  Version table:
 *** 2.7-1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status
bms@ben-ten:~$

Hans Joachim Desserud (hjd) wrote :

Thanks for reporting this bug and making Ubuntu better.

I get the same error message when running $ python /usr/share/doc/python-dialog/examples/demo.py on Natty (with python 2.7.1-0ubuntu5). When running the demo, it doesn't matter if the user selects yes or no in the first dialog, as the same error appear after selecting OK in the second dialog.

Changed in pythondialog (Ubuntu):
status: New → Confirmed
Félim Whiteley (felimwhiteley) wrote :

I've managed to fix this bug in some of my own code. I had run a similar piece of code where I was using "scrollbox" and I was supplying a width and heigth. This worked fine run from an SSH session but wasn't working locally at the machine. If I remove it it works fine. Almost like I was forcing it outside of the edges of the terminal settings. This could be incorrect but might be worth a shot if you edit the demo script.

Florent Rougon (f-rougon) wrote :

Hello,

This problem may be caused by a terminal that is too small to run the demo. Versions 2.12 and later incorporate a check for that at the beginning of the demo among other things to help diagnose this kind of issue.

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

Other bug subscribers