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 Desktop
Packages, which is subscribed to xdiagnose in Ubuntu.
https://bugs.launchpad.net/bugs/1206060

Title:
  xrandr-tool depends on py3, not py2

Status in “xdiagnose” package in Ubuntu:
  Confirmed

Bug description:
  Using Ubuntu 13.04, type "xrandr-tool outputs" and watch it crash with
  the following message:

   Traceback (most recent call last):
     File "./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)

  in /usr/bin/xrandr-tool, line 82, the str() builtin does not accept a second 
argument. So, this  is wrong.
  Side question: why not port it to Python3 ASAP?

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: xdiagnose 3.5.1
  ProcVersionSignature: Ubuntu 3.8.0-26.38-generic 3.8.13.2
  Uname: Linux 3.8.0-26-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.9.2-0ubuntu8.1
  Architecture: amd64
  Date: Mon Jul 29 11:20:04 2013
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-06-30 (28 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  MarkForUpload: True
  PackageArchitecture: all
  SourcePackage: xdiagnose
  UpgradeStatus: No upgrade log present (probably fresh install)

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to