Reading apparmor policy json fails with ValueError: Expecting value: line 1 column 1 (char 0)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click-reviewers-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using click-review against a locally built click for the clock app causes the traceback below. I've attached the click to the report. Note the trunk version of the package reads the click properly.
$ click-review com.ubuntu.
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
results.
File "/usr/bin/
self.
File "/usr/bin/
review = modules.
File "/usr/lib/
return init_object(
File "/usr/lib/
p = apparmor_
File "/usr/lib/
local_copy_fn)
File "/usr/lib/
j = json.loads(open(fn, 'r').read())
File "/usr/lib/
return _default_
File "/usr/lib/
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/
raise ValueError(
ValueError: Expecting value: line 1 column 1 (char 0)
With trunk (rev 246):
./click-review ../../com.
Errors
------
- lint_manifest_
not a valid architecture: amd64
- lint_control_
not a valid architecture: amd64
- security_
(MANUAL REVIEW) reserved policy group 'calendar': vetted applications only
Warnings
--------
- lint_click_
found unofficial extensions: x-source, x-test
- lint_package_
not a valid architecture: amd64
../../com.
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: click-reviewers
ProcVersionSign
Uname: Linux 3.16.0-17-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.7-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Sep 29 11:39:40 2014
InstallationDate: Installed on 2013-12-19 (283 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20131218)
PackageArchitec
SourcePackage: click-reviewers
UpgradeStatus: Upgraded to utopic on 2014-05-09 (142 days ago)
I fixed this in r247. We should upload this to Ubuntu.