Public bug reported:
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)
** Affects: task (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug yakkety
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1663628
Title:
TaskWarrior hook for TimeWarrior needs python2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/task/+bug/1663628/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs