Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example in README not working - unrecognized attribute modifier 'contain' #76

Open
xeruf opened this issue May 28, 2020 · 0 comments
Open

Comments

@xeruf
Copy link
Contributor

xeruf commented May 28, 2020

python3
Python 3.8.0 (default, Oct 28 2019, 16:14:01) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tasklib import TaskWarrior
>>> tw = TaskWarrior('~/.local/share/task')
>>> tw.tasks.filter(tags__contain='passive')
KeyboardInterrupt
>>> tasks = tw.tasks.pending()
>>> tasks.filter(tags__contain='chores')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/janek/daten/projects/_forks/tasklib/tasklib/task.py", line 464, in __repr__
    data = list(self[:REPR_OUTPUT_SIZE + 1])
  File "/home/janek/daten/projects/_forks/tasklib/tasklib/task.py", line 481, in __getitem__
    self._result_cache = list(self)
  File "/home/janek/daten/projects/_forks/tasklib/tasklib/task.py", line 471, in __len__
    self._result_cache = list(self.__iter__())
  File "/home/janek/daten/projects/_forks/tasklib/tasklib/task.py", line 476, in __iter__
    self._result_cache = self._execute()
  File "/home/janek/daten/projects/_forks/tasklib/tasklib/task.py", line 508, in _execute
    return self.backend.filter_tasks(self.filter_obj)
  File "/home/janek/daten/projects/_forks/tasklib/tasklib/backends.py", line 334, in filter_tasks
    for line in self.execute_command(args):
  File "/home/janek/daten/projects/_forks/tasklib/tasklib/backends.py", line 297, in execute_command
    raise TaskWarriorException(error_msg)
tasklib.backends.TaskWarriorException: Using alternate data.location /home/janek/.local/share/task
Configuration override rc.confirmation:no
Configuration override rc.dependency.confirmation:no
Configuration override rc.recurrence.confirmation:no
Configuration override rc.json.array:off
Configuration override rc.bulk:0
Configuration override rc.data.location:/home/janek/.local/share/task
Error: unrecognized attribute modifier 'contain'.
Command used: task rc.confirmation=no rc.dependency.confirmation=no rc.recurrence.confirmation=no rc.json.array=off rc.bulk=0 rc.data.location=/home/janek/.local/share/task export status:'pending' tags.contain:'c,h,o,r,e,s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant