Jump to content

javatseng

Member
  • Posts

    17
  • Joined

  • Last visited

Posts posted by javatseng

  1. Download the latest controller.py again and run it and see what it gives you now.

     

    https://www.dropbox.com/s/wyxp1nj5z6du03d/controller.py

     

    in Terminal

     

     

     

    python controller.py
     

     

    It seems it can get the output now. But why can't the workflow work? It is very odd.

     

    [Stephen@stephenmbp.local~/test]$ python controller.py
    <?xml version="1.0"?>
    <items>
    <item uid="1363998554.35" arg="" valid="no" autocomplete="add ">
        <title>Add A Task...</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363998554.35" arg="" valid="no" autocomplete="list:1">
        <title>1: Inbox</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363998555.35" arg="" valid="no" autocomplete="list:2">
        <title>2: Personal</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363998556.35" arg="" valid="no" autocomplete="list:3">
        <title>3: dminorstudio</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363998557.35" arg="" valid="no" autocomplete="list:4">
        <title>4: Sent</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363998558.35" arg="" valid="no" autocomplete="list:5">
        <title>5: All Tasks</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363998559.35" arg="" valid="no" autocomplete="list:6">
        <title>6: Lilian Gem</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363998560.35" arg="" valid="no" autocomplete="list:7">
        <title>7: Today</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363998561.35" arg="" valid="no" autocomplete="list:8">
        <title>8: To-do</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    </items>
    
  2. Okay, I didn't test the script on older versions of python.  I believe that was the issue.  I have made some changes.  Download the workflow again from the link in the first post and install it.  It will overwrite the one installed.  Let me know if that works for you.

     

    Thanks for updating the workflow. However, It still shows "fetching data.. ."

  3. Try removing the .milkmaid config file and the doing the auth again

     

     

    from Terminal:

    rm ~/.milkmaid
     

     

    It can generate URL again. Thanks. The below is the out of running the command "python controller.py":

     

    [Stephen@stephenmbp.local~/test]$ python controller.py
    Traceback (most recent call last):
      File "controller.py", line 50, in <module>
        logger.debug("Query String: "+str(sys.argv).translate(None, "'"))
    TypeError: expected a character buffer object
    
  4. Hmmm.  Not sure what is going on.  Here is the controller.py from the workflow that does the talking to milkmaid.  

     

    https://www.dropbox.com/s/wyxp1nj5z6du03d/controller.py

     

    Can you download it and then, from the directory where you downloaded it to, run:

     

     

     

    python controller.py
     

     

    and let me know what it outputs?

     

    It should output your lists in an xml format but maybe you are getting a python error?

     

    Here is a sample output

     

     

     

    <?xml version="1.0"?>
    <items>
    <item uid="1363791460.03" arg="" valid="no" autocomplete="add ">
        <title>Add A Task...</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363791460.03" arg="" valid="no" autocomplete="list:1">
        <title>1: Inbox</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
    <item uid="1363791461.03" arg="" valid="no" autocomplete="list:2">
        <title>2: Sent</title>
        <subtitle></subtitle>
        <icon>rtm_icon.png</icon>
      </item>
     .
     .
     .
    </items>
    

     

    I canceled my auth in RTM and tried to follow the instruction again. The situation is getting worse. Now I can not get auth URL. The below is the error message:

     

    F, [2013-03-21T02:39:43.035575 #7058] FATAL -- : ERROR: Code: 98, Message: Login failed / Invalid auth token (RTM::VerificationException)
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/moocow-1.1.0/lib/moocow/endpoint.rb:111:in `verify'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/moocow-1.1.0/lib/moocow/endpoint.rb:76:in `call_method'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/moocow-1.1.0/lib/moocow/moocow.rb:129:in `method_missing'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/milkmaid-0.3.0/lib/milkmaid.rb:12:in `initialize'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/milkmaid-0.3.0/bin/milkmaid:10:in `new'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/milkmaid-0.3.0/bin/milkmaid:10:in `milkmaid'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/milkmaid-0.3.0/bin/milkmaid:150:in `run'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/main-4.7.7/lib/main/program/class_methods.rb:155:in `block in run'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/main-4.7.7/lib/main/program/class_methods.rb:144:in `catch'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/main-4.7.7/lib/main/program/class_methods.rb:144:in `run'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/main-4.7.7/lib/main/factories.rb:18:in `run'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/main-4.7.7/lib/main/factories.rb:25:in `Main'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/gems/milkmaid-0.3.0/bin/milkmaid:29:in `<top (required)>'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/bin/milkmaid:19:in `load'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/bin/milkmaid:19:in `<main>'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
    /Users/Stephen/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'
    

     

    I am not sure what is going on. Sorry to bring more problems.

  5. It means the script is receiving either nothing at all or something unexpected from the milkmaid callout.  Try running milkmaid from the command line to make sure it is working.  Try this in Terminal:

     

     

     

    milkmaid list
     

    and make sure it outputs your Remember The Milk lists.

     

    I tried the command "milkmaid list" in the terminal. It did show my lists. But, Alfred still showed "fetching data...." 

×
×
  • Create New...