On Mon, Feb 18, 2013 at 8:58 AM, Salvatore Orlando <span dir="ltr"><<a href="mailto:sorlando@nicira.com" target="_blank">sorlando@nicira.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
After updating my Quantum code with the one which uses oslo as a<br>
dependency, making the source tree incredibly slimmer, I saw Quantum<br>
was still failing in importing oslo, even if it was correctly in the<br>
pip-requires (and I did re-install the package).<br>
<br>
Oslo also showed up correctly in<br>
/usr/local/lib/python2.7/dist-packages/oslo_config-2013.1b3-py2.7.egg<br>
I wondered why the import was failing and I found no __init__.py in<br>
the oslo folder. This was easily fixed, but I am still not able to<br>
understand what I did wrong (I just did sudo easy_install<br>
<tarball_url>), since everything looks fine in the tarball.<br></blockquote><div><br></div><div>Oslo is a namespace package, so it shouldn't be imported directly and doesn't need an __init__.py.</div><div><br>
</div><div>What import was failing and what was the traceback?</div><div><br></div><div>Doug</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards, and thanks in advance,<br>
Salvatore<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>