F9 configuration menu does not work

Bug #494465 reported by Bernhard
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
byobu (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: byobu

I can get the config menu by pressing F9 but hitting ENTER on any of the entries just throws me out of the config menu again. So I can never really configure.

ProblemType: Bug
Architecture: i386
CheckboxSubmission: f078d6c47c1beb05b0f12538be314916
CheckboxSystem: 7dbe3241a08ed65fdce219fc8cf077b9
Date: Wed Dec 9 13:16:37 2009
DistroRelease: Ubuntu 9.10
Package: byobu 2.38-0ubuntu3
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-12.41-generic
ScreenRC:

SourcePackage: byobu
Uname: Linux 2.6.31-12-generic i686

Related branches

Revision history for this message
Bernhard (b.a.koenig) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the report. I need a little more information ...

Would you please run "byobu-config" outside of byobu and screen?

Hopefully there's a python backtrace that you can copy and paste here.

Thanks!

Changed in byobu (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Bernhard (b.a.koenig) wrote :

Yes, running byobu-config outside of byobu works. It's just that the config menu after pressing F9 does not work. Whenever I hit ENTER it throws me out.

I tried to get a gdb backtrace but all I got was:

(gdb) run /usr/bin/byobu
Starting program: /usr/bin/python /usr/bin/byobu
[Thread debugging using libthread_db enabled]
  File "/usr/bin/byobu", line 24
    if [ "$1" = "-v" ]; then
              ^
SyntaxError: invalid syntax

Program exited with code 01.

summary: - configuration menu does not work
+ F9 configuration menu does not work
Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 494465] Re: configuration menu does not work

What's your default shell?

Changed in byobu (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Bernhard (b.a.koenig) wrote :

Sorry, my default shell is zsh. Forgot to mention that.

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 494465] Re: F9 configuration menu does not work

Okay, thanks.

I just committed a fix that should solve that "$1" = "-v" issue.

I'm not sure if that will fix your problem, though.

Can you change one line in /usr/bin/byobu and tell me if that solves it for you?

--- /usr/bin/byobu 2009-12-14 03:16:43 +0000
+++ /usr/bin/byobu 2009-12-14 16:57:01 +0000
@@ -21,7 +21,7 @@
 VERSION=2.41

 # Add a version argument for debugging purposes
-if [ "$1" = "-v" ]; then
+if [ "$#" = "1" ] && [ "$1" = "-v" ]; then
        echo "$PKG version $VERSION"
        screen -v
        exit 0

Revision history for this message
Bernhard (b.a.koenig) wrote :

Now i get this:

(gdb) run /usr/bin/byobu
Starting program: /usr/bin/python /usr/bin/byobu
[Thread debugging using libthread_db enabled]
  File "/usr/bin/byobu", line 24
    if [ "$#" = "1" ] && [ "$1" = "-v" ]; then
              ^
SyntaxError: invalid syntax

Program exited with code 01.
-------

But I wonder if this is really related to the F9 bug. Byobu runs fine otherwise, so it might not be related to that particular line of code.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

That's really strange. I'll need to install zsh and play with it, as
I'm totally unfamiliar with zsh. I don't think I'm doing anything
there that's non POSIX-shell... Hrm. Can you delete that whole
little code block that prints the version info, and see if its any
happier?

Revision history for this message
Bernhard (b.a.koenig) wrote :

Hmm, I think I might not have all debugging symbols installed and that's why it keeps giving me these messages. Sorry, I'm not a python expert.

As for the F9 bug, I think it has nothing to do with those backtraces. Tomorrow I will try to play around using bash and see what happens.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 2.41-0ubuntu1

---------------
byobu (2.41-0ubuntu1) lucid; urgency=low

  [ Dustin Kirkland ]
  * byobu:
    - check number of args for "1", and "-v", LP: #494465
    - make more zsh friendly, don't use -c

  [ Jon Bernard ]
  * bin/disk: fix missing %, LP: #497136
 -- Dustin Kirkland <email address hidden> Sun, 13 Dec 2009 19:16:43 -0800

Changed in byobu (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
FMaz (fmaz008) wrote :

Hi,

I also have the very same problem.
I'm able to run byobu-config from a regular terminal without problem.

Also, for the Shell, as far as I know I use the default that come with Ubuntu:
fmaz@FMaz-Zino:~$ echo $SHELL
/bin/bash

Revision history for this message
Keith Hughitt (keith-hughitt) wrote :

Also running into this issue with byobu 5.35 compiled from source on zsh. Looks like a missing module that wasn't in the prereqs:

Traceback (most recent call last):
  File "/home/user/bin/byobu-config", line 36, in <module>
    error("Could not import the python snack module")
NameError: name 'error' is not defined

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.