Hi,

The traceback log shows that the tinyrpc package you have installed is
written in Python 3 syntax. Please confirm the compatibility of your
packages against Python 2. I suppose the latest tinyrpc doesn't support
Python 3.

Regards,
Iwase


2019年11月16日(土) 1:05 Ishita Dasgupta <ishita.dasgu...@gmail.com>:

> Hi,
>
> I have been running a given ryu application without any issue until this
> week with the following configuration:
> *python 2.7, ryu 4.34 and other prerequisites including tinyrpc,
> oslo.config and six is also installed as per instructions on Getting
> started page (with latest upgrades).*
> *OS: Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-33-generic x86_64)*
>
> Absolutely no changes have been made to the RYU app in the past few weeks.
> However, starting this week *I have been receiving the following error *with
> running my app or *even with the simple l2 app as shown in RYU docs *
>
>>
>> root@sdn:/users/ishitadg/ryu# ryu-manager l2.py
>> Traceback (most recent call last):
>>   File "/usr/local/bin/ryu-manager", line 9, in <module>
>>     load_entry_point('ryu==4.34', 'console_scripts', 'ryu-manager')()
>>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
>> 561, in load_entry_point
>>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
>> 2631, in load_entry_point
>>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
>> 2291, in load
>>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line
>> 2297, in resolve
>>   File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line
>> 33, in <module>
>>     from ryu.app import wsgi
>>   File "/usr/local/lib/python2.7/dist-packages/ryu/app/wsgi.py", line 23,
>> in <module>
>>     from tinyrpc.server import RPCServer
>>   File "/usr/local/lib/python2.7/dist-packages/tinyrpc/__init__.py", line
>> 4, in <module>
>>     from .protocols import *
>>   File
>> "/usr/local/lib/python2.7/dist-packages/tinyrpc/protocols/__init__.py",
>> line 15
>>     def __init__(self) -> None:
>>                        ^
>> SyntaxError: invalid syntax
>
>
> Does anybody know if any upgrades could be causing this or has any idea
> why this might be happening?
> Any help would be appreciated. Please let me know if more information is
> needed from my end.
>
> Regards,
> Ishita Dasgupta
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to