UnboundLocalError: local variable 'my_cgroup' referenced before assignment

Bug #1300130 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

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

phablet@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)

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

The error you report in the bug title is from apport, not click. The click crash itself is basically the same kind of problem as bug 1297519.

affects: click (Ubuntu) → apport (Ubuntu)
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
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.