Jump to content

mosb

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by mosb

  1. @deanishe: enormous thanks, the more recent updates to the workflow resolved my earlier issues. You are a star. I am thrilled to have this workflow.

     

    One feature request: could the workflow be used to export bibtex? No big deal if this is difficult, as doing so currently only requires me to use the workflow to navigate to Zotero, and then to quick-copy using a shortcut. 

  2. Thanks for the super prompt response! Output below for `zot a`.

     

    [2017-12-21 14:46:20][input.scriptfilter] Queuing argument 'a'
    [2017-12-21 14:46:21][input.scriptfilter] Script with argument 'a' finished
    [2017-12-21 14:46:21][STDERR: input.scriptfilter] .
    14:46:21 workflow.py:2055 DEBUG    ---------- ZotHero (0.1.1) ----------
    14:46:21 zh:280 DEBUG    args={'--help': False,
     '<key>': None,
     '<query>': 'a',
     '<style>': None,
     'attachments': False,
     'citations': False,
     'copy': False,
     'fields': False,
     'search': True}
    14:46:21 core.py:35 DEBUG    [core] cachedir=u'~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred.zothero'
    14:46:21 core.py:145 INFO     [core] searching for "a" ...
    14:46:21 util.py:123 DEBUG    [util] copying u'/Users/mosb/Zotero/zotero.sqlite' to u'/Users/mosb/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred.zothero/zotero.sqlite' ...
    14:46:21 core.py:93 DEBUG    [core] storage=u'~/Zotero/storage'
    14:46:21 core.py:94 DEBUG    [core] styles=u'~/Zotero/styles'
    14:46:21 zotero.py:188 DEBUG    [zotero] database last modified 0.5 secs ago
    14:46:21 index.py:184 DEBUG    [index] not yet initialised
    14:46:21 index.py:253 DEBUG    [index] updating u'~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred.zothero/search.sqlite' ...
    14:46:21 index.py:131 DEBUG    [index] initialising u'~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred.zothero/search.sqlite' ...
    14:46:21 index.py:139 DEBUG    [index] opened u'~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred.zothero/search.sqlite'
    14:46:21 zotero.py:180 DEBUG    [zotero] opened database u'~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/net.deanishe.alfred.zothero/zotero.sqlite'
    14:46:21 workflow.py:2074 ERROR    sequence item 0: expected string or Unicode, NoneType found
    Traceback (most recent call last):
      File "./lib/workflow/workflow.py", line 2067, in run
        func(self)
      File "./zh", line 289, in main
        return do_search(query)
      File "./zh", line 84, in do_search
        entries = app.search(query)
      File "./lib/zothero/core.py", line 146, in search
        return self.index.search(query)
      File "./lib/zothero/core.py", line 110, in index
        self._index.update(self.zotero)
      File "./lib/zothero/index.py", line 281, in update
        u' '.join([d.name for d in e.attachments]),
    TypeError: sequence item 0: expected string or Unicode, NoneType found
    14:46:21 workflow.py:2097 DEBUG    ---------- finished in 0.559s ----------
    [2017-12-21 14:46:21][input.scriptfilter] {"items": [{"valid": false, "subtitle": "sequence item 0: expected string or Unicode, NoneType found", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'ZotHero'"}]}

     

  3. Enormous thanks to everyone, particularly @deanishe, for your efforts: I used to use ZotQuery daily, and would love to have a replacement.

     

    I have installed the new ZotHero workflow, and am using the Zotero 5.0.32 with the default data directory. When I attempt to do anything with the workflow, I get the following error:

     

    ```

    Error in workflow 'ZotHero'

    sequence item 0: expected string or Unicode, NoneType found. 

    ```

     

    Any help at all appreciated!

×
×
  • Create New...