Jump to content

pandoctor troubles: error NoneType


Recommended Posts

Hello

 

I'm trying to get the Pandoctor alfred gui working but am getting a "NoneType" error when I try and start a "New Pandoc Conversion" in Alfred.

 

Alfred debug output below.

 

Any ideas?

 

Thanks.

 

Simon

 

 

 

Starting debug for 'Pandoctor'

 

[ERROR: alfred.workflow.action.script] Code 0: 16:46:07 pandoctor.py:1206 DEBUG    {u'<argument>': u'/Users/skellis/Desktop/main.md',

 u'<flag>': u'in_path',

 u'config': False,

 u'help': False,

 u'launch': False,

 u'run': False,

 u'search': False,

 u'store': True}

16:46:07 workflow.py:940 DEBUG    Loading cached data from : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/runner.cache

16:46:07 workflow.py:970 DEBUG    Cached data saved at : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/runner.cache

[ERROR: alfred.workflow.output.script] Code 0: 16:46:08 pandoctor.py:1206 DEBUG    {u'<argument>': u'[path]',

 u'<flag>': u'pandoc_inputs',

 u'config': False,

 u'help': False,

 u'launch': True,

 u'run': False,

 u'search': False,

 u'store': False}

16:46:08 workflow.py:940 DEBUG    Loading cached data from : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/runner.cache

[ERROR: alfred.workflow.input.scriptfilter] Code 1: 16:46:08 pandoctor.py:1206 DEBUG    {u'<argument>': u'markdown',

 u'<flag>': u'inputs',

 u'config': False,

 u'help': False,

 u'launch': False,

 u'run': False,

 u'search': True,

 u'store': False}

16:46:08 workflow.py:940 DEBUG    Loading cached data from : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/runner.cache

16:46:08 workflow.py:1275 ERROR    'NoneType' object has no attribute '__getitem__'

Traceback (most recent call last):

  File "/Users/skellis/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.1230B144-9692-4DEC-9A81-614D64C5BF08/workflow/workflow.py", line 1273, in run

    func(self)

  File "pandoctor.py", line 1208, in main

    res = pd.run(args)

  File "pandoctor.py", line 355, in run

    return method()

  File "pandoctor.py", line 442, in search_codepath

    data = getattr(self.pandoc, prop, None)

  File "pandoctor.py", line 167, in inputs

    return self.data['inputs']

TypeError: 'NoneType' object has no attribute '__getitem__'

Link to comment

When you first download Pandoctor, you will need to configure a few settings. Luckily, Pandoctor takes care of this for you. All you need to do is use the dr:config keyword to get everything set up. Once you see the completion notification, you can start using Pandoctor for real.

So just type dr:config into Alfred.

Link to comment

I would never have imagined it was so simple!

 

I ran it and then checked the workflow and it worked just fine. 

 

Nevertheless, below is the dr:config output just in case you still want to look.

 

Thanks for your patience and time (on a Sunday).

 

Simon

 

 

 

Starting debug for 'Pandoctor'
 
[ERROR: alfred.workflow.action.script] Code 0: 18:41:59 pandoctor.py:1206 DEBUG    {u'<argument>': None,
 u'<flag>': None,
 u'config': True,
 u'help': False,
 u'launch': False,
 u'run': False,
 u'search': False,
 u'store': False}
18:41:59 workflow.py:940 DEBUG    Loading cached data from : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/runner.cache
18:42:00 workflow.py:970 DEBUG    Cached data saved at : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/pandoc.cache
18:42:00 workflow.py:970 DEBUG    Cached data saved at : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/pandoc.cache
18:42:01 workflow.py:940 DEBUG    Loading cached data from : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/pandoc.cache
18:42:01 workflow.py:970 DEBUG    Cached data saved at : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/pandoc.cache
18:42:01 workflow.py:940 DEBUG    Loading cached data from : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/pandoc.cache
18:42:01 workflow.py:970 DEBUG    Cached data saved at : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/pandoc.cache
18:42:02 workflow.py:940 DEBUG    Loading cached data from : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/pandoc.cache
18:42:02 workflow.py:970 DEBUG    Cached data saved at : /Users/skellis/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/pandoc.cache
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...