<div dir="ltr">Thanks John,<div><br></div><div>It worked earlier while executing because iniparse was installed, tho this wasn't present in virtual environment. Installing iniparse via pip did work. Since I didn't install iniparse specifically, I was under impression it was there by default. Probably now I have to take care of this in test-requirement.txt as you mentioned. </div>
<div><br></div><div>I wonder if there is an alternative to iniparse by default.</div><div><br></div><div>Regards</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 20, 2014 at 10:47 PM, John Griffith <span dir="ltr"><<a href="mailto:john.griffith@solidfire.com" target="_blank">john.griffith@solidfire.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Jan 20, 2014 at 10:07 AM, iKhan <<a href="mailto:ik.ibadkhan@gmail.com">ik.ibadkhan@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have imported iniparse to my cinder code, it works fine when I perform<br>
> execution. But when I run the unit test, it fails while importing iniparse.<br>
> It says "No module named iniparse". Do I have to take care of something<br>
> here?<br>
><br>
> --<br>
> Thanks,<br>
> Ibad Khan<br>
> <a href="tel:9686594607" value="+919686594607">9686594607</a><br>
><br>
</div></div>> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a 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>
<br>
It sounds like it's not installed on your system. You'd need to do a<br>
"pip install iniparse", but if you're adding this to your unit tests<br>
you'll need to have a look at the common test-requires file. Also<br>
keep in mind if your driver is going to rely on it you'll need it in<br>
requirements. We can work through the details via IRC if you like.<br>
<br>
John<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a 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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><span></span>Thanks,</div><div>Ibad Khan</div><div>9686594607</div></div>
</div></div>