Comment 2 for bug 1500460

Revision history for this message
John Agosta (jagosta) wrote :

I believe I may be running into this same bug when building a part for a snapcraft snap.

parts:
   launchpadapi:
       plugin: python2
       stage-packages:
         - python-launchpadlib
         - python-httplib2
         - python-lazr.restfulclient
       filesets:
         apifs:
             - usr/lib/python2.7/dist-packages/launchpadlib
             - usr/lib/python2.7/dist-packages/httplib2
             - usr/lib/python2.7/dist-packages/lazr
             - etc/
             - lib/
             - usr/
       stage:
         - $apifs
       snap:
         - $apifs

The error I get is:

       Traceback (most recent call last):
         File "/snap/lptools-john/x2/usr/bin/testreport.py", line 9, in <module>
           from launchpadlib.launchpad import Launchpad
         File "/snap/lptools-john/x2/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 33, in <module>
           from lazr.restfulclient.resource import (
       ImportError: No module named lazr.restfulclient.resource