It is written for python3, but asks to run python2.  The str() interface
changed from 2 to 3.

$ python3 `which xrandr-tool` outputs
DVI-I-1
DVI-D-1
DVI-D-2

$ python `which xrandr-tool` outputs
Traceback (most recent call last):
  File "/usr/bin/xrandr-tool", line 82, in <module>
    for line in str(xrandr_stdout, encoding='utf8').split("\n"):
TypeError: str() takes at most 1 argument (2 given)

$ head -1 `which xrandr-tool`
#! /usr/bin/python

$ dpkg -s xdiagnose
...
Depends: sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16), python3:any (>= 
3.3.2-2~), python, python3-gi (>= 3.2.0-3), gir1.2-gtk-3.0, python3-apport, 
librsvg2-2, librsvg2-common, policykit-1


** Summary changed:

- xrandr-tool crashes when providing one argument
+ xrandr-tool crashes in decoding xrandr output

** Summary changed:

- xrandr-tool crashes in decoding xrandr output
+ xrandr-tool depends on py3, not py2

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xdiagnose in Ubuntu.
https://bugs.launchpad.net/bugs/1206060

Title:
  xrandr-tool depends on py3, not py2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdiagnose/+bug/1206060/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to