Actions
Bug #2770
closedosmo-python-tests fails with both python-2.7 and 3.6 ?!?
Start date:
12/18/2017
Due date:
% Done:
100%
Spec Reference:
Description
when using python-2.7.14:
$ python ./setup.py install ... byte-compiling build/bdist.linux-x86_64/egg/osmopy/__init__.py to __init__.pyc byte-compiling build/bdist.linux-x86_64/egg/osmopy/osmo_interact_common.py to osmo_interact_common.pyc File "build/bdist.linux-x86_64/egg/osmopy/osmo_interact_common.py", line 113 print('Error while verifying transcript file %r' % transcript_file, file=sys.stderr) ^ SyntaxError: invalid syntax
and when using 3.6.4rc1:
$ python3 ./setup.py install Processing osmopython-0.0.3-py3.6.egg removing '/usr/local/lib/python3.6/dist-packages/osmopython-0.0.3-py3.6.egg' (and everything under it) creating /usr/local/lib/python3.6/dist-packages/osmopython-0.0.3-py3.6.egg Extracting osmopython-0.0.3-py3.6.egg to /usr/local/lib/python3.6/dist-packages File "/usr/local/lib/python3.6/dist-packages/osmopython-0.0.3-py3.6.egg/osmopy/obscvty.py", line 34 print '\n> %s' % what ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int '\n> %s' % what)? File "/usr/local/lib/python3.6/dist-packages/osmopython-0.0.3-py3.6.egg/osmopy/osmo_ctrl.py", line 33 print "Connecting to host %s:%i" % (host, port) ^ SyntaxError: invalid syntax File "/usr/local/lib/python3.6/dist-packages/osmopython-0.0.3-py3.6.egg/osmopy/osmodumpdoc.py", line 24 print 'generated %r' % filename ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int 'generated %r' % filename)? File "/usr/local/lib/python3.6/dist-packages/osmopython-0.0.3-py3.6.egg/osmopy/osmotestconfig.py", line 55 print "Verifying %s, test %s" % (' '.join(cmd), run_test.__name__) ^ SyntaxError: invalid syntax File "/usr/local/lib/python3.6/dist-packages/osmopython-0.0.3-py3.6.egg/osmopy/osmotestvty.py", line 39 print "Launch: %s from %s" % (' '.join(osmo_vty_cmd), os.getcwd()) ^ SyntaxError: invalid syntax File "/usr/local/lib/python3.6/dist-packages/osmopython-0.0.3-py3.6.egg/osmopy/osmoutil.py", line 33 print "Opening /dev/null" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "Opening /dev/null")?
This is horribly broken, and I seriously wonder who has made it end up in this state. It's not acceptable, and basically osmo-python-tests is unusable as a result, AFAICT?
Related issues
Actions