Jump to content

Damoeire

Member
  • Posts

    61
  • Joined

  • Last visited

Everything posted by Damoeire

  1. Oh sorry, maybe I already had a short citation on my clipboard, though I don't know how. No worries, thanks again for the workflow, even without citation it is an easier way to look something up.
  2. It happens regardless of what I type in, I can type in garbage, or doctor who, or new girl, or breaking bad, or one word as well
  3. Hi again Stephen, Here is the log for the error I'm getting Thanks, D. Starting debug for 'KA Torrents' [ERROR: alfred.workflow.input.scriptfilter] Code 1: 19:34:27 workflow.py:1892 ERROR 'NoneType' object has no attribute 'text' Traceback (most recent call last): File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.E62FD2DC-97FA-4060-B970-A124ADFE4FC4/workflow/workflow.py", line 1890, in run func(self) File "torrents.py", line 69, in main for item in scrape_torrent_site(query): File "torrents.py", line 29, in scrape_torrent_site label_text = normalise_whitespace(soup.find('tr').text) AttributeError: 'NoneType' object has no attribute 'text' 19:34:27 workflow.py:1907 DEBUG Workflow finished in 2.328 seconds. [ERROR: alfred.workflow.input.scriptfilter] Code 1: 19:34:30 workflow.py:1892 ERROR 'NoneType' object has no attribute 'text' Traceback (most recent call last): File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.E62FD2DC-97FA-4060-B970-A124ADFE4FC4/workflow/workflow.py", line 1890, in run func(self) File "torrents.py", line 69, in main for item in scrape_torrent_site(query): File "torrents.py", line 29, in scrape_torrent_site label_text = normalise_whitespace(soup.find('tr').text) AttributeError: 'NoneType' object has no attribute 'text' 19:34:30 workflow.py:1907 DEBUG Workflow finished in 2.432 seconds.
  4. Ok, the first export I tried to do this time worked! It was a short citation and I've copied the debug report to https://gist.github.com/a63db8b59a5570f2aae2.git The second export didn't work, it was a full citation. https://gist.github.com/b89491130e17551b2345.git Third export was for same zotero entry as first one, full citation and didn't work: https://gist.github.com/cb0651da62514a6e0a8e.git I've just realised that you also wrote the Kickass worksflow - which I also can't get to work! I get a 'nonetype' object has no attribute 'text' error! But isn't the place for that! I'm not sure where is, maybe you can direct me. I hope this isn't a hassle for you, you probably have other things to do, I have the night off!
  5. Hmm. That is interesting. If I go to zotero and seach for 'olden' none of the entries are missing a last name, same for 'olde', there are a lot more entries for 'old' but I couldn't find any missing a last name there either, that said, I am sure that some of my zotero data has some funny points! Lots without any names for example (newspaper articles without author), others with only last name. As far as I can work out, no. I should have said, I do get a notification saying that data has been copied to the clipboard: Full reference Copied! Format:[stuff] My zotero is synced, and I access it on my ipad and iphone regularly, using zotpad and papership. I'm not bothered at all by the small bugs, it's a great job your doing, I'm pleased to be able to help. I checked my zotero settings, and the key and userid is correct, it says that zotquery last accessed zotero 3 mins ago. I don't know if this could be related, but I've never been able to get copy and paste from zotero standalone to work, I need to drag my files into scrivener (another reason why zotquery looks so appealing!) These days I can use Alfred's clipboard for recently used cites which is also handy. Another bit of information: Last night I added another attachment to an entry - when I search for that entry now using ZQ it says theres only 1 attachment, I have tried updating the cache and zotero tells me it is synced. I hope that gives you the information you need to debug some more, let me know if there's anything else I can do. Damian
  6. Hi Stephen, I'm happy to be a bug finder. Once I get this working well, I think it will be great. I'm using scrivener to write my thesis, and being able to get the scannable cite quickly is really handy. Below is the bug report for 'z: olden'. I can usually follow what people are talking about, but I actually know next to no coding, and can't 'really' follow the workflows, or understand anything about the API unfortunately. It is the best I can do to modify a citation style using the mendeley visual editor. I have read your blog post however. When I write z: I really mean z [enter], I sort of thought z: was shorthand for that. I may have misunderstood. Anyway, as I said, below is the bug report for z [enter] olden, which should show up a single entry I have for olden as creator, plus a few extra such as one where 'golden' is in the title. Also when I find another citation and use either alt or ctrl to export a citation, when I go to scrivener there is nothing on my clipboard. I'll post another bug report for that experience. But first: Starting debug for 'ZotQuery' [ERROR: alfred.workflow.input.scriptfilter] Code 1: 17:33:30 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:33:30 workflow.py:1514 DEBUG Stored data saved at : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:33:30 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/zotquery_backend.json 17:33:30 workflow.py:2150 DEBUG Got password : com.hackademic.zotquery2:web_zotero 17:33:30 workflow.py:2044 INFO Checking for update ... 17:33:30 background.py:180 DEBUG Command arguments cached to `/Users/Damiennew/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.zotquery2/__workflow_update_check.argcache` 17:33:30 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/background.pyc', u'__workflow_update_check'] ... 17:33:30 workflow.py:1903 DEBUG Workflow finished in 0.003 seconds. 17:33:30 workflow.py:1903 DEBUG Workflow finished in 0.004 seconds. 17:33:30 background.py:189 DEBUG Executing task `__workflow_update_check` in background... 17:33:30 zotquery.py:95 INFO - - - NEW RUN - - - 17:33:30 zotquery.py:106 INFO Input arguments : [u'search', u'general', u'o'] 17:33:30 search.py:255 INFO Item sqlite query : SELECT key, rank(matchinfo(zotquery)) AS score FROM zotquery WHERE zotquery MATCH 'title:o* OR creators:o* OR collection_title:o* OR date:o* OR tags:o* OR collections:o* OR attachments:o* OR notes:o*' ORDER BY score DESC; 17:33:30 search.py:317 INFO Connecting to : `folded.db` 17:33:32 search.py:326 INFO Number of results : 2968 17:33:32 workflow.py:1888 ERROR string index out of range Traceback (most recent call last): File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/workflow.py", line 1886, in run func(self) File "zotquery.py", line 108, in main res = pd.run(argv) File "zotquery.py", line 64, in run return method() File "zotquery.py", line 69, in search_codepath return search.search(self.flag, self.arg, self.wf) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 533, in search found_items = search_for_items(scope, query) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 266, in search_for_items alfred_dict = formatter.prepare_item_feedback() File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 102, in prepare_item_feedback alfred['subtitle'] = self.format_subtitle() File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 143, in format_subtitle subtitle = ' '.join([self.format_creator(), File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 233, in format_creator if not creator_ref[-1] in ('.', '!', '?'): IndexError: string index out of range 17:33:32 workflow.py:1903 DEBUG Workflow finished in 1.774 seconds. [ERROR: alfred.workflow.input.scriptfilter] Code 0: 17:33:32 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:33:33 workflow.py:1514 DEBUG Stored data saved at : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:33:33 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/zotquery_backend.json 17:33:33 workflow.py:2150 DEBUG Got password : com.hackademic.zotquery2:web_zotero 17:33:33 workflow.py:2044 INFO Checking for update ... 17:33:33 background.py:180 DEBUG Command arguments cached to `/Users/Damiennew/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.zotquery2/__workflow_update_check.argcache` 17:33:33 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/background.pyc', u'__workflow_update_check'] ... 17:33:33 workflow.py:1903 DEBUG Workflow finished in 0.004 seconds. 17:33:33 workflow.py:1903 DEBUG Workflow finished in 0.003 seconds. 17:33:33 background.py:189 DEBUG Executing task `__workflow_update_check` in background... 17:33:33 zotquery.py:95 INFO - - - NEW RUN - - - 17:33:33 zotquery.py:106 INFO Input arguments : [u'search', u'general', u'olden'] 17:33:33 search.py:255 INFO Item sqlite query : SELECT key, rank(matchinfo(zotquery)) AS score FROM zotquery WHERE zotquery MATCH 'title:olden* OR creators:olden* OR collection_title:olden* OR date:olden* OR tags:olden* OR collections:olden* OR attachments:olden* OR notes:olden*' ORDER BY score DESC; 17:33:33 search.py:317 INFO Connecting to : `folded.db` 17:33:33 search.py:326 INFO Number of results : 0 17:33:34 workflow.py:1903 DEBUG Workflow finished in 0.640 seconds. Here is the one for not getting a citation to the clipboard. Alfred initially comes up with a 'string out of range error', then that is replaced by my zotero entries, that doesn't really concern me, though you may like to know about it. Thanks for the great work. Starting debug for 'ZotQuery' [ERROR: alfred.workflow.input.scriptfilter] Code 1: 17:42:27 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:42:27 workflow.py:1514 DEBUG Stored data saved at : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:42:27 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/zotquery_backend.json 17:42:27 workflow.py:2150 DEBUG Got password : com.hackademic.zotquery2:web_zotero 17:42:27 workflow.py:2044 INFO Checking for update ... 17:42:27 background.py:180 DEBUG Command arguments cached to `/Users/Damiennew/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.zotquery2/__workflow_update_check.argcache` 17:42:27 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/background.pyc', u'__workflow_update_check'] ... 17:42:27 workflow.py:1903 DEBUG Workflow finished in 0.004 seconds. 17:42:27 workflow.py:1903 DEBUG Workflow finished in 0.003 seconds. 17:42:27 background.py:189 DEBUG Executing task `__workflow_update_check` in background... 17:42:27 zotquery.py:95 INFO - - - NEW RUN - - - 17:42:27 zotquery.py:106 INFO Input arguments : [u'search', u'general', u'a'] 17:42:27 search.py:255 INFO Item sqlite query : SELECT key, rank(matchinfo(zotquery)) AS score FROM zotquery WHERE zotquery MATCH 'title:a* OR creators:a* OR collection_title:a* OR date:a* OR tags:a* OR collections:a* OR attachments:a* OR notes:a*' ORDER BY score DESC; 17:42:27 search.py:317 INFO Connecting to : `folded.db` 17:42:28 search.py:326 INFO Number of results : 2371 17:42:29 workflow.py:1888 ERROR string index out of range Traceback (most recent call last): File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/workflow.py", line 1886, in run func(self) File "zotquery.py", line 108, in main res = pd.run(argv) File "zotquery.py", line 64, in run return method() File "zotquery.py", line 69, in search_codepath return search.search(self.flag, self.arg, self.wf) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 533, in search found_items = search_for_items(scope, query) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 266, in search_for_items alfred_dict = formatter.prepare_item_feedback() File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 102, in prepare_item_feedback alfred['subtitle'] = self.format_subtitle() File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 143, in format_subtitle subtitle = ' '.join([self.format_creator(), File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 233, in format_creator if not creator_ref[-1] in ('.', '!', '?'): IndexError: string index out of range 17:42:29 workflow.py:1903 DEBUG Workflow finished in 1.444 seconds. [ERROR: alfred.workflow.input.scriptfilter] Code 0: 17:42:29 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:42:29 workflow.py:1514 DEBUG Stored data saved at : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:42:29 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/zotquery_backend.json 17:42:29 workflow.py:2150 DEBUG Got password : com.hackademic.zotquery2:web_zotero 17:42:29 workflow.py:2044 INFO Checking for update ... 17:42:29 background.py:180 DEBUG Command arguments cached to `/Users/Damiennew/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.zotquery2/__workflow_update_check.argcache` 17:42:29 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/background.pyc', u'__workflow_update_check'] ... 17:42:29 workflow.py:1903 DEBUG Workflow finished in 0.004 seconds. 17:42:29 workflow.py:1903 DEBUG Workflow finished in 0.006 seconds. 17:42:29 background.py:189 DEBUG Executing task `__workflow_update_check` in background... 17:42:29 zotquery.py:95 INFO - - - NEW RUN - - - 17:42:29 zotquery.py:106 INFO Input arguments : [u'search', u'general', u'anderson'] 17:42:29 search.py:255 INFO Item sqlite query : SELECT key, rank(matchinfo(zotquery)) AS score FROM zotquery WHERE zotquery MATCH 'title:anderson* OR creators:anderson* OR collection_title:anderson* OR date:anderson* OR tags:anderson* OR collections:anderson* OR attachments:anderson* OR notes:anderson*' ORDER BY score DESC; 17:42:29 search.py:317 INFO Connecting to : `folded.db` 17:42:29 search.py:326 INFO Number of results : 14 17:42:30 workflow.py:1903 DEBUG Workflow finished in 0.706 seconds. [ERROR: alfred.workflow.action.script] Code 1: 17:42:35 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:42:35 workflow.py:1514 DEBUG Stored data saved at : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:42:35 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/zotquery_backend.json 17:42:35 workflow.py:2150 DEBUG Got password : com.hackademic.zotquery2:web_zotero 17:42:35 workflow.py:2044 INFO Checking for update ... 17:42:35 background.py:180 DEBUG Command arguments cached to `/Users/Damiennew/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.zotquery2/__workflow_update_check.argcache` 17:42:35 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/background.pyc', u'__workflow_update_check'] ... 17:42:35 workflow.py:1903 DEBUG Workflow finished in 0.004 seconds. 17:42:35 workflow.py:1903 DEBUG Workflow finished in 0.003 seconds. 17:42:35 background.py:189 DEBUG Executing task `__workflow_update_check` in background... 17:42:35 zotquery.py:95 INFO - - - NEW RUN - - - 17:42:35 zotquery.py:106 INFO Input arguments : [u'export', u'citation', u'0_FCD35TZT'] 17:42:37 workflow.py:1888 ERROR HTTP Error 400: Bad Request Traceback (most recent call last): File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/workflow.py", line 1886, in run func(self) File "zotquery.py", line 108, in main res = pd.run(argv) File "zotquery.py", line 64, in run return method() File "zotquery.py", line 72, in export_codepath return export.export(self.flag, self.arg, self.wf) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/export.py", line 23, in export cites = get_export_html(flag, uid, wf) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/export.py", line 47, in get_export_html cites = export_item(flag, uid) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/export.py", line 65, in export_item style=zq.backend.csl_style) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/zotero.py", line 281, in func_wrapper return self._retrieve_data(url, **kwargs) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/zotero.py", line 242, in _retrieve_data self.request.raise_for_status() File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/web.py", line 263, in raise_for_status raise self.error HTTPError: HTTP Error 400: Bad Request 17:42:37 workflow.py:1903 DEBUG Workflow finished in 1.254 seconds. [ERROR: alfred.workflow.output.script] Code 1: 17:42:37 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:42:37 workflow.py:1514 DEBUG Stored data saved at : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 17:42:37 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/zotquery_backend.json 17:42:37 workflow.py:2150 DEBUG Got password : com.hackademic.zotquery2:web_zotero 17:42:37 workflow.py:2044 INFO Checking for update ... 17:42:37 background.py:180 DEBUG Command arguments cached to `/Users/Damiennew/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.zotquery2/__workflow_update_check.argcache` 17:42:37 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/background.pyc', u'__workflow_update_check'] ... 17:42:37 workflow.py:1903 DEBUG Workflow finished in 0.005 seconds. 17:42:37 workflow.py:1903 DEBUG Workflow finished in 0.003 seconds. 17:42:37 background.py:189 DEBUG Executing task `__workflow_update_check` in background... 17:42:37 zotquery.py:95 INFO - - - NEW RUN - - - 17:42:37 workflow.py:1903 DEBUG Workflow finished in 0.005 seconds. Usage: zotquery.py configure <flag> [<argument>] zotquery.py search <flag> [<argument>] zotquery.py store <flag> <argument> zotquery.py export <flag> <argument> zotquery.py append <flag> <argument> zotquery.py open <flag> <argument> zotquery.py scan <flag> [<argument>]
  7. Thanks for the fix and sorry for the delay, I don't think I got an email notification and then forgot to check for a reply. That has indeed fixed it, and I did the same thing for z: config option, as that didn't seem to be working either, though I could be mistaken, it works now regardless. A funny thing is happening, when I type some things, (maybe most things, I haven't been using it a great deal, but am bringing into my workflow more often) for example z [enter] smith, it works fine, I get my options, but when I'm typing 'z: olden' I get a 'string out of range' error, then it switches to 'search google, search wiki (also search zotero as the third option, which doesn't work if I choose it) Debug is below: Ok, I'm not actually getting anything in the debug window, perhaps because it's not completing an operation? And when it type z: debug, I get: (Ok I'm writing this as I go along, this time I got a debug report, on the z: debug command which is below:) Starting debug for 'ZotQuery' [ERROR: alfred.workflow.input.scriptfilter] Code 1: 02:54:18 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 02:54:18 workflow.py:1514 DEBUG Stored data saved at : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 02:54:18 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/zotquery_backend.json 02:54:18 workflow.py:2150 DEBUG Got password : com.hackademic.zotquery2:web_zotero 02:54:18 workflow.py:2044 INFO Checking for update ... 02:54:18 background.py:180 DEBUG Command arguments cached to `/Users/Damiennew/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.zotquery2/__workflow_update_check.argcache` 02:54:18 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/background.pyc', u'__workflow_update_check'] ... 02:54:18 workflow.py:1903 DEBUG Workflow finished in 0.003 seconds. 02:54:18 workflow.py:1903 DEBUG Workflow finished in 0.006 seconds. 02:54:18 background.py:189 DEBUG Executing task `__workflow_update_check` in background... 02:54:18 zotquery.py:95 INFO - - - NEW RUN - - - 02:54:18 zotquery.py:106 INFO Input arguments : [u'search', u'debug'] 02:54:18 workflow.py:1888 ERROR coercing to Unicode: need string or buffer, NoneType found Traceback (most recent call last): File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/workflow.py", line 1886, in run func(self) File "zotquery.py", line 108, in main res = pd.run(argv) File "zotquery.py", line 64, in run return method() File "zotquery.py", line 69, in search_codepath return search.search(self.flag, self.arg, self.wf) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/zotquery/search.py", line 530, in search query = config.decode(query) File "/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/workflow.py", line 2263, in decode text = unicode(text, encoding) TypeError: coercing to Unicode: need string or buffer, NoneType found 02:54:18 workflow.py:1903 DEBUG Workflow finished in 0.013 seconds.
  8. I can't seen to change my preferences (export style). When I type z:prefs into alfred, nothing happens. Here's the debug from z:prefs Starting debug for 'ZotQuery' [ERROR: alfred.workflow.action.script] Code 1: 15:50:39 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 15:50:40 workflow.py:1514 DEBUG Stored data saved at : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/local_zotero.json 15:50:40 workflow.py:1457 DEBUG Stored data loaded from : /Users/Damiennew/Library/Application Support/Alfred 2/Workflow Data/com.hackademic.zotquery2/zotquery_backend.json 15:50:40 workflow.py:2150 DEBUG Got password : com.hackademic.zotquery2:web_zotero 15:50:40 workflow.py:2044 INFO Checking for update ... 15:50:40 background.py:180 DEBUG Command arguments cached to `/Users/Damiennew/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.zotquery2/__workflow_update_check.argcache` 15:50:40 background.py:184 DEBUG Calling [u'/usr/bin/python', '/Users/Damiennew/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.803FD61C-8B7B-408C-937D-A6271DE66336/workflow/background.pyc', u'__workflow_update_check'] ... 15:50:40 workflow.py:1903 DEBUG Workflow finished in 0.003 seconds. 15:50:40 workflow.py:1903 DEBUG Workflow finished in 0.004 seconds. 15:50:40 background.py:189 DEBUG Executing task `__workflow_update_check` in background... 15:50:40 zotquery.py:95 INFO - - - NEW RUN - - - 15:50:40 workflow.py:1903 DEBUG Workflow finished in 0.005 seconds. Usage: zotquery.py configure <flag> [<argument>] zotquery.py search <flag> [<argument>] zotquery.py store <flag> <argument> zotquery.py export <flag> <argument> zotquery.py append <flag> <argument> zotquery.py open <flag> <argument> zotquery.py scan <flag> [<argument>]
  9. That's worked thanks. I look forward to checking it out now! edit: btw just fyi, it didn't overwrite the old version but installed another one. I deleted both and reinstalled, then it worked.
  10. Thanks for replying. Running z:config with debugger Starting debug for 'ZotQuery' [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg '' Anytime I go to search (since I haven't gotten past step one I don't really understand the options yet), but I type zot for example and alfred shows underneath 'search your zotero library (titles)' and other options, as well as launching zotero, but as soon as I type in another letter (after a space), it goes to search google, amazon or wikipedia. I hope that helps!
  11. Hi, I'm having a similar problem to an earlier user. Downloaded zotquery and installed the workflow - when i run z:config nothing happens. I'm not as clued up as previous poster to run terminal commands though I did try - the only thing I noticed is the my library directory is directly of my harddrive so: sshd/library/application support and then no alfred. If I go to users then its sshd/users/damoeire then no application support directory. Only an applications directory (and 15-20 other directory's). I only bought Alfred for zotquery! Any advice? thanks, Damian
×
×
  • Create New...