Wednesday, July 23, 2014

RYU SDN Framework Installation



Installing RYU

 % pip install ryu
or
% git clone git://github.com/osrg/ryu.git
% cd ryu; python ./setup.py install 

Issues faced
#sudo ryu-manager --verbose --observe-links ryu.app.ws_topology
Traceback (most recent call last):
  File "/usr/local/bin/ryu-manager", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: six>=1.4.0

#ryu -version
Traceback (most recent call last):
  File "/usr/local/bin/ryu", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: six>=1.4.0


Solution
#sudo easy_install Distribute
Searching for Distribute
Best match: distribute 0.6.24dev-r0
Adding distribute 0.6.24dev-r0 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin
Installing easy_install-2.6 script to /usr/local/bin

Using /usr/lib/python2.7/dist-packages
Processing dependencies for Distribute
Finished processing dependencies for Distribute


sudo easy_install -U Distribute
Searching for Distribute
Reading http://pypi.python.org/simple/Distribute/
Best match: distribute 0.7.3
Downloading https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a
Processing distribute-0.7.3.zip
Running distribute-0.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-IggX2I/distribute-0.7.3/egg-dist-tmp-Q36wpI
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install

Adding distribute 0.7.3 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/distribute-0.7.3-py2.7.egg
Processing dependencies for Distribute
Searching for setuptools>=0.7
Reading http://pypi.python.org/simple/setuptools/
Reading http://peak.telecommunity.com/snapshots/
Reading https://bitbucket.org/pypa/setuptools
Reading https://pypi.python.org/pypi/setuptools
Best match: setuptools 5.4.1
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-5.4.1.zip#md5=96bd961ab481c78825a5be8546f42a66
Processing setuptools-5.4.1.zip
Running setuptools-5.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GGJ3Yb/setuptools-5.4.1/egg-dist-tmp-AxT2X2
Adding setuptools 5.4.1 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/setuptools-5.4.1-py2.7.egg
Finished processing dependencies for Distribute


 Solved

#ryu
usage: ryu [-h] [--config-dir DIR] [--config-file PATH] [--version]
           [subcommand] ...

positional arguments:
  subcommand          [rpc-cli|run|of-config-cli]
  subcommand_args     subcommand specific arguments

optional arguments:
  -h, --help          show this help message and exit
  --config-dir DIR    Path to a config directory to pull *.conf files from.
                      This file set is sorted, so as to provide a predictable
                      parse order if individual options are over-ridden. The
                      set is parsed after the file(s) specified via previous
                      --config-file, arguments hence over-ridden options in
                      the directory take precedence.
  --config-file PATH  Path to a config file to use. Multiple config files can
                      be specified, with values in later files taking
                      precedence. The default files used are: None.
  --version           show program's version number and exit

No comments:

Post a Comment

bee-social