Discussion:
[Ryu-devel] Ryu installation error:The 'ovs' distribution was not found and is required by ryu
北邮-李呈
2016-03-28 09:53:21 UTC
Permalink
Hi all,
I just pull the latest ryu git repository down to install ryu. However, a new error occured, the detail info shows below. How to handle it? Thank you.

Cheng Li


Traceback (most recent call last):
File "/usr/local/bin/ryu-manager", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 2900, in <module>

File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 2886, in _call_aside

File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 2913, in _initialize_master_working_set

File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 642, in _build_master

File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 943, in require

File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 830, in resolve

pkg_resources.DistributionNotFound: The 'ovs' distribution was not found and is required by ryu

------------------
Distance Àî³Ê
_____________________________________________________
School of Information and Communication Engineering
Beijing University of Posts and Telecommunications
Beijing 100876, PR China

±±Ÿ©ÓʵçŽóѧ¡€ÐÅÏ¢ÓëÍšÐŹ€³ÌѧԺ¡€ÍšÐŹ€³Ì
_____________________________________________________
Mobile Phone:
(+86) 151-1698-3550 Beijing
E-mail:
***@qq.com
***@gmail.com
Homepage:
http://www.muzixing.com
Iwase Yusuke
2016-03-29 00:08:26 UTC
Permalink
Hi,

The requirements are updated in last week.
https://github.com/osrg/ryu/blob/master/tools/pip-requires

Please re-install the required packages and try again.
$ sudo pip install -r tools/pip-requires
$ sudo python setup.py install

Thanks,
Iwase
Post by 北邮-李呈
Hi all,
I just pull the latest ryu git repository down to install ryu. However, a new error occured, the detail info shows below. How to handle it? Thank you.
Cheng Li
File "/usr/local/bin/ryu-manager", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 2900, in <module>
File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 2886, in _call_aside
File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 2913, in _initialize_master_working_set
File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 642, in _build_master
File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 943, in require
File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 830, in resolve
pkg_resources.DistributionNotFound: The 'ovs' distribution was not found and is required by ryu
------------------
Distance 李呈
_____________________________________________________
School of Information and Communication Engineering
Beijing University of Posts and Telecommunications
Beijing 100876, PR China
北京邮电大学·信息与通信工程学院·通信工程
_____________________________________________________
(+86) 151-1698-3550 Beijing
http://www.muzixing.com
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel
FUJITA Tomonori
2016-03-29 19:18:56 UTC
Permalink
Hi,

On Mon, 28 Mar 2016 17:53:21 +0800
Post by 北邮-李呈
I just pull the latest ryu git repository down to install
ryu. However, a new error occured, the detail info shows below. How
to handle it? Thank you.
Thanks for trying the latest code! That's really helpful for making
sure that a release works nicely.

I tried to install the latest on clean Ubuntu 14.04 and got the
following:

***@fac4ef26269e:/ryu# pip install -r tools/pip-requires
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line
122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py",
line 262, in run
for req in parse_requirements(filename, finder=finder,
options=options, session=session):
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1632, in
parse_requirements
req = InstallRequirement.from_line(line, comes_from,
prereleases=getattr(options, "pre", None))
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 173, in
from_line
return cls(req, comes_from, url=url, prereleases=prereleases)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 71, in
__init__
req = pkg_resources.Requirement.parse(req)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2667,
in parse
reqs = list(parse_requirements(s))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2605,
in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version
spec")
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2583,
in scan_list
"Expected ',' or end-of-list in",line,"at",line[p:]
ValueError: ("Expected ',' or end-of-list in", "ovs >=2.6.0.dev0 ;
python_version >= '3.0'", 'at', " ; python_version >= '3.0'")

Now I remember that the version of pip on 14.04 can't handle the
version condition stuff. Jason, how about forcing >=2.6.0.dev0 for
everyone. Not necessary for guys with python2.7 but much better than
getting repeated error reports that Ryu 4.1 can't be installed on
14.04.

diff --git a/tools/pip-requires b/tools/pip-requires
index 4868e9d..88dd8e1 100644
--- a/tools/pip-requires
+++ b/tools/pip-requires
@@ -5,5 +5,4 @@ oslo.config>=1.6.0
routes # wsgi
six>=1.4.0
webob>=1.2 # wsgi
-ovs >=2.6.0.dev0 ; python_version >= '3.0'
-ovs ; python_version < '3.0'
+ovs >=2.6.0.dev0
Jason Kölker
2016-03-29 19:40:28 UTC
Permalink
This post might be inappropriate. Click to display it.
FUJITA Tomonori
2016-03-29 20:37:38 UTC
Permalink
On Tue, 29 Mar 2016 19:40:28 +0000
Post by Jason Kölker
Works for me. I haven't seen any issues with the 2.6.0 branch in my
dev (python2) environment.
Thanks for the confirmation, pushed.

Loading...