TaskWarrior hook for TimeWarrior needs python2

Bug #1663628 reported by Andrew Myers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
task (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The TaskWarrior hook shipped at /usr/share/doc/timewarrior/ext/on-modify.timewarrior
has #!/usr/bin/env python. That is python 3.5.2 installed via Anaconda on my system.
As a result running task start with this hook installed at ~/.task/hooks results in:

> task start 1
Traceback (most recent call last):
  File "/home/icarus/.task/hooks/on-modify.timewarrior", line 57, in <module>
    os.system('timew start ' + combined + ' :yes')
TypeError: Can't convert 'bytes' object to str implicitly
Hook Error: Expected feedback from a failing hook script.

Changing the shebang to #!/usr/bin/env python2 fixes the issue.

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: taskwarrior 2.5.1+dfsg-1
ProcVersionSignature: Ubuntu 4.8.0-34.36-generic 4.8.11
Uname: Linux 4.8.0-34-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Feb 10 10:01:21 2017
InstallationDate: Installed on 2016-12-03 (69 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
SourcePackage: task
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Andrew Myers (asm198) wrote :
Revision history for this message
dino99 (9d9) wrote :

fixed into dfsg-6

Changed in task (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.