ERROR: TypeError('__init__() takes from 1 to 6 positional arguments but 7 were given',)

Bug #1072489 reported by Tobiasz Jarczyk
90
This bug affects 18 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Trying to report bug using apport gives the following error.

$ ubuntu-bug _usr_bin_nautilus.1000.crash
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 575, in <lambda>
    GLib.idle_add(lambda: self.collect_info(on_finished=self.ui_update_view))
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 975, in collect_info
    hookui, symptom_script, ignore_uninstalled))
  File "/usr/lib/python3/dist-packages/apport/REThread.py", line 22, in __init__
    threading.Thread.__init__(self, group, target, name, args, kwargs, verbose)
TypeError: __init__() takes from 1 to 6 positional arguments but 7 were given
ERROR: TypeError('__init__() takes from 1 to 6 positional arguments but 7 were given',)

I am not able to report any bug/crash with apport.

$ uname -a
Linux none-test 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:26:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ apport-bug -v
2.6.1

This happens in Raring

Tags: i386 raring
description: updated
description: updated
Doug McMahon (mc3man)
Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
Doug McMahon (mc3man) wrote :

affects apport-cli also

Paul White (paulw2u)
tags: added: raring
Revision history for this message
dino99 (9d9) wrote :

Well reporting cant be done; even trying to get the crash details window fail in an infinite resuming loop.

tags: added: i386
Revision history for this message
Fabien Tassin (fta) wrote :

in python 3.2:

threading.Thread = class Thread(_Verbose)
  __init__(self, group=None, target=None, name=None, args=(), kwargs=None, verbose=None)

while in python 3.3:

threading.Thread = class Thread(builtins.object)
  __init__(self, group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None)

locally, i just dropped the "verbose" parameter and it's fine.

Revision history for this message
dino99 (9d9) wrote :

Thanks Fabien,

it let apport doing its job !!!

Change made :

 sudo gedit /usr/lib/python3/dist-packages/apport/REThread.py

# threading.Thread.__init__(self, group, target, name, args, kwargs, verbose)

        threading.Thread.__init__(self, group, target, name, args, kwargs)

If its not a real fix, its a good workaround.

Revision history for this message
Doug McMahon (mc3man) wrote :

Should be fixed in apport 2.6.2-0ubuntu1
 * New upstream release:
........
 - REThread.py: Fix for Python 3.3.
 -- Martin Pitt <email address hidden> Tue, 06 Nov 2012 16:18:56 +0100
(basically removed the 7th arg - verbose

Revision history for this message
Doug McMahon (mc3man) wrote :

The package where fix occured was python3-apport (2.6.2-0ubuntu1)

dino99 (9d9)
Changed in apport (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.