Gives unfriendly error message when SDK not installed

Bug #1236671 reported by Robert Ancell
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

Click gives an unfriendly error message when the appropriate SDK is not installed:

$ click install com.ubuntu.developer.robert-ancell.euchre_0.4_all.click
Traceback (most recent call last):
  File "/usr/bin/click", line 83, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 79, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 51, in run
    package_path, user=options.user, all_users=options.all_users)
  File "/usr/lib/python3/dist-packages/click/install.py", line 274, in install
    package_name, package_version = self.audit(path, check_arch=True)
  File "/usr/lib/python3/dist-packages/click/install.py", line 185, in audit
    framework)
ValueError: Framework "ubuntu-sdk-13.10" not present on system (use --force-missing-framework option to override)

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: click 0.4.10
ProcVersionSignature: Ubuntu 3.11.0-11.17-generic 3.11.3
Uname: Linux 3.11.0-11-generic x86_64
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
CheckboxSubmission: e440e09ef58a53bccc45087674ba6b8e
CheckboxSystem: d00f84de8a555815fa1c4660280da308
Date: Tue Oct 8 15:48:36 2013
ExecutablePath: /usr/bin/click
InstallationDate: Installed on 2011-04-01 (921 days ago)
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
InterpreterPath: /usr/bin/python3.3
MarkForUpload: True
ProcCmdline: /usr/bin/python3 /usr/bin/click install com.ubuntu.developer.robert-ancell.euchre_0.4_all.click
PythonArgs: ['/usr/bin/click', 'install', 'com.ubuntu.developer.robert-ancell.euchre_0.4_all.click']
SourcePackage: click
Title: click crashed with ValueError in audit(): Framework "ubuntu-sdk-13.10" not present on system (use --force-missing-framework option to override)
UpgradeStatus: Upgraded to saucy on 2011-07-05 (825 days ago)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

Related branches

Revision history for this message
Robert Ancell (robert-ancell) wrote :
information type: Private → Public
tags: removed: need-duplicate-check
Changed in click (Ubuntu):
importance: Undecided → Medium
Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: New → Fix Committed
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click - 0.4.11

---------------
click (0.4.11) saucy; urgency=low

  * Drop --force-missing-framework from PackageKit plugin now that
    /usr/share/click/frameworks/ubuntu-sdk-13.10.framework is in
    ubuntu-sdk-libs.
  * Show a neater error message when a package's framework is not installed
    (LP: #1236671).
  * Show a neater error message when building a package whose manifest file
    cannot be parsed (LP: #1236669).
  * Show a neater error message when running "click install" with
    insufficient privileges (LP: #1236673).
 -- Colin Watson <email address hidden> Fri, 11 Oct 2013 12:07:06 +0100

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