<div dir="ltr">Thanks Steve,<div><br></div><div>I have modified congressclient code using <a href="https://review.openstack.org/#/c/139534" target="_blank" style="font-size:13px">https://review.openstack.org/#/c/139534</a> and problem got resolved.</div><div><br></div><div>Thanks,</div><div>Srinivas.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 5, 2014 at 12:38 PM, Steve Martinelli <span dir="ltr"><<a href="mailto:stevemar@ca.ibm.com" target="_blank">stevemar@ca.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><tt><font>Looks like it might be mis-match between the installed
pbr and the one you</font></tt>
<br><tt><font>might have cloned?</font></tt>
<br>
<br><tt><font>From where and how are you installing python-openstackclient?
You could</font></tt>
<br><tt><font>try uninstalling it cloning it from master (a new
version was just released,</font></tt>
<br><tt><font>so you'd be close to a new version).</font></tt>
<br>
<br><tt><font>Steve</font></tt>
<br>
<br><tt><font>Srinivasa Rao Ragolu <<a href="mailto:sragolu@mvista.com" target="_blank">sragolu@mvista.com</a>> wrote
on 12/05/2014 12:44:51 AM:<br>
<br>
> From: Srinivasa Rao Ragolu <<a href="mailto:sragolu@mvista.com" target="_blank">sragolu@mvista.com</a>></font></tt>
<br><tt><font>> To: <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a></font></tt>
<br><tt><font>> Date: 12/05/2014 01:04 AM</font></tt>
<br><tt><font>> Subject: [Openstack] python-openstackclient issue
while executing <br>
> congress commands</font></tt>
<br><div><div class="h5"><tt><font>> <br>
> Hi All,</font></tt>
<br><tt><font>> <br>
> I have been trying to execute command line utility "openstack"
to <br>
> validate congress api's</font></tt>
<br><tt><font>> <br>
> I am using python-openstackclient version 0.3.1 and latest master
<br>
> (congress and congressclient) repos.</font></tt>
<br><tt><font>> <br>
> when I try "openstack" command, I face below issue.</font></tt>
<br><tt><font>> ===========================================================</font></tt>
<br><tt><font>> root@controller:/usr/lib64/python2.7/site-packages#
openstack</font></tt>
<br><tt><font>> Traceback (most recent call last):</font></tt>
<br><tt><font>>   File "/usr/bin/openstack", line
6, in <module></font></tt>
<br><tt><font>>     from openstackclient.shell import
main</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/openstackclient/<br>
> shell.py", line 29, in <module></font></tt>
<br><tt><font>>     from openstackclient.common import
clientmanager</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/openstackclient/common/<br>
> clientmanager.py", line 197, in <module></font></tt>
<br><tt><font>>     'openstack.cli.extension',</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/openstackclient/common/<br>
> clientmanager.py", line 164, in get_plugin_modules</font></tt>
<br><tt><font>>     __import__(ep.module_name)</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/congressclient/<br>
> __init__.py", line 19, in <module></font></tt>
<br><tt><font>>     'congressclient').version_string()</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/pbr/version.py",
line 72,<br>
> in version_string</font></tt>
<br><tt><font>>     for part in self.release_string().split('.'):</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/pbr/version.py",
line 64,<br>
> in release_string</font></tt>
<br><tt><font>>     self.release = self._get_version_from_pkg_resources()</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/pbr/version.py",
line 57,<br>
> in _get_version_from_pkg_resources</font></tt>
<br><tt><font>>     return packaging.get_version(self.package)</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/pbr/packaging.py",
line <br>
> 863, in get_version</font></tt>
<br><tt><font>>     version = _get_version_from_git(pre_version)</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/pbr/packaging.py",
line <br>
> 804, in _get_version_from_git</font></tt>
<br><tt><font>>     git_dir = _get_git_directory()</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/pbr/packaging.py",
line <br>
> 224, in _get_git_directory</font></tt>
<br><tt><font>>     return _run_shell_command(['git',
'rev-parse', '--git-dir'])</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/site-packages/pbr/packaging.py",
line <br>
> 213, in _run_shell_command</font></tt>
<br><tt><font>>     env=newenv)</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/subprocess.py",
line 679, in __init__</font></tt>
<br><tt><font>>     errread, errwrite)</font></tt>
<br><tt><font>>   File "/usr/lib64/python2.7/subprocess.py",
line 1249, in _execute_child</font></tt>
<br><tt><font>>     raise child_exception</font></tt>
<br><tt><font>> OSError: [Errno 2] No such file or directory</font></tt>
<br><tt><font>> =========================================================</font></tt>
<br><tt><font>> Even if I upgrade python-openstackclient to 0.4.1
, same issue.</font></tt>
<br><tt><font>> <br>
> Could you please help me in identifying this issue?</font></tt>
<br><tt><font>> <br>
> Thanks and Regards,</font></tt>
<br></div></div><tt><font>> Srinivas._______________________________________________<br>
> Mailing list: </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank"><tt><font>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</font></tt></a><tt><font><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
> Unsubscribe : </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank"><tt><font>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</font></tt></a><tt><font><br>
</font></tt></blockquote></div><br></div>