[Bug 1884221] Re: `ubuntu-bug` fails with "UnboundLocalError: local variable 'project' referenced before assignment"

Brian Murray 1884221 at bugs.launchpad.net
Tue Jun 23 22:42:31 UTC 2020


** Changed in: apport (Ubuntu)
       Status: Confirmed => In Progress

** Changed in: apport (Ubuntu)
     Assignee: (unassigned) => Brian Murray (brian-murray)

** Changed in: apport (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1884221

Title:
  `ubuntu-bug` fails with "UnboundLocalError: local variable 'project'
  referenced before assignment"

Status in apport package in Ubuntu:
  In Progress

Bug description:
  I just tried to `ubuntu-bug ubiquity` on a groovy(20.10) qa-test
  install using Xubuntu, however `ubuntu-bug` abended with python
  errors.

  I tried to file this with `ubuntu-bug apport` & again errors (but
  scanning it looks identical)

  I'm filing this report on my primary box and will apport-collect after
  filing, plus copy/paste the details from the actual box.

  "UnboundLocalError: local variable 'project' referenced before
  assignment"

  xubuntu at xubuntu:~$ ubuntu-bug ubiquity
  Traceback (most recent call last):
    File "/usr/share/apport/apport-gtk", line 597, in <module>
      app.run_argv()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 708, in run_argv
      return self.run_report_bug()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 549, in run_report_bug
      self.file_report()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 1396, in file_report
      url = self.crashdb.get_comment_url(self.report, ticket)
    File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", line 247, in get_comment_url
      if not project:
  UnboundLocalError: local variable 'project' referenced before assignment

  xubuntu at xubuntu:~$ ubuntu-bug apport
  Traceback (most recent call last):
    File "/usr/share/apport/apport-gtk", line 597, in <module>
      app.run_argv()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 708, in run_argv
      return self.run_report_bug()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 549, in run_report_bug
      self.file_report()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 1396, in file_report
      url = self.crashdb.get_comment_url(self.report, ticket)
    File "/usr/lib/python3/dist-packages/apport/crashdb_impl/launchpad.py", line 247, in get_comment_url
      if not project:
  UnboundLocalError: local variable 'project' referenced before assignment

  
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu40
  Architecture: amd64
  CasperMD5CheckResult: pass
  CasperVersion: 1.451
  CurrentDesktop: XFCE
  DistroRelease: Ubuntu 20.10
  LiveMediaBuild: Xubuntu 20.10 "Groovy Gorilla" - Alpha amd64 (20200619)
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  Package: apport 2.20.11-0ubuntu40
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
  Tags:  groovy
  Uname: Linux 5.4.0-26-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
  _MarkForUpload: True

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



More information about the foundations-bugs mailing list