Jump to content
isometry

Unix man page workflow

Recommended Posts

Thanks both.

 

I'm on Mojave 10.14.6 with latest Alfred 4.0.7. I was using version v2.0 of the workflow which had been working until recently.

 

I have it working again.

 

I redownloaded it from here: https://github.com/isometry/alfred-man/releases

Also the older version in the OP still works for me.

 

Here's the export of the version I have that stopped working but also now works.

https://transfer.sh/15SdBV/man-exported.alfredworkflow

 

Perhaps a corrupt cache? I deleted a workflow data folder for this.

 

BTW I saw this in debug:

 

[18:39:43.265] Logging Started...
[18:39:43.301] Logging Stopped.
[18:39:43.983] Logging Started...
[18:39:51.606] man[Script Filter] Queuing argument 'x'
[18:39:51.815] man[Script Filter] Script with argv 'x' finished
[18:39:51.818] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1
[18:39:53.783] man[Script Filter] Queuing argument 'xa'
[18:39:53.941] man[Script Filter] Script with argv 'xa' finished
[18:39:53.945] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1
[18:39:55.204] man[Script Filter] Queuing argument 'xat'
[18:39:55.367] man[Script Filter] Script with argv 'xat' finished
[18:39:55.374] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1
[18:39:55.436] man[Script Filter] Queuing argument 'xatt'
[18:39:55.592] man[Script Filter] Script with argv 'xatt' finished
[18:39:55.601] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1
[18:39:55.708] man[Script Filter] Queuing argument 'xattr'
[18:39:55.864] man[Script Filter] Script with argv 'xattr' finished
[18:39:55.874] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1

 

Share this post


Link to post
35 minutes ago, gingerbeardman said:

Thanks both.

 

I'm on Mojave 10.14.6 with latest Alfred 4.0.7. I was using version v2.0 of the workflow which had been working until recently.

 

I have it working again.

 

I redownloaded it from here: https://github.com/isometry/alfred-man/releases

Also the older version in the OP still works for me.

 

Here's the export of the version I have that stopped working but also now works.

https://transfer.sh/15SdBV/man-exported.alfredworkflow

 

Perhaps a corrupt cache? I deleted a workflow data folder for this.

 

BTW I saw this in debug:

 


[18:39:43.265] Logging Started...
[18:39:43.301] Logging Stopped.
[18:39:43.983] Logging Started...
[18:39:51.606] man[Script Filter] Queuing argument 'x'
[18:39:51.815] man[Script Filter] Script with argv 'x' finished
[18:39:51.818] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1
[18:39:53.783] man[Script Filter] Queuing argument 'xa'
[18:39:53.941] man[Script Filter] Script with argv 'xa' finished
[18:39:53.945] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1
[18:39:55.204] man[Script Filter] Queuing argument 'xat'
[18:39:55.367] man[Script Filter] Script with argv 'xat' finished
[18:39:55.374] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1
[18:39:55.436] man[Script Filter] Queuing argument 'xatt'
[18:39:55.592] man[Script Filter] Script with argv 'xatt' finished
[18:39:55.601] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1
[18:39:55.708] man[Script Filter] Queuing argument 'xattr'
[18:39:55.864] man[Script Filter] Script with argv 'xattr' finished
[18:39:55.874] ERROR: man[Script Filter] Code 1: makewhatis: /dev/stdout: Too many levels of symbolic links
makewhatis: /dev/stdout: Too many levels of symbolic links
Traceback (most recent call last):
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 149, in <module>
    print(complete())
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 103, in complete
    whatis = fetch_whatis(cache_ttl)
  File "/Users/matt/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.14080B78-A5B3-4E4E-96DE-CDA5E1AE3091/man.py", line 47, in fetch_whatis
    raw_pages = subprocess.check_output(WHATIS_COMMAND, shell=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/libexec/makewhatis -o /dev/stdout `/usr/bin/manpath`' returned non-zero exit status 1

 

 

Glad you have it work. I actually am about to release a re-write of a man pages workflow that utilizes golang rather than python. I am just implementing the update and cache features. Not sure how active the dev on this one is.

Share this post


Link to post
On 1/10/2020 at 7:52 PM, Terminal said:

 

Glad you have it work. I actually am about to release a re-write of a man pages workflow that utilizes golang rather than python. I am just implementing the update and cache features. Not sure how active the dev on this one is.

I'd be happy to test yours. I'm not wedded to this one by any means!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...