Comment 10 for bug 1817665

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Pre -proposed this just fails right away (as no packages are in trusty at all)

python3 ./create.py
Traceback (most recent call last):
  File "./create.py", line 1, in <module>
    from pymacaroons import Macaroon, Verifier
ImportError: No module named 'pymacaroons'

Installing the new packages in trusty
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libsodium18 python3-libnacl
The following NEW packages will be installed:
  libsodium18 python3-libnacl python3-pymacaroons
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 165 kB of archives.
After this operation, 628 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-proposed/universe libsodium18 amd64 1.0.8-5~ubuntu14.04.1 [145 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-proposed/universe python3-libnacl all 1.4.5-0ubuntu1~ubuntu14.04.1 [9650 B]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-proposed/universe python3-pymacaroons all 0.9.2-0ubuntu1~ubuntu14.04.1 [10.1 kB]
Fetched 165 kB in 0s (1023 kB/s)
Selecting previously unselected package libsodium18:amd64.
(Reading database ... 25069 files and directories currently installed.)
Preparing to unpack .../libsodium18_1.0.8-5~ubuntu14.04.1_amd64.deb ...
Unpacking libsodium18:amd64 (1.0.8-5~ubuntu14.04.1) ...
Selecting previously unselected package python3-libnacl.
Preparing to unpack .../python3-libnacl_1.4.5-0ubuntu1~ubuntu14.04.1_all.deb ...
Unpacking python3-libnacl (1.4.5-0ubuntu1~ubuntu14.04.1) ...
Selecting previously unselected package python3-pymacaroons.
Preparing to unpack .../python3-pymacaroons_0.9.2-0ubuntu1~ubuntu14.04.1_all.deb ...
Unpacking python3-pymacaroons (0.9.2-0ubuntu1~ubuntu14.04.1) ...
Setting up libsodium18:amd64 (1.0.8-5~ubuntu14.04.1) ...
Setting up python3-libnacl (1.4.5-0ubuntu1~ubuntu14.04.1) ...
Setting up python3-pymacaroons (0.9.2-0ubuntu1~ubuntu14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...

Using the test I attached to the bug:
python3 ./create.py
location cool-picture-service.example.com
identifier key-for-bob
cid picture_id = bobs_cool_cat.jpg
signature 83d8fa280b09938d3cffe045634f544ffaf712ff2c51ac34828ae8a42b277f8f
MDAyZWxvY2F0aW9uIGNvb2wtcGljdHVyZS1zZXJ2aWNlLmV4YW1wbGUuY29tCjAwMWJpZGVudGlmaWVyIGtleS1mb3ItYm9iCjAwMjdjaWQgcGljdHVyZV9pZCA9IGJvYnNfY29vbF9jYXQuanBnCjAwMmZzaWduYXR1cmUgg9j6KAsJk408_-BFY09UT_r3Ev8sUaw0goropCsnf48K
Sucessfully verified

This uses the full pymacaroons stack and works just fine.
Therefore setting verification done.