[OS X TeX] Can't find pygmentex

Herbert Schulz herbs at wideopenwest.com
Sat May 23 10:36:06 EDT 2015


> On May 23, 2015, at 9:02 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
> 
> Howdy,
> 
> If I run
> 
> which pdflatex
> 
> in Terminal I get
> 
> /usr/texbin/pdlatex
> 
> which means that it is found and where I expect to be found. However, if I run
> 
> which pygmentex
> 
> I get nothing returned; pygmentex, a symbolic link to a python script, is not found by the system. But pygmentex does exist in /usr/texbin as running
> 
> $ ls -alF /usr/texbin/pygmentex
> 
> shows when it returns
> 
> lrwxr-xr-x  1 herbs  wheel  47 Apr 20 14:18 /usr/texbin/pygmentex@ -> ../../texmf-dist/scripts/pygmentex/pygmentex.py
> 
> so, shouldn't it show up with the `which pygmentex` command?
> 
> Note: there is another problem since the pygmentex.py script itself requires starts with the line
> 
> #! /usr/bin/env python2
> 
> which doesn't exist. Could that really be the cause of `which pygmentex` not finding pygmentex in /usr/texbin?
> 
> Good Luck,
> 
> Herb Schulz
> (herbs at wideopenwest dot com)

Howdy,

To answer my own question... I'm stupid!

When attempting to try (unsuccessfully) to fix the problem with `/usr/bin/env python2` not existing I managed to rename the pygmentex.pl file to pymgmentex.pl so it couldn't be found. Now I've fixed that dumb mistake and can concentrate on trying to get that package to run on my system.

PS: Is there any python aware person out there that can tell me how to findout what the most recent Pygments version is and how I update my version if there is, in fact, a newer version. I seem to have Pygments-1.5-py2.7.egg.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)








More information about the MacOSX-TeX mailing list