Package: python-x2go Version: 0.5.99.0-0x2go1~git20180112.1367+9999.heuler.1
"apt-get install python-x2go" fails with Setting up python-x2go (0.5.99.0-0x2go1~git20180112.1367+9999.heuler.1) ... File "/usr/lib/python2.7/dist-packages/x2go/tests/test_printing.py", line 46 print(_printing, file=tf) ^ SyntaxError: invalid syntax dpkg: error processing package python-x2go (--configure): installed python-x2go package post-installation script subprocess returned error exit status 101 Errors were encountered while processing: python-x2go E: Sub-process /usr/bin/dpkg returned an error code (1) The bug was introduced by commit 327fa5e5f09d7fabb4d0052de1b2876c852797e1 (Port to Python3). The attached patch restores compatibility with Python 2.6+. Regards Martin
--- test_printing.py.orig 2018-01-12 13:46:28.000000000 +0100 +++ test_printing.py 2018-02-19 17:07:44.433726565 +0100 @@ -17,6 +17,8 @@ # Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +from __future__ import print_function + __package__ = 'x2go.tests' __name__ = 'x2go.tests.test_printing'
_______________________________________________ x2go-dev mailing list x2go-dev@lists.x2go.org https://lists.x2go.org/listinfo/x2go-dev