lubuntu-software-center crashed with TypeError in __init__(): __init__() takes exactly 3 arguments (1 given)

Bug #959867 reported by Paul Gorski
62
This bug affects 12 people
Affects Status Importance Assigned to Milestone
lubuntu-software-center (Ubuntu)
Fix Released
Medium
Julien Lavergne

Bug Description

affects emac 800 MHZ running lubuntu precise powerpc all patches applied
just opening Lubuntu Software Center, then crash

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: lubuntu-software-center 0.0.4-0ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-18.29-powerpc 3.2.9
Uname: Linux 3.2.0-18-powerpc ppc
ApportVersion: 1.94.1-0ubuntu2
Architecture: powerpc
Date: Mon Mar 19 20:33:25 2012
ExecutablePath: /usr/bin/lubuntu-software-center
InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Alpha powerpc (20120318)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: python /usr/bin/lubuntu-software-center
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/lubuntu-software-center']
SourcePackage: lubuntu-software-center
Title: lubuntu-software-center crashed with TypeError in __init__(): __init__() takes exactly 3 arguments (1 given)
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Paul Gorski (pauliegras) wrote :
tags: removed: need-duplicate-check
Julien Lavergne (gilir)
Changed in lubuntu-software-center (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Julien Lavergne (gilir)
visibility: private → public
Revision history for this message
amjjawad  (amjjawad) wrote :

Opening config file
Opening config file
Traceback (most recent call last):
  File "/usr/bin/lubuntu-software-center", line 35, in <module>
    mainfunc()
  File "/usr/lib/python2.7/dist-packages/LSC/main.py", line 679, in lscmain
    app = LscControl()
  File "/usr/lib/python2.7/dist-packages/LSC/main.py", line 49, in __init__
    self.ui = UI.Gui(self.on_selected_category, threadingops.get_categories())
  File "/usr/lib/python2.7/dist-packages/LSC/UI.py", line 71, in __init__
    self.pages = pages.Pages(categories_func)
  File "/usr/lib/python2.7/dist-packages/LSC/widgets/pages.py", line 44, in __init__
    self.appsinfo = appsinfo.InfoBox()
  File "/usr/lib/python2.7/dist-packages/LSC/widgets/appsinfo.py", line 39, in __init__
    self.screendesc = ScreenDesc()
  File "/usr/lib/python2.7/dist-packages/LSC/widgets/appsinfo.py", line 97, in __init__
    self.details = Details()
  File "/usr/lib/python2.7/dist-packages/LSC/widgets/appsinfo.py", line 148, in __init__
    self.arrow = Gtk.Arrow()
TypeError: __init__() takes exactly 3 arguments (1 given)

Above is the terminal output when I try to start LSC.

This is Lubuntu 32-bit installed on ASUS F3F Core Due @1.86GHz with 512MB RAM - Installed from a LiveUSB - Daily Build 20-03-2012 and I just updated and upgraded it too.

Thanks!

Revision history for this message
amjjawad  (amjjawad) wrote :

Just to be clear enough, I can NOT run LSC whatsoever. It does not even show up!

Revision history for this message
Michael Rawson (michael.rawson) wrote :

Hi, I have fixed this AFAIK, it just needs to build on the PPA. If you wouldn't mind testing by getting the bzr branch and running locally?

Revision history for this message
Phill Whiteside (phillw) wrote : Re: [Bug 959867] Re: lubuntu-software-center crashed with TypeError in __init__(): __init__() takes exactly 3 arguments (1 given)

Can you please use the
http://iso.qa.ubuntu.com/qatracker/milestones/210/builds Everything has
been pulled in for the 1st test of Beta 2.

On 23 March 2012 20:18, amjjawad <email address hidden> wrote:

> Just to be clear enough, I can NOT run LSC whatsoever. It does not even
> show up!
>
> --
> You received this bug notification because you are a member of Lubuntu
> Packages Team, which is subscribed to lubuntu-software-center in Ubuntu.
> https://bugs.launchpad.net/bugs/959867
>
> Title:
> lubuntu-software-center crashed with TypeError in __init__():
> __init__() takes exactly 3 arguments (1 given)
>
> Status in “lubuntu-software-center” package in Ubuntu:
> In Progress
>
> Bug description:
> affects emac 800 MHZ running lubuntu precise powerpc all patches applied
> just opening Lubuntu Software Center, then crash
>
> ProblemType: Crash
> DistroRelease: Ubuntu 12.04
> Package: lubuntu-software-center 0.0.4-0ubuntu3
> ProcVersionSignature: Ubuntu 3.2.0-18.29-powerpc 3.2.9
> Uname: Linux 3.2.0-18-powerpc ppc
> ApportVersion: 1.94.1-0ubuntu2
> Architecture: powerpc
> Date: Mon Mar 19 20:33:25 2012
> ExecutablePath: /usr/bin/lubuntu-software-center
> InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Alpha powerpc
> (20120318)
> InterpreterPath: /usr/bin/python2.7
> PackageArchitecture: all
> ProcCmdline: python /usr/bin/lubuntu-software-center
> ProcEnviron:
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> PythonArgs: ['/usr/bin/lubuntu-software-center']
> SourcePackage: lubuntu-software-center
> Title: lubuntu-software-center crashed with TypeError in __init__():
> __init__() takes exactly 3 arguments (1 given)
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/lubuntu-software-center/+bug/959867/+subscriptions
>

--
https://wiki.ubuntu.com/phillw

Revision history for this message
Phill Whiteside (phillw) wrote :

did you miss the feature freeze? If it is on a PPA (check with Julien to
use the lubuntu proposed) I'm going to switch over this weekend and will
test.

Regards,
Phill.

On 23 March 2012 20:23, michaelrawson <email address hidden> wrote:

> Hi, I have fixed this AFAIK, it just needs to build on the PPA. If you
> wouldn't mind testing by getting the bzr branch and running locally?
>
> --
> You received this bug notification because you are a member of Lubuntu
> Packages Team, which is subscribed to lubuntu-software-center in Ubuntu.
> https://bugs.launchpad.net/bugs/959867
>
> Title:
> lubuntu-software-center crashed with TypeError in __init__():
> __init__() takes exactly 3 arguments (1 given)
>
> Status in “lubuntu-software-center” package in Ubuntu:
> In Progress
>
> Bug description:
> affects emac 800 MHZ running lubuntu precise powerpc all patches applied
> just opening Lubuntu Software Center, then crash
>
> ProblemType: Crash
> DistroRelease: Ubuntu 12.04
> Package: lubuntu-software-center 0.0.4-0ubuntu3
> ProcVersionSignature: Ubuntu 3.2.0-18.29-powerpc 3.2.9
> Uname: Linux 3.2.0-18-powerpc ppc
> ApportVersion: 1.94.1-0ubuntu2
> Architecture: powerpc
> Date: Mon Mar 19 20:33:25 2012
> ExecutablePath: /usr/bin/lubuntu-software-center
> InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Alpha powerpc
> (20120318)
> InterpreterPath: /usr/bin/python2.7
> PackageArchitecture: all
> ProcCmdline: python /usr/bin/lubuntu-software-center
> ProcEnviron:
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> PythonArgs: ['/usr/bin/lubuntu-software-center']
> SourcePackage: lubuntu-software-center
> Title: lubuntu-software-center crashed with TypeError in __init__():
> __init__() takes exactly 3 arguments (1 given)
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/lubuntu-software-center/+bug/959867/+subscriptions
>

--
https://wiki.ubuntu.com/phillw

Revision history for this message
Michael Rawson (michael.rawson) wrote :

I have no idea, this is my first release with which I have been involved.

Revision history for this message
amjjawad  (amjjawad) wrote :

I have NO idea what you guys are talking about? O_o

Revision history for this message
Michael Rawson (michael.rawson) wrote :

Hi AJ, essentially, there's been a slight problem, but I've fixed it and it should work now if you have the lubuntu-desktop PPA. If you don't have the PPA, I'm assuming that is what Phil is dealing with.

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

This change is a bug fix, not a new feature of LSC, so (as long as the package itself is already in Ubuntu) feature freeze is irrelevant here.

PPAs are personal (informal, not authoritative) package repositories, so they are also not relevant here, except for testing.

The fixed version of this software needs to get packaged and uploaded to the official Ubuntu repositories, ASAP. I expect Julien will take care of that. if you want anyone else to do so, provide specific links to both application source and packaging source for this fixed version, and ideally include a debdiff attached to this bug report.

Revision history for this message
Paul Gorski (pauliegras) wrote :

Still a problem with clean install of Lubuntu 20120324 precise-desktop-powerpc.iso.

Revision history for this message
Hung Tran (hungtran) wrote :

When I tried Lubuntu 12.04 Beta 1 LiveCD, lubuntu-software-center ran well. But after I installed and upgraded the system, I got this issue.

Revision history for this message
Michael Rawson (michael.rawson) wrote :

I'm not in charge of the packaging, so I can't help with a debdiff, but if it helps Julien, who is undoubtedly busy, I've attached a patch for the problem.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lsc.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Stephen Smally (stephen-smally) wrote :

Big problem here, "thanks" to a inconsistency with gtk 2 and 3, we can't use the same initializer for Gtk.Arrow in Lubuntu oneiric and precise. i think i have to cancel the support for oneiric. bug already fixed anyway (i think so, i already fixed that in trunk)

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

You can (I think!) test for the version of GTK you have, and initialize Gtk.Arrow appropriately in each case. You don't want to give up on portability just to handle minor API changes like this one.

A quick hack patch is attached that attempts to do this; it is (minimally) tested under Precise, but not yet tested at all under Oneiric. Point me at the LSC packaging repository, and I can probably attempt to package this and create the debdiff.

Revision history for this message
Julien Lavergne (gilir) wrote : Re: [Bug 959867] Re: lubuntu-software-center crashed with TypeError in __init__(): __init__() takes exactly 3 arguments (1 given)

Just to note that it is already fixed in trunk and in my current testing package. I'm waiting for the end of the freeze and other bug fixes to land.

And another note for everyone on this bug report, if I'm assigned to the bug, it means I'm working on it, no need to lose time in comment and / or patches on this specific issue. There is enough bugs on the bug tracker to play with.

Julien Lavergne

Le 26 mars 2012 à 07:02, Jonathan Marsden <email address hidden> a écrit :

> You can (I think!) test for the version of GTK you have, and initialize
> Gtk.Arrow appropriately in each case. You don't want to give up on
> portability just to handle minor API changes like this one.
>
> A quick hack patch is attached that attempts to do this; it is
> (minimally) tested under Precise, but not yet tested at all under
> Oneiric. Point me at the LSC packaging repository, and I can probably
> attempt to package this and create the debdiff.
>
>
> ** Patch added: "Improved patch trying to keep LSC codebase Oneric-compatible"
> https://bugs.launchpad.net/ubuntu/+source/lubuntu-software-center/+bug/959867/+attachment/2938538/+files/lsc-arrow-initializer.patch
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/959867
>
> Title:
> lubuntu-software-center crashed with TypeError in __init__():
> __init__() takes exactly 3 arguments (1 given)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/lubuntu-software-center/+bug/959867/+subscriptions

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Thanks Julien. I already have a working patch and packages for precise and oneiric and a debdiff... bad timing :)

