TaskWarrior hook for TimeWarrior needs python2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
task (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The TaskWarrior hook shipped at /usr/share/
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/
os.
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
ProcVersionSign
Uname: Linux 4.8.0-34-generic x86_64
NonfreeKernelMo
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)
fixed into dfsg-6