Hi,
I just noticed that my pip show for six says 'Cannot locate
installed-files.txt', could that be a problem?
pip show --files six
---
Name: six
Version: 1.7.3
Location: /usr/local/lib/python2.7/dist-packages
Requires:
Files:
Cannot locate installed-files.txt
just fyi, I have done a fresh install from
https://pypi.python.org/pypi/six/1.7.3 hoping it would solve problems, but
it's still the same.
Thanks,
Shailvi
On Sun, Jul 13, 2014 at 7:07 PM, shailvi shah <shailvi.s...@gmail.com>
wrote:
> Hi,
>
> Are these expected outputs?
>
> ryu@ryu-vm:/$ find /usr/lib/python2.*/dist-packages/ -name six -print
> ryu@ryu-vm:/$ find /usr/local/lib/python2.*/dist-packages/ -name six
> -print
> ryu@ryu-vm:/$ find /usr/local/lib/python2.*/site-packages/ -name six
> -print
> ryu@ryu-vm:/$ find /home/ryu/.local/lib/python2.*/site-packages/ -name
> six -prin
> t
> find: `/home/ryu/.local/lib/python2.*/site-packages/': No such file or
> directory
>
>
> Thanks,
> Shailvi
>
>
> On Sun, Jul 13, 2014 at 6:42 PM, Wei-Li Tang <alex...@xinguard.com> wrote:
>
>> Hello,
>>
>> Hmm... It seems that there's an older version of six installed somewhere.
>> Could you please search related paths for it?
>>
>> /usr/lib/python2.*/dist-packages/
>> /usr/local/lib/python2.*/dist-packages/
>> /usr/local/lib/python2.*/site-packages/
>> /home/ryu/.local/lib/python2.*/site-packages/
>>
>>
>> 2014-07-14 9:33 GMT+08:00 shailvi shah <shailvi.s...@gmail.com>:
>>
>> Hi,
>>>
>>> Thanks, it worked. But it still hasn't solved the problem.
>>>
>>> I have six Version: 1.7.3.
>>>
>>> But when I run 'ryu-manager --verbose ryu.app.simple_switch_13', it
>>> still gives me
>>>
>>> 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'
>>>
>>> Thanks,
>>> Shailvi
>>>
>>>
>>>
>>>
>>> On Sun, Jul 13, 2014 at 6:21 PM, Wei-Li Tang <alex...@xinguard.com>
>>> wrote:
>>>
>>>> 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.
>>>>
>>>
>>>
>>
>>
>> --
>> 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®
Code Sight™ - 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