python-openflow icon indicating copy to clipboard operation
python-openflow copied to clipboard

Error to install

Open phls opened this issue 9 years ago • 4 comments

Please verify these problems:

File "/usr/lib/python3/dist-packages/pyof/foundation/basic_types.py", line 459 raise ValueError(f"BinaryData can't be {type(value)} = '{value}'") ^ SyntaxError: invalid syntax

File "/usr/lib/python3/dist-packages/pyof/v0x01/controller2switch/packet_out.py", line 131 raise ValidationError(f'{self.in_port} is not a valid input port.') ^ SyntaxError: invalid syntax

File "/usr/lib/python3/dist-packages/pyof/v0x04/common/flow_match.py", line 356 raise PackException(f'Match can't unpack "{value}".') ^ SyntaxError: invalid syntax

phls avatar Sep 29 '17 13:09 phls

@phls which python version are you using? f'Match can't unpack "{value}".' syntax was introduced in python3.6, so it won't work on python versions prior to 3.6.

diraol avatar Sep 29 '17 13:09 diraol

Hi @diraol, yes.

$ python3 -V Python 3.6.3rc1

phls avatar Sep 29 '17 14:09 phls

Much probably the Python running the code is < 3.6. We need steps to reproduce.

cemsbr avatar Oct 02 '17 18:10 cemsbr

I waited few days and after a dist-upgrade the package was installed without problems. Probably some new feature in python solved the bug.

phls avatar Nov 03 '17 21:11 phls