TypeError: add_hooks_info() takes exactly 2 arguments

Bug #385811 reported by Asif Youssuff
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Undecided
Martin Pitt
apport (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: apport

I get this bug when attempting to add info to bug #384673

apport-collect 384673
Logging into Launchpad...
Downloading bug...
Bug title: pixelize does not follow standard keyboard shortcuts and menus
Collecting apport information for source package pixelize...
Traceback (most recent call last):
  File "/usr/bin/apport-collect", line 126, in <module>
    collect(report, src)
  File "/usr/bin/apport-collect", line 77, in collect
    report.add_hooks_info()
TypeError: add_hooks_info() takes exactly 2 arguments (1 given)

--

apt-cache policy apport
apport:
  Installed: 1.3-0ubuntu1

Revision history for this message
Martin Pitt (pitti) wrote :

This requires some larger changes to apport-collect, since it doesn't have UI yet. It needs to anyway, though, for bug 371827.

Changed in apport (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Schmirrwurst (schmirrwurst) wrote :

I'm experiencing the same pb :
apport-collect 385811
Logging into Launchpad...
Downloading bug...
Bug title: TypeError: add_hooks_info() takes exactly 2 arguments
Collecting apport information for source package apport...
Traceback (most recent call last):
  File "/usr/bin/apport-collect", line 126, in <module>
    collect(report, src)
  File "/usr/bin/apport-collect", line 77, in collect
    report.add_hooks_info()
TypeError: add_hooks_info() takes exactly 2 arguments (1 given)

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

This bug was fixed in the package apport - 1.3-0ubuntu2

---------------
apport (1.3-0ubuntu2) karmic; urgency=low

  * debian/local/apport-collect: Pass None as HookUI object. This will crash
    with interactive hooks, but is a good enough immediate bandaid.
    (LP: #385811)
  * Merge fixes from trunk:
    - packaging-apt-dpkg.py: Add backwards compatibility code for python-apt <
      0.7.9 to not break backportability.
    - hookutils.py, command_output(): Force LC_MESSAGES=C, to avoid translated
      output in bug reports. (LP: #383230)
    - apport-gtk.ui: Make details window resizable, and lower default size, so
      that it will fit on small screens. (LP: #365517)

 -- Martin Pitt <email address hidden> Fri, 12 Jun 2009 12:47:59 +0200

Changed in apport (Ubuntu):
status: In Progress → Fix Released
Martin Pitt (pitti)
Changed in apport:
assignee: nobody → Martin Pitt (pitti)
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

This still affects interactive hooks (like linux') with apport-collect. Fixed in trunk now.

Changed in apport:
status: In Progress → Fix Committed
Changed in apport (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in 1.10.

Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.10-0ubuntu1

---------------
apport (1.10-0ubuntu1) lucid; urgency=low

  * New upstream release:
    - Add a mode for updating an existing problem report to ui.py
      (-u/--update). This is similar to the Ubuntu specific "apport-collect"
      tool, but implemented the right way now: In particular, this has access
      to the UI and thus can use interactive hooks (LP: #385811) and show you
      what is being sent for confirmation/cancelling (LP: #371827)

    - apport-bug: If invoked as "apport-collect" or "apport-update-bug" (i. e.
      through a symlink), run apport in update mode (-u <number>). This
      provides a convenient no-options command line program. Please note that
      setup.py does not currently install such a symlink. Update the
      apport-bug manpage accordingly.

    - launchpad.py: Use new login_with() to clean up code, and specify allowed
      access levels (WRITE_PRIVATE is the only sensible one anyway).
      (LP: #410205)

    - New hookutils functions:
      + xsession_errors (match lines from ~/.xsession-errors)
      + shared_libraries (determine which libraries a binary links with)
      + links_with_shared_library (test if a binary links with a particular
        library)

    - New CrashDatabase API: get_affected_packages(), can_update(), is_reporter()

    - Rename CrashDatabase.update() to update_traces().

    - Add CrashDatabase.update() for adding all new fields of a report. This is
      primarily useful for collecting local standard and package hook data for an
      already existing bug report which was not filed through Apport. This checks
      can_update()/is_reporter() if the user is eligible for updating that
      particular bug. (LP: #485880)

    - Ignore SIGXCPU and SIGXFSZ; thanks to Kees Cook. (LP: #498074)

    - launchpad.py: Do not mark non-Ubuntu bugs as needs-retrace, since there is
      no retracer right now. (LP: #489794)

    - packaging-apt-dpkg.py, install_retracing_packages(): Do not crash on
      malformed Dependencies.txt lines. (LP: #441709)

    - use-local: Fix for new source tree location of "apport" binary.

  * Drop debian/local/apport-collect{,.1} and install symlinks for apport-bug
    instead.
  * data/general-hooks/ubuntu.py: Do not report "corrupted filesystem tarfile"
    package errors. (LP: #320743)
  * data/general-hooks/ubuntu.py: Report "package ... is already installed and
    configured" errors against dpkg, not the package that failed. (LP: #467688)
 -- Martin Pitt <email address hidden> Sat, 19 Dec 2009 16:48:48 +0100

Changed in apport (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.