Comment 6 for bug 1822780

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

trusty test case

python3-pymacaroons is not available in trusty other than in the proposed pocket, so installing that one:
root@trusty-sru-1822780:~# apt-cache policy python3-pymacaroons
python3-pymacaroons:
  Installed: (none)
  Candidate: 0.9.2-0ubuntu1~ubuntu14.04.2
  Version table:
     0.9.2-0ubuntu1~ubuntu14.04.2 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages

Installation pulled in:The following NEW packages will be installed:
  libsodium18 python3-libnacl python3-pymacaroons python3-six

All from main, so the MIR was processed.

Trying test program with python3-pymacaroons 0.9.2-0ubuntu1~ubuntu14.04.2 from proposed:
# python3 -c "__requires__ = 'pymacaroons';from pkg_resources import load_entry_point"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'pkg_resources'

Need to install a dependency that was missed when the test program was added to this bug:
# apt install python3-pkg-resources
...
Setting up python3-pkg-resources (3.3-1ubuntu2) ...

Now it works:
root@trusty-sru-1822780:~# python3 -c "__requires__ = 'pymacaroons';from pkg_resources import load_entry_point"
root@trusty-sru-1822780:~# echo $?
0

Trusty verification succeeded.