[Bug 1300130] [NEW] UnboundLocalError: local variable 'my_cgroup' referenced before assignment

Alan Pope ㋛ alan at ubuntu.com
Mon Mar 31 10:11:54 UTC 2014


Public bug reported:

Click appears to have broken on my phone running #269 on mako.

phablet at blue-phablet:~$ click list
Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/list.py", line 55, in run
    json_output = list_packages(options)
  File "/usr/lib/python3/dist-packages/click/commands/list.py", line 38, in list_packages
    return json_array_to_python(registry.get_manifests())
gi._glib.GError: Failed to parse manifest in /opt/click.ubuntu.com/com.ubuntu.developer.qtros.twimgo/0.1/.click/info/com.ubuntu.developer.qtros.twimgo.manifest: /opt/click.ubuntu.com/com.ubuntu.developer.qtros.twimgo/0.1/.click/info/com.ubuntu.developer.qtros.twimgo.manifest:1:10: Parse error: unexpected identifier `click', expected value
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 103, in apport_excepthook
    pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])
  File "/usr/lib/python3/dist-packages/apport/report.py", line 546, in add_proc_info
    ret = self.get_logind_session(pid)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1593, in get_logind_session
    if len(my_cgroup) < 2:
UnboundLocalError: local variable 'my_cgroup' referenced before assignment

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/list.py", line 55, in run
    json_output = list_packages(options)
  File "/usr/lib/python3/dist-packages/click/commands/list.py", line 38, in list_packages
    return json_array_to_python(registry.get_manifests())
gi._glib.GError: Failed to parse manifest in /opt/click.ubuntu.com/com.ubuntu.developer.qtros.twimgo/0.1/.click/info/com.ubuntu.developer.qtros.twimgo.manifest: /opt/click.ubuntu.com/com.ubuntu.developer.qtros.twimgo/0.1/.click/info/com.ubuntu.developer.qtros.twimgo.manifest:1:10: Parse error: unexpected identifier `click', expected value

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: click 0.4.20
Uname: Linux 3.4.0-5-mako armv7l
ApportVersion: 2.13.3-0ubuntu1
Architecture: armhf
Date: Mon Mar 31 11:10:16 2014
InstallationDate: Installed on 2014-03-31 (0 days ago)
InstallationMedia: Ubuntu Trusty Tahr (development branch) - armhf (20140331)
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 SHELL=/bin/bash
SourcePackage: click
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: click (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug armhf trusty

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

Title:
  UnboundLocalError: local variable 'my_cgroup' referenced before
  assignment

Status in “click” package in Ubuntu:
  New

Bug description:
  Click appears to have broken on my phone running #269 on mako.

  phablet at blue-phablet:~$ click list
  Traceback (most recent call last):
    File "/usr/bin/click", line 86, in <module>
      sys.exit(main())
    File "/usr/bin/click", line 82, in main
      return mod.run(args)
    File "/usr/lib/python3/dist-packages/click/commands/list.py", line 55, in run
      json_output = list_packages(options)
    File "/usr/lib/python3/dist-packages/click/commands/list.py", line 38, in list_packages
      return json_array_to_python(registry.get_manifests())
  gi._glib.GError: Failed to parse manifest in /opt/click.ubuntu.com/com.ubuntu.developer.qtros.twimgo/0.1/.click/info/com.ubuntu.developer.qtros.twimgo.manifest: /opt/click.ubuntu.com/com.ubuntu.developer.qtros.twimgo/0.1/.click/info/com.ubuntu.developer.qtros.twimgo.manifest:1:10: Parse error: unexpected identifier `click', expected value
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 103, in apport_excepthook
      pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])
    File "/usr/lib/python3/dist-packages/apport/report.py", line 546, in add_proc_info
      ret = self.get_logind_session(pid)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 1593, in get_logind_session
      if len(my_cgroup) < 2:
  UnboundLocalError: local variable 'my_cgroup' referenced before assignment

  Original exception was:
  Traceback (most recent call last):
    File "/usr/bin/click", line 86, in <module>
      sys.exit(main())
    File "/usr/bin/click", line 82, in main
      return mod.run(args)
    File "/usr/lib/python3/dist-packages/click/commands/list.py", line 55, in run
      json_output = list_packages(options)
    File "/usr/lib/python3/dist-packages/click/commands/list.py", line 38, in list_packages
      return json_array_to_python(registry.get_manifests())
  gi._glib.GError: Failed to parse manifest in /opt/click.ubuntu.com/com.ubuntu.developer.qtros.twimgo/0.1/.click/info/com.ubuntu.developer.qtros.twimgo.manifest: /opt/click.ubuntu.com/com.ubuntu.developer.qtros.twimgo/0.1/.click/info/com.ubuntu.developer.qtros.twimgo.manifest:1:10: Parse error: unexpected identifier `click', expected value

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: click 0.4.20
  Uname: Linux 3.4.0-5-mako armv7l
  ApportVersion: 2.13.3-0ubuntu1
  Architecture: armhf
  Date: Mon Mar 31 11:10:16 2014
  InstallationDate: Installed on 2014-03-31 (0 days ago)
  InstallationMedia: Ubuntu Trusty Tahr (development branch) - armhf (20140331)
  ProcEnviron:
   TERM=linux
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   SHELL=/bin/bash
  SourcePackage: click
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list