<div dir="auto"><div><div dir="auto">Gary,</div><div dir="auto"><br></div><div dir="auto">I think this is caused by the recent pip change and pip no longer cannot import pip from code. The right solution seems to bump the minimum version of ryu.</div><div dir="auto"><br></div><div dir="auto">Thought?</div><div dir="auto"><br></div><div dir="auto"><a href="http://lists.openstack.org/pipermail/openstack-dev/2018-March/128939.html">http://lists.openstack.org/pipermail/openstack-dev/2018-March/128939.html</a><br></div><br><div class="gmail_extra">Akihiro</div><div class="gmail_extra" dir="auto"><br><div class="gmail_quote" dir="auto">2018/04/15 午後6:06 "Gary Kotton" <<a href="mailto:gkotton@vmware.com">gkotton@vmware.com</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-8859444111452739741WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">It seems like ther RYU import is breaking the project:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<pre><a name="m_-8859444111452739741__2018-04-15_08_41_34_654681" rel="noreferrer"></a><a href="http://logs.openstack.org/43/561443/3/check/openstack-tox-lower-constraints/087c168/job-output.txt.gz#_2018-04-15_08_41_34_654681" target="_blank" rel="noreferrer"><span>2018-04-15 08:41:34.654681</span><span></span></a><span></span><span class="m_-8859444111452739741none"> | ubuntu-xenial | b'--- import errors ---\nFailed to import test module: neutron_dynamic_routing.tests.unit.services.bgp.driver.ryu.test_driver\nTraceback (most recent call last):\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/unittest2/loader.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/unittest2/loader.py</a>", line 456, in _find_test_path\n module = self._get_module_from_name(name)\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/unittest2/loader.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/unittest2/loader.py</a>", line 395, in _get_module_from_name\n __import__(name)\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/neutron_dynamic_routing/tests/unit/services/bgp/driver/ryu/test_driver.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/neutron_dynamic_routing/tests/unit/services/bgp/driver/ryu/test_driver.py</a>", line 21, in <module>\n from ryu.services.protocols.bgp import bgpspeaker\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/services/protocols/bgp/bgpspeaker.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/services/protocols/bgp/bgpspeaker.py</a>", line 21, in <module>\n from ryu.lib.packet.bgp import (\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/__init__.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/__init__.py</a>", line 6, in <module>\n from . import (ethernet, arp, icmp, icmpv6, ipv4, ipv6, lldp, mpls, packet,\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/ethernet.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/ethernet.py</a>", line 18, in <module>\n from . import vlan\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/vlan.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/vlan.py</a>", line 21, in <module>\n from . import ipv4\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/ipv4.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/ipv4.py</a>", line 23, in <module>\n from . import tcp\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/tcp.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/tcp.py</a>", line 24, in <module>\n from . import bgp\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/bgp.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/lib/packet/bgp.py</a>", line 52, in <module>\n from ryu.utils import binary_str\n File "/home/zuul/src/<a href="http://git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/utils.py" target="_blank" rel="noreferrer">git.openstack.org/openstack/neutron-dynamic-routing/.tox/lower-constraints/lib/python3.5/site-packages/ryu/utils.py</a>", line 23, in <module>\n from pip import req as pip_req\nImportError: cannot import name \'req\'\n'</span><u></u><u></u></pre>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any suggestions?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Gary<u></u><u></u></span></p>
</div>
</div>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div></div>