<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 3, 2016 at 9:41 PM Sergio Schvezov <<a href="mailto:sergio.schvezov@canonical.com">sergio.schvezov@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    El 03/10/16 a las 21:17, Marco Ceppi escribió:</div><div bgcolor="#FFFFFF" text="#000000" class="gmail_msg"><br class="gmail_msg">
    <blockquote type="cite" class="gmail_msg">
      <div dir="ltr" class="gmail_msg">
        <div class="gmail_quote gmail_msg">
          <div dir="ltr" class="gmail_msg">On Mon, Oct 3, 2016 at 6:51 PM Sergio Schvezov
            <<a href="mailto:sergio.schvezov@canonical.com" class="gmail_msg" target="_blank">sergio.schvezov@canonical.com</a>>
            wrote:<br class="gmail_msg">
          </div>
          <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="gmail_msg">
            <br class="gmail_msg">
            El 03/10/16 a las 16:47, Marco Ceppi escribió:<br class="gmail_msg">
            > Hi Sergio,<br class="gmail_msg">
            ><br class="gmail_msg">
            > Sorry, replication instructions are as follows:<br class="gmail_msg">
            ><br class="gmail_msg">
            > export JUJU_REPOSITORY=$(mktemp -dp $HOME)<br class="gmail_msg">
            > cd $JUJU_REPOSITORY<br class="gmail_msg">
            > charm pull-source ~marcoceppi/charm-svg .<br class="gmail_msg">
            ><br class="gmail_msg">
            > This will trigger the error. Anytime the code path
            needs to interact<br class="gmail_msg">
            > with launchpadlib it fails. If you pull the stable
            channel from the<br class="gmail_msg">
            > store you'll see it succeeds.<br class="gmail_msg">
            <br class="gmail_msg">
            Did this ever work?<br class="gmail_msg">
            dpkg -S /usr/lib/python2.7/dist-packages/lazr/__init__.py<br class="gmail_msg">
          </blockquote>
          <div class="gmail_msg"><br class="gmail_msg">
          </div>
          <div class="gmail_msg">It did (and does work) before I updated snapcraft.</div>
          <div class="gmail_msg"> </div>
          <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tells me
            it is not owned by any package so very unlikely that a<br class="gmail_msg">
            `stage-packages entry would of brought it in. I am
            interested!<br class="gmail_msg">
            <br class="gmail_msg">
            For what it's worth, Kyle had the same issue and we just
            went to pypi<br class="gmail_msg">
            for this, if you prefer going down this path just add this
            to the python<br class="gmail_msg">
            part in there:<br class="gmail_msg">
            <br class="gmail_msg">
            python-packages: [launchpadlib, simplejson]<br class="gmail_msg">
          </blockquote>
          <div class="gmail_msg"><br class="gmail_msg">
          </div>
          <div class="gmail_msg">Launchpadlib is already a dependency in the software
            project, I shouldn't need to declare it again in the
            snapcraft?</div>
        </div>
      </div>
    </blockquote>
    <br class="gmail_msg"></div><div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    No you don't ;-) You want to set `requirements: requirements.txt`<br class="gmail_msg">
    If you want it automatically installed use install_requires
    (<a class="m_1983676755409533719moz-txt-link-freetext gmail_msg" href="https://packaging.python.org/requirements/" target="_blank">https://packaging.python.org/requirements/</a>)</div><div bgcolor="#FFFFFF" text="#000000" class="gmail_msg"><br class="gmail_msg"></div></blockquote><div>In my projects setup.py I declare the install_requires, why aren't these being included during snap generation?</div><div><br></div><div><a href="https://github.com/juju/charm-tools/blob/master/setup.py">https://github.com/juju/charm-tools/blob/master/setup.py</a></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    <br class="gmail_msg">
    <blockquote type="cite" class="gmail_msg">
      <div dir="ltr" class="gmail_msg">
        <div class="gmail_quote gmail_msg">
          <div class="gmail_msg"> </div>
          <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <br class="gmail_msg">
            and remove the corresponding entry from `stage-packages`.
            That makes<br class="gmail_msg">
            this happen:<br class="gmail_msg">
            <br class="gmail_msg">
            $ charm pull-source ~marcoceppi/charm-svg .<br class="gmail_msg">
            Downloaded cs:~marcoceppi/charm-svg to<br class="gmail_msg">
            /home/sergiusens/tmp.fTqwALsTzT/charm-svg<br class="gmail_msg">
            <br class="gmail_msg">
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br class="gmail_msg">
  </div></blockquote></div></div>