Jakub Sypiański Posted May 12, 2019 Share Posted May 12, 2019 I found a workflow on github that I desperately need, but it is not an .alfredworkflow file. What should I do to install it? Link to comment
deanishe Posted May 12, 2019 Share Posted May 12, 2019 An .alfredworkflow file is just a zip file with a different extension. To turn it into an .alfredworkflow file, do: Download the zipped repo Extract it Go into the directory created Select all the files Right-click and choose "Compress N Items" Rename the created Archive.zip file to Archive.alfredworkflow Double-click it to install Alternatively, after step 2, you can drag the created folder into your workflow folder. Link to comment
Jakub Sypiański Posted May 12, 2019 Author Share Posted May 12, 2019 Thank you! I tried renaming the zipped repo to _.alfredworkflow_, but I haven't figured out that I need to extract and rezip it first. What a pity the workflow itself turns out not to work... Link to comment
deanishe Posted May 13, 2019 Share Posted May 13, 2019 What does Alfred’s debugger say? I glanced at the source code, and you probably need to install requests. Link to comment
Jakub Sypiański Posted May 13, 2019 Author Share Posted May 13, 2019 I looked on the Internet and on the forum for "install requests (alfred workflow)", but I haven't figured out what it is that I should do. As for the debugger: Quote [2019-05-13 16:50:06][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last): File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/search.py", line 5, in <module> import requests ImportError: No module named requests Link to comment
deanishe Posted May 13, 2019 Share Posted May 13, 2019 I was right, then… Enter the following command in Terminal/iTerm: /usr/bin/python -m pip install --user requests (Hopefully you do have pip installed.) Link to comment
Jakub Sypiański Posted May 13, 2019 Author Share Posted May 13, 2019 Thank you. I know nothing about python (or programming) and I use terminal very occasionally, but I think I managed to install both pip and requests. However, I have got some errors and the following message in the debugger when I tried to run the workflow. 1. Errors about pip and requests. Quote WARNING: The script wheel is installed in '/Users/jakub/Library/Python/2.7/bin' which is not on PATH. Quote WARNING: The script chardetect is installed in '/Users/jakub/Library/Python/2.7/bin' which is not on PATH. 2. Workflow's debugger Quote Starting debug for 'Zotero' [2019-05-13 21:00:23][ERROR: input.scriptfilter] Code 1: . 21:00:23 workflow.py:2057 DEBUG ---------- Zotero ---------- 21:00:23 connectionpool.py:205 DEBUG Starting new HTTP connection (1): localhost:23119 21:00:23 workflow.py:2074 ERROR 'NoneType' object is not iterable Traceback (most recent call last): File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/workflow/workflow.py", line 2067, in run func(self) File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/search.py", line 32, in main for i in r: TypeError: 'NoneType' object is not iterable 21:00:23 workflow.py:2097 DEBUG ---------- finished in 0.024s ---------- [2019-05-13 21:00:23][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON: HTTP Request failed {"items": [{"valid": false, "subtitle": "'NoneType' object is not iterable", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'Zotero'"}]} Link to comment
deanishe Posted May 13, 2019 Share Posted May 13, 2019 1 hour ago, Jakub Sypiański said: Errors about pip and requests. Those aren't errors, they're warnings. They don't matter. 1 hour ago, Jakub Sypiański said: 2. Workflow's debugger It looks like you don't have Zotero or the Bibtex plugin running (or whatever it is the workflow is supposed to connect to). But I don't really know. I've never used the workflow and I've never used Bibtex. You should really ask the author on GitHub. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now