software-center crashed with TypeError in create_automatic_user_and_run_session(): 'int' object is not subscriptable

Bug #730359 reported by Andrew Starr-Bochicchio
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: software-center

I was attempting to test the new web-live option. I tried and failed to launch pdfmod. Software center didn't crash, but apport caught this traceback.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: software-center 3.1.22
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic i686
Architecture: i386
Date: Sun Mar 6 19:09:49 2011
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101231)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center --with-weblive
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
PythonArgs: ['/usr/bin/software-center', '--with-weblive']
SourcePackage: software-center
Title: software-center crashed with TypeError in create_automatic_user_and_run_session(): 'int' object is not subscriptable
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :
visibility: private → public
tags: added: weblive
Revision history for this message
Stéphane Graber (stgraber) wrote :

Thanks for the bug report.

This traceback shows that the server refused the creation of the user.
Next version of the code will at least return meaningful errors :)

Can you give me your username and your hostname ?

That's what's being used to generate a username and password on the weblive and server and is probably containing characters that are rejected by the server.

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote : Re: [Bug 730359] Re: software-center crashed with TypeError in create_automatic_user_and_run_session(): 'int' object is not subscriptable

On Sun, Mar 6, 2011 at 7:40 PM, Stéphane Graber <email address hidden> wrote:
> Can you give me your username and your hostname ?

andrew@andrew-testing

Revision history for this message
Stéphane Graber (stgraber) wrote :

Ok, the "-" is the problem :(

I updated the code to use a random value based on the system boot_id which should be fine on all systems.
Can you try the following:

 - Install "bzr" (sudo apt-get install bzr)
 - bzr get lp:~weblive-dev/software-center/software-center-use-module
 - cd software-center-use-module
 - ./software-center --with-weblive

This will install bzr, get my development branch of the software-center and start software-center using the new code I just commited.

Thanks

Revision history for this message
Stéphane Graber (stgraber) wrote :

I updated my blog post to mention the restriction and suggest using the development branch for these who are affected, until the fix is merged in software-center's trunk

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Thanks for the quick work! I can can confirm this issue is fixed.
Though I seem to be having another seemingly unrelated problem. The
weblive session starts up, but the connection is closed within
seconds. Full log at: http://paste.ubuntu.com/576751/ Should I open
another bug?

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Hmm... I think that the second problem was the program I was testing (Calibre) crashing. I can't reproduce that with other programs.

Changed in software-center (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Stéphane Graber (stgraber) wrote :

I started lrfviewer from a gnome-terminal on edubuntu-natty01 and it spits some X errors, so it's probably lrfviewer crashing instead of an actual NX/WebLive issue.

I'm going to mark this bug fix commited until we have the branch merged into software-center.

For Calibre, you may want to file a separate but against calibre itself and ask whoever will work on a fix to just test it with WebLive.

Thanks !

Changed in software-center (Ubuntu):
status: Triaged → Fix Committed
tags: removed: need-duplicate-check
Revision history for this message
Kiwinote (kiwinote) wrote :

The branch has been merged and released.

Changed in software-center (Ubuntu):
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.