Hi,

Running the following allowed me to get around the problem:

$ sudo apt-get install python3-pip

$ pip3 install ryu==3.30

$ python3 /usr/bin/ryu-manager l2.py
loading app l2.py
instantiating app l2.py of L2Switch

That is, I downgraded the version of Ryu to 3.30.

Does the above look like the correct approach?

I then ran the example program from
https://ryu.readthedocs.io/en/latest/writing_ryu_app.html
that sends a received packet to all the ports:

$ python3 /usr/bin/ryu-manager emz.py
loading app emz.py
loading app ryu.controller.ofp_handler
instantiating app emz.py of L2Switch
instantiating app ryu.controller.ofp_handler of OFPHandler

I have four ports on the Ubuntu server connected to four of the five ports on 
the switch.

How would I prove that packets are being sent to all the ports?

I have tools such as ping, tcpdump and netcat on the Ubuntu system, and similar 
tools available on the Linux-based switch.

Thanks in advance for any help.

Regards,

Ed

From: Edward Zietarski
Sent: 23 January 2020 14:45
To: ryu-devel@lists.sourceforge.net
Subject: pkg_resources.DistributionNotFound: The 'ryu==3.30' distribution was 
not found and is required by the application

Hi,

I am new to Ryu, and trying to set up Ryu on a Ubuntu 16 system.

I plan to run this against a Northbound Networks Zodiac GX switch, which I 
believe is OpenFlow version 1.3 using Open vSwitch.

The Ubuntu 16 system is as follows:

~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.6 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.6 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/";
SUPPORT_URL="http://help.ubuntu.com/";
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/";
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

The versions of Python and Ryu are as follows:

$ ryu --version
ryu 4.34
$ python3 -V
Python 3.5.2
$ python -V
Python 2.7.12

I have tried running the following example Python application copied from
https://ryu.readthedocs.io/en/latest/writing_ryu_app.html

$ cat l2.py

from ryu.base import app_manager

class L2Switch(app_manager.RyuApp):
    def __init__(self, *args, **kwargs):
        super(L2Switch, self).__init__(*args, **kwargs)

The command line and output obtained is as follows:

~$ python3 /usr/bin/ryu-manager l2.py
Traceback (most recent call last):
  File "/usr/bin/ryu-manager", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2927, 
in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2913, 
in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2940, 
in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 635, in 
_build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 943, in 
require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 829, in 
resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'ryu==3.30' distribution was not found 
and is required by the application

Are the versions of Ubuntu/Ryu/Python(3) incompatible?

Do I need to upgrade or downgrade the versions?

I presume that Ryu uses Python3?

Note I have done both:
$ sudo apt update
$ sudo apt upgrade

Also, is there any info available to get this up and running against the 
Northbound Networks Zodiac GX switch (Open vSwitch based with OpenFlow version 
1.3)?

Thanks in advance for any pointers.

Best regards,

Ed

Disclaimer

Semafone is a limited company, registered in England, with registered number 
06963868. Our registered office is at Pannell House, Park Street, Guildford, 
Surrey, GU1 4HN, United Kingdom.

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby notified 
that any disclosure, copying, distribution or taking action in relation of the 
contents of this information is strictly prohibited and may be unlawful. If you 
have received this email in error, please send it back to us, and immediately 
and permanently delete it. This email has been scanned for viruses and malware, 
and may have been automatically archived by Mimecast Ltd, an innovator in 
Software as a Service (SaaS) for business. Providing a safer and more useful 
place for your human generated data. Specializing in; Security, archiving and 
compliance. To find out more Click Here 
(https://protect-eu.mimecast.com/s/6sS0CE8WmI1xZECyHvaY?domain=linkprotect.cudasvc.com)
 .

Although Semafone has taken reasonable precautions to ensure no viruses are 
present in this email, Semafone cannot accept responsibility for any loss or 
damage sustained as a result of computer viruses and the recipient must ensure 
that the email (and any attachments) are virus free.

For information about how we process data and monitor communications please see 
our Privacy Policy (https://semafone.com/gb/privacy/)
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to