<div dir="ltr"><div><div><div>Hi Zhengguang,<br><br></div>My opinion is same to Edward, some people have reported this days ago:<br><br><a href="https://www.mail-archive.com/openstack-dev@lists.openstack.org/msg16236.html">https://www.mail-archive.com/openstack-dev@lists.openstack.org/msg16236.html</a><br>
<br><a href="http://www.mail-archive.com/openstack-dev@lists.openstack.org/msg16623.html">http://www.mail-archive.com/openstack-dev@lists.openstack.org/msg16623.html</a><br><br></div>Use tox 1.6.1 will solve this problem.<br>
<br></div>Damon<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-17 18:48 GMT+08:00 Edward Hope-Morley <span dir="ltr"><<a href="mailto:edward.hope-morley@canonical.com" target="_blank">edward.hope-morley@canonical.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Hi Zhengguang,<br>
      <br>
      I think you have hit the incompatibility bug with tox > 1.6.1
      i.e. the latest version of Tox breaks with openstack. A bug is
      filed here
      <a href="https://bitbucket.org/hpk42/tox/issue/150/posargs-configerror" target="_blank">https://bitbucket.org/hpk42/tox/issue/150/posargs-configerror</a>. You
      can check what version you have with 'pip search tox'. My guess is
      you have 1.7.0 installed which you can downgrade with 'sudo pip
      install tox==1.6.1'.<br>
      <br>
      Hope that helps,<br>
      <br>
      Ed.<div><div class="h5"><br>
      <br>
      On 16/02/14 07:15, Zhengguang Ou wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi list
        <div><br>
        </div>
        <div>When I installed glance client development environment at
          the first time, after installing tox and virtualenv, then
          ./run_tests.sh, I got some error message as </div>
        <div>
          follow:</div>
        <div>
          <div>Traceback (most recent call last):</div>
          <div>  File "/usr/local/bin/tox", line 9, in <module></div>
          <div>    load_entry_point('tox==1.7.0', 'console_scripts',
            'tox')()</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_cmdline.py",
            line 25, in main</div>
          <div>    config = parseconfig(args, 'tox')</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 47, in parseconfig</div>
          <div>    parseini(config, inipath)</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 281, in __init__</div>
          <div>    config)</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 346, in _makeenvconfig</div>
          <div>    vc.commands = reader.getargvlist(section, "commands")</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 518, in getargvlist</div>
          <div>   
            commandlist.append(self._processcommand(current_command))</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 550, in _processcommand</div>
          <div>    new_word = self._replace(word)</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 666, in _replace</div>
          <div>    return RE_ITEM_REF.sub(self._replace_match, x)</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 662, in _replace_match</div>
          <div>    return handler(match)</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 633, in _replace_substitution</div>
          <div>    val = self._substitute_from_other_section(sub_key)</div>
          <div>  File
            "/usr/local/lib/python2.7/dist-packages/tox/_config.py",
            line 627, in _substitute_from_other_section</div>
          <div>    "substitution key %r not found" % key)</div>
          <div>tox.ConfigError: ConfigError: substitution key 'posargs'
            not found</div>
          <div><br>
          </div>
          <div>It seems like that there are some errors in tox config
            file. I can't find any document how to install development
            environment of glance client.</div>
          <div>anyone can help me? </div>
          <div><br>
          </div>
          <div>Thanks. </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>