I think that the problem is convert the filter to a list. So I am
casting to list the filter. This patch should fix the problem.

** Patch added: "source_eclipse.patch"
   
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/1052181/+attachment/3321154/+files/source_eclipse.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to eclipse in Ubuntu.
https://bugs.launchpad.net/bugs/1052181

Title:
  source_eclipse.py apport hook fails with TypeError

Status in “eclipse” package in Ubuntu:
  New

Bug description:
  Auto-reporting this bug in terminal shows:

  $ ubuntu-bug eclipse
  ERROR: hook /usr/share/apport/package-hooks/source_eclipse.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 188, in 
_run_hook
      symb['add_info'](report, ui)
  TypeError: add_info() takes exactly 1 positional argument (2 given)

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 193, in 
_run_hook
      symb['add_info'](report)
    File "/usr/share/apport/package-hooks/source_eclipse.py", line 23, in 
add_info
      if len(lines) > 0:
  TypeError: object of type 'filter' has no len()

  As Martin Pit appointed it[1] is probably a Python3 porting bug

  [1]
  https://plus.google.com/u/0/107564545827215425270/posts/DZeHAj7XmK3

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: eclipse (not installed)
  ProcVersionSignature: Ubuntu 3.5.0-1.1-generic 3.5.0-rc3
  Uname: Linux 3.5.0-1-generic i686
  ApportVersion: 2.5.2-0ubuntu1
  Architecture: i386
  Date: Mon Sep 17 22:50:23 2012
  InstallationMedia:
   
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=es_ES.UTF-8
   SHELL=/bin/bash
  SourcePackage: eclipse
  UpgradeStatus: Upgraded to quantal on 2012-06-05 (104 days ago)
  modified.conffile..etc.eclipse.ini: [modified]
  mtime.conffile..etc.eclipse.ini: 2012-06-27T00:26:25.238165

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/1052181/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to