Hello,

How about uninstall six and reinstall it again?

pip uninstall six
pip install six>=1.4.0

If it didn't solve, try to build from tarball:
https://pypi.python.org/pypi/six


2014-07-14 9:15 GMT+08:00 shailvi shah <shailvi.s...@gmail.com>:

> Hi,
>
> I have six 1.2, I tried to upgrade it using 'pip install --upgrade six'',
> but it' still showing six 1.2.
> Any workaround for this?
>
> Thanks,
> Shailvi
>
>
>
> On Sun, Jul 13, 2014 at 6:10 PM, Wei-Li Tang <alex...@xinguard.com> wrote:
>
>> Hello,
>>
>> What version of six you installed? add_metaclass requires six>=1.4.0. How
>> about re-install a new one by pip?
>>
>>
>> 2014-07-14 7:09 GMT+08:00 shailvi shah <shailvi.s...@gmail.com>:
>>
>>>  Hi,
>>>
>>> I am a beginner with SDN and ryu. In order to develop an SDN app, i was
>>> following the tutorial from
>>> https://github.com/osrg/ryu/wiki/OpenFlow_Tutorial, to start with.
>>>
>>> While trying to run 'PYTHONPATH=. ./bin/ryu-manager
>>> ryu/app/simple_switch.py' from xterm controller window, I am getting
>>> the following
>>>
>>>
>>> Traceback (most recent call last):
>>>   File "/usr/local/bin/ryu-manager", line 9, in <module>
>>>     load_entry_point('ryu==3.2', 'console_scripts', 'ryu-manager')()
>>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 343, in
>>> load_entry_point
>>>     return get_distribution(dist).load_entry_point(group, name)
>>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2307,
>>> in load_entry_point
>>>     return ep.load()
>>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2013,
>>> in load
>>>     entry = __import__(self.module_name, globals(),globals(),
>>> ['__name__'])
>>>   File "/home/ryu/ryu/ryu/cmd/manager.py", line 43, in <module>
>>>     from ryu.topology import switches
>>>   File "/home/ryu/ryu/ryu/topology/switches.py", line 32, in <module>
>>>     from ryu.lib.packet import packet, ethernet, lldp
>>>   File "/home/ryu/ryu/ryu/lib/packet/__init__.py", line 6, in <module>
>>>     from . import (ethernet, arp, icmp, icmpv6, ipv4, ipv6, lldp, mpls,
>>> packet,
>>>   File "/home/ryu/ryu/ryu/lib/packet/ethernet.py", line 17, in <module>
>>>     from . import packet_base
>>>   File "/home/ryu/ryu/ryu/lib/packet/packet_base.py", line 21, in
>>> <module>
>>>     @six.add_metaclass(abc.ABCMeta)
>>> AttributeError: 'module' object has no attribute 'add_metaclass'
>>>
>>> Google search recommended to install six, that I did, but it's still the
>>> same.
>>>
>>> Any workaround?
>>>
>>> Thanks,
>>> Shailvi
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Ryu-devel mailing list
>>> Ryu-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>
>>>
>>
>>
>> --
>> Sincerely,
>>
>> Wei-Li Tang
>> RD Engineer, Xinguard Inc.
>>
>
>


-- 
Sincerely,

Wei-Li Tang
RD Engineer, Xinguard Inc.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck&#174;
Code Sight&#153; - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to