kostajh / taskwarrior-time-tracking-hook

A simple Taskwarrior hook allowing one to track total time spent on a task.
138 stars 24 forks source link

taskwarrior_time_tracking_hook not found #21

Closed yeKcim closed 3 years ago

yeKcim commented 6 years ago
$ pip install taskwarrior-time-tracking-hook
Collecting taskwarrior-time-tracking-hook
  Using cached taskwarrior-time-tracking-hook-0.1.4.tar.gz
Collecting taskw (from taskwarrior-time-tracking-hook)
  Using cached taskw-1.2.0.tar.gz
Collecting kitchen (from taskw->taskwarrior-time-tracking-hook)
  Using cached kitchen-1.2.5.tar.gz
Collecting python-dateutil (from taskw->taskwarrior-time-tracking-hook)
  Using cached python_dateutil-2.7.0-py2.py3-none-any.whl
Collecting pytz (from taskw->taskwarrior-time-tracking-hook)
  Using cached pytz-2018.3-py2.py3-none-any.whl
Collecting six (from taskw->taskwarrior-time-tracking-hook)
  Using cached six-1.11.0-py2.py3-none-any.whl
Building wheels for collected packages: taskwarrior-time-tracking-hook, taskw, kitchen
  Running setup.py bdist_wheel for taskwarrior-time-tracking-hook ... done
  Stored in directory: /home/carre/.cache/pip/wheels/ff/5a/ec/4ed96b76b96934ae32ac31482ecbdce2e7f505d693ef105951
  Running setup.py bdist_wheel for taskw ... done
  Stored in directory: /home/carre/.cache/pip/wheels/c5/b4/67/770aa82cf436f90ce115534820d0327bd55920b652514320b9
  Running setup.py bdist_wheel for kitchen ... done
  Stored in directory: /home/carre/.cache/pip/wheels/4d/17/3c/820b146a84636dfe99c1844aa3e567ede2a0797a370c8aa20e
Successfully built taskwarrior-time-tracking-hook taskw kitchen
Installing collected packages: kitchen, six, python-dateutil, pytz, taskw, taskwarrior-time-tracking-hook
Successfully installed kitchen-1.2.5 python-dateutil-2.7.0 pytz-2018.3 six-1.11.0 taskw-1.2.0 taskwarrior-time-tracking-hook-0.1.4

$ ls ~/.local/lib/python2.7/site-packages/taskwarrior_time_tracking_hook/ 
__init__.py  __init__.pyc

$ which taskwarrior_time_tracking_hook
taskwarrior_time_tracking_hook not found

So `ln` can't work…
Aerex commented 6 years ago

Check your binary folder under local. It should be under ~/.local/bin

yeKcim commented 6 years ago

OK, right!

So, if your ~/.local/bin is not in your path, you just have to replace

ln -s `which taskwarrior_time_tracking_hook` ~/.task/hooks/on-modify.timetracking

by

ln -s ~/.local/bin/taskwarrior_time_tracking_hook ~/.task/hooks/on-modify.timetracking

Thanks.

It could be great to add this information in your readme (am I the only one without this dir in my path?)

kostajh commented 6 years ago

I would be open to a PR that adds this info to the README. If you use --user with pip install often, then you likely have ~/.local/bin in your path.