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

Bug #1072489 reported by Tobiasz Jarczyk on 2012-10-28
90
This bug affects 18 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
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

description: updated
description: updated
Doug McMahon (mc3man) on 2012-10-29
Changed in apport (Ubuntu):
status: New → Confirmed
Doug McMahon (mc3man) wrote :

affects apport-cli also

Paul White (paulw2u) on 2012-10-29
tags: added: raring
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
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.

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.

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

Doug McMahon (mc3man) wrote :

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

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

Duplicates of this bug

Other bug subscribers