[Openstack] run_tests.sh fails in python-glanceclient
Zhengguang Ou
zhengguangou at gmail.com
Mon Feb 17 12:21:10 UTC 2014
Thanks Edward and Damon, it works, indeed, downgrading tox can solve this
problem.
2014-02-17 19:55 GMT+08:00 Damon Wang <damon.devops at gmail.com>:
> Hi Zhengguang,
>
> My opinion is same to Edward, some people have reported this days ago:
>
>
> https://www.mail-archive.com/openstack-dev@lists.openstack.org/msg16236.html
>
> http://www.mail-archive.com/openstack-dev@lists.openstack.org/msg16623.html
>
> Use tox 1.6.1 will solve this problem.
>
> Damon
>
>
> 2014-02-17 18:48 GMT+08:00 Edward Hope-Morley <
> edward.hope-morley at canonical.com>:
>
> Hi Zhengguang,
>>
>> 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
>> https://bitbucket.org/hpk42/tox/issue/150/posargs-configerror. 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'.
>>
>> Hope that helps,
>>
>> Ed.
>>
>>
>> On 16/02/14 07:15, Zhengguang Ou wrote:
>>
>> Hi list
>>
>> 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
>> follow:
>> Traceback (most recent call last):
>> File "/usr/local/bin/tox", line 9, in <module>
>> load_entry_point('tox==1.7.0', 'console_scripts', 'tox')()
>> File "/usr/local/lib/python2.7/dist-packages/tox/_cmdline.py", line 25,
>> in main
>> config = parseconfig(args, 'tox')
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 47,
>> in parseconfig
>> parseini(config, inipath)
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 281,
>> in __init__
>> config)
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 346,
>> in _makeenvconfig
>> vc.commands = reader.getargvlist(section, "commands")
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 518,
>> in getargvlist
>> commandlist.append(self._processcommand(current_command))
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 550,
>> in _processcommand
>> new_word = self._replace(word)
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 666,
>> in _replace
>> return RE_ITEM_REF.sub(self._replace_match, x)
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 662,
>> in _replace_match
>> return handler(match)
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 633,
>> in _replace_substitution
>> val = self._substitute_from_other_section(sub_key)
>> File "/usr/local/lib/python2.7/dist-packages/tox/_config.py", line 627,
>> in _substitute_from_other_section
>> "substitution key %r not found" % key)
>> tox.ConfigError: ConfigError: substitution key 'posargs' not found
>>
>> 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.
>> anyone can help me?
>>
>> Thanks.
>>
>>
>> _______________________________________________
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to : openstack at lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to : openstack at lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140217/8c2d4fa3/attachment.html>
More information about the Openstack
mailing list