Revision history for this message
olbasahu (olbasahu) wrote :

на 11.10 центра приложений lubuntu вообще не было, на 12.04 появился, но не запускается, выдает ошибку... больше ничего сообщить полезного не могу

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

This bug was fixed in the package lubuntu-software-center - 0.0.5~bzr135-0ubuntu1

---------------
lubuntu-software-center (0.0.5~bzr135-0ubuntu1) precise; urgency=low

  * New upstream snapshot, including only bug fixes and translations updates:
   - Fix crashed with TypeError in __init__() (LP: #959867)
   - Fix crashed with KeyError in __main__ (LP: #951930)
   - Fix crashed with TypeError in refresh_app_basket() (LP: #952070)
   - Fix crashed with NoOptionError in get() (LP: #961418)
   - Fix 'gtkwidgets' is not defined (LP: #946445)
   - Fix encoding problems (LP: #942016)
  * debian/patches:
   - 90_add_ppc_support.patch: Drop, merged upstream.
   - 91_choosed_category_fix.patch: Drop, merged upstream.
   - 92_local_tmp_variable.patch: Drop, merged upstream.
 -- Julien Lavergne <email address hidden> Fri, 30 Mar 2012 00:33:49 +0200

Changed in lubuntu-software-center (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Ioannis Vranos (cppdeveloper) wrote :

It happens to me in Lubuntu 12.04 Beta 2 32-bit, with all updates installed, in VirtualBox.

Revision history for this message
Kastriot Rexhaj (kastriot818) wrote :

Crashes on start

Revision history for this message
Carolinus (carolinus-3) wrote :

lubuntu 12.04 beta 2 32 bit (live, installed on usb stick)

crasches on start

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.