'list' object has no attribute 'id'

Issue #1 resolved
David Waring
repo owner created an issue

Trying to list tasks returns an error: 'list' object has no attribute 'id' and the following stack trace:



Inbox: Traceback (most recent call last): File "/home/tini/bin/rtm", line 3357, in <module> main(sys.argv[1:]) File "/home/tini/bin/rtm", line 3193, in main interactive() File "/home/tini/bin/rtm", line 3003, in interactive main(cmd, mode="interactive") File "/home/tini/bin/rtm", line 3198, in main ls(filterString=" ".join(args[1:])) File "/home/tini/bin/rtm", line 628, in ls print "%02d" % getLookupTable(id=tasks[i][1]), File "/home/tini/bin/rtm", line 391, in getLookupTable genLookupTable() File "/home/tini/bin/rtm", line 368, in genLookupTable lookup_table[n] = series.task.id AttributeError: 'list' object has no attribute 'id' }}}

I've been unable to replicate the error, which is making it difficult to fix.

If you've been receiving this error, please answer the following questions: 1) How many lists do you have? 2) How many tasks are in each list? 3) Do you have any tasks in the "Inbox" list? 4) Do you have any smart lists? 5) Do you have any recurring tasks? 6) What Operating System are you using? 7) What version of Python are you using?

Comments (6)

  1. Anonymous

    1) How many lists do you have?

    three, beside inbox

    2) inbox: 26 non closed, 390 closed "envoyées" : 0 non closed, 0 closed "pas classées" : 19/68 "perso" : 0/3

    3) yes

    4) no

    5) yes, 5 active reccuring task, and 4 or 5 closed tasks (that is : used to be reccuring, but not stopped)

    6) ubuntu natty

    7) python 2.7

    Please tell me if you want me to run some kind of debug, or need more informations


  2. David Waring reporter

    Thanks, I've added a debug version of the script (rtm.debug) to the source repository. If you (and anyone else that is having this problem) wouldn't mind running that and then emailing me the output to dave@davidwaring.net, that would be great!

  3. David Waring reporter

    I've uploaded version 1.1.3, which should (hopefully!) fix the AttributeError: 'list' object has no attribute 'id problem.

    Let me know if you're still having any problems.

  4. Log in to comment