<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">Le 18/11/2014 10:11, Eduard Matei a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CAEOp6J8Y6gm4EKQKoeaUtyN=3jX_D7y1FVpuywjbRhL0LHqa4Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks Vineet.
        <div>Indeed missing packages was the problem, for completeness
          here are the packages i needed in order to get virtual env
          running on Ubuntu 14.04.1 LTS</div>
        <div>-  libmysqlclient-dev</div>
        <div>- pkg-config</div>
        <div>- libvirt-dev</div>
        <div><br>
        </div>
        <div>Maybe they can be included in the script that sets up the
          virtual env.</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
    No, please. This script is distro-agnostic, we don't need to carry
    all the dependencies issues.<br>
    Actually, these installation instructions are already documented...<br>
    <br>
<a class="moz-txt-link-freetext" href="http://git.openstack.org/cgit/openstack/nova/tree/doc/source/devref/development.environment.rst">http://git.openstack.org/cgit/openstack/nova/tree/doc/source/devref/development.environment.rst</a><br>
    <br>
    -Sylvain<br>
    <br>
    <blockquote
cite="mid:CAEOp6J8Y6gm4EKQKoeaUtyN=3jX_D7y1FVpuywjbRhL0LHqa4Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Thanks, </div>
        <div>Eduard</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Nov 18, 2014 at 10:27 AM,
          Vineet Menon <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:mvineetmenon@gmail.com" target="_blank">mvineetmenon@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Hi,<br>
                <br>
              </div>
              You should install mysql-dev for your distro using apt-get
              or yum.</div>
            <div class="gmail_extra"><br clear="all">
              <div>
                <div>Regards,<br>
                  <br>
                  Vineet Menon<br>
                  <br>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div>
                  <div class="h5">On 18 November 2014 09:16, Eduard
                    Matei <span dir="ltr"><<a moz-do-not-send="true"
                        href="mailto:eduard.matei@cloudfounders.com"
                        target="_blank">eduard.matei@cloudfounders.com</a>></span>
                    wrote:<br>
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div class="h5">
                      <div dir="ltr"><br clear="all">
                        <div>Hi,</div>
                        <div>I'm trying to run nova's unittests to
                          validate some changes we made for a
                          LibvirtVolumeDriver class, but i only got
                          errors:</div>
                        <div><br>
                        </div>
                        <div>with virtual env:</div>
                        <div>...</div>
                        <div>
                          <div>Downloading/unpacking MySQL-python (from
                            -r /opt/stack/nova/test-requirements.txt
                            (line 13))</div>
                          <div>  Downloading MySQL-python-1.2.5.zip
                            (108kB): 108kB downloaded</div>
                          <div>  Running setup.py
                            (path:/opt/stack/nova/.venv/build/MySQL-python/setup.py)
                            egg_info for package MySQL-python</div>
                          <div>    sh: 1: mysql_config: not found</div>
                          <div>    Traceback (most recent call last):</div>
                          <div>      File "<string>", line 17, in
                            <module></div>
                          <div>      File
                            "/opt/stack/nova/.venv/build/MySQL-python/setup.py",
                            line 17, in <module></div>
                          <div>        metadata, options = get_config()</div>
                          <div>      File "setup_posix.py", line 43, in
                            get_config</div>
                          <div>        libs = mysql_config("libs_r")</div>
                          <div>      File "setup_posix.py", line 25, in
                            mysql_config</div>
                          <div>        raise EnvironmentError("%s not
                            found" % (mysql_config.path,))</div>
                          <div>    EnvironmentError: mysql_config not
                            found</div>
                          <div>    Complete output from command python
                            setup.py egg_info:</div>
                          <div>    sh: 1: mysql_config: not found</div>
                          <div><br>
                          </div>
                          <div>Traceback (most recent call last):</div>
                          <div><br>
                          </div>
                          <div>  File "<string>", line 17, in
                            <module></div>
                          <div><br>
                          </div>
                          <div>  File
                            "/opt/stack/nova/.venv/build/MySQL-python/setup.py",
                            line 17, in <module></div>
                          <div><br>
                          </div>
                          <div>    metadata, options = get_config()</div>
                          <div><br>
                          </div>
                          <div>  File "setup_posix.py", line 43, in
                            get_config</div>
                          <div><br>
                          </div>
                          <div>    libs = mysql_config("libs_r")</div>
                          <div><br>
                          </div>
                          <div>  File "setup_posix.py", line 25, in
                            mysql_config</div>
                          <div><br>
                          </div>
                          <div>    raise EnvironmentError("%s not found"
                            % (mysql_config.path,))</div>
                          <div><br>
                          </div>
                          <div>EnvironmentError: mysql_config not found</div>
                          <div><br>
                          </div>
                          <div>----------------------------------------</div>
                          <div>Cleaning up...</div>
                          <div>Command python setup.py egg_info failed
                            with error code 1 in
                            /opt/stack/nova/.venv/build/MySQL-python</div>
                          <div>Storing debug log for failure in
                            /root/.pip/pip.log</div>
                          <div>Command "tools/with_venv.sh pip install
                            --upgrade -r
                            /opt/stack/nova/requirements.txt -r
                            /opt/stack/nova/test-requirements.txt"
                            failed.</div>
                          <div>None</div>
                        </div>
                        <div><br>
                        </div>
                        <div>without virtual env:</div>
                        <div>
                          <div>:/opt/stack/nova# ./run_tests.sh -N</div>
                          <div>Running ` python -m
                            nova.openstack.common.lockutils python
                            setup.py testr --testr-args='--subunit
                            --concurrency 0  '`</div>
                          <div>Non-zero exit code (2) from test listing.</div>
                          <div>error: testr failed (3)</div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>Ran 0 tests in 4.792s</div>
                          <div><br>
                          </div>
                          <div>OK</div>
                          <div>Running flake8 ...</div>
                          <div>**WARNING**:</div>
                          <div>Running flake8 without virtual env may
                            miss OpenStack HACKING detection</div>
                          <div>bash: flake8: command not found</div>
                        </div>
                        <div><br>
                        </div>
                        <div>
                          <div>nova-manage --version</div>
                          <div>2014.2.1</div>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>Any idea how to fix this?</div>
                        <div><br>
                        </div>
                        <div>Thanks, Eduard</div>
                        -- <br>
                        <div>
                          <div dir="ltr">
                            <pre style="white-space:pre-wrap;font-size:10px;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><b><span style="font-size:10pt;font-family:Arial,sans-serif" lang="EN-US">Eduard Biceri Matei, Senior Software Developer</span></b></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:13.5pt;font-family:Helvetica,sans-serif"><a moz-do-not-send="true" href="http://www.cloudfounders.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:11pt;font-family:Calibri,sans-serif" lang="EN-US"><font color="#0045a3">www.cloudfounders.com</font></span></a></span><span style="font-size:11pt;font-family:Calibri,sans-serif" lang="EN-US"><font color="#1f497d"> | </font><a moz-do-not-send="true" href="mailto:eduard.matei@cloudfounder!
 s.com" sty
le="color:rgb(17,85,204)" target="_blank"><font color="#0045a3">eduard.matei@cloudfounders.com</font></a></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-US"> </span></div>
<div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:13.5pt;font-family:Arial,sans-serif;color:rgb(80,0,80)" lang="EN-US"> </span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><b><span style="font-size:13.5pt;font-family:Arial,sans-serif" lang="EN-US">CloudFounders, The Private Cloud Software Company</span></b><span style="font-size:13.5pt;font-family:Arial,sans-serif" lang="EN-US"></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:13.5pt;font-family:Helvetica,sans-serif" lang="EN-US"> </span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-family:Helvetica,sans-serif;font-size:11px" lang="EN-US">Disclaimer:</span></div><div style="font-family:ari!
 al,sans-se
rif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:8.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-US">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.</span><span style="font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-US">
<span style="font-size:11px">If you are not the named addressee or an employee or agent responsible for delivering this message to the named addressee, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this email in error we request you to notify us by reply e-mail and to delete all electronic files of the message. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. 
E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, and shall have no liability for any loss or damage suffered by the user, which arise as a result of e-mail transmission.</span></span></div></pre>
                          </div>
                        </div>
                      </div>
                      <br>
                    </div>
                  </div>
                  _______________________________________________<br>
                  OpenStack-dev mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:OpenStack-dev@lists.openstack.org"
                    target="_blank">OpenStack-dev@lists.openstack.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"
                    target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            OpenStack-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"
              target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <pre style="white-space:pre-wrap;font-size:10px;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><b><span style="font-size:10pt;font-family:Arial,sans-serif" lang="EN-US">Eduard Biceri Matei, Senior Software Developer</span></b></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:13.5pt;font-family:Helvetica,sans-serif"><a moz-do-not-send="true" href="http://www.cloudfounders.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:11pt;font-family:Calibri,sans-serif" lang="EN-US"><font color="#0045a3">www.cloudfounders.com</font></span></a></span><span style="font-size:11pt;font-family:Calibri,sans-serif" lang="EN-US"><font color="#1f497d"> | </font><a moz-do-not-send="true" href="mailto:eduard.matei@cloudfounders.com" style="co!
 lor:rgb(17
,85,204)" target="_blank"><font color="#0045a3">eduard.matei@cloudfounders.com</font></a></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-US"> </span></div>
<div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:13.5pt;font-family:Arial,sans-serif;color:rgb(80,0,80)" lang="EN-US"> </span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><b><span style="font-size:13.5pt;font-family:Arial,sans-serif" lang="EN-US">CloudFounders, The Private Cloud Software Company</span></b><span style="font-size:13.5pt;font-family:Arial,sans-serif" lang="EN-US"></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:13.5pt;font-family:Helvetica,sans-serif" lang="EN-US"> </span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-family:Helvetica,sans-serif;font-size:11px" lang="EN-US">Disclaimer:</span></div><div style="font-family:ari!
 al,sans-se
rif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:8.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-US">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.</span><span style="font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-US">
<span style="font-size:11px">If you are not the named addressee or an employee or agent responsible for delivering this message to the named addressee, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this email in error we request you to notify us by reply e-mail and to delete all electronic files of the message. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. 
E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, and shall have no liability for any loss or damage suffered by the user, which arise as a result of e-mail transmission.</span></span></div></pre>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>