[TxMt] Re: Failure running “Typeset & View (PDF)” in LaTex

René Schwaiger sanssecours at f-m.fm
Wed Sep 16 05:53:30 UTC 2015


Hi Riki,

> On 16 Sep 2015, at 5:31 , riki <riki80 at rediffmail.com> wrote:
> 
> I am getting error in LaTex: Failure running “Typeset & View (PDF)”
> 
> /Users/riki/Library/Application Support/TextMate/Managed/Bundles/Bundle 
> Support.tmbundle/Support/shared/lib/tm/process.rb:121: warning: Insecure world writable dir /Users/riki/Library/Application 
> Support in PATH, mode 040706 Traceback (most recent call last): File "/Users/riki/Library/Application 
> Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texmate.py", line 65, in from tmprefs import Preferences File 
> "/Users/msheets/Library/Application Support/Avian/Bundles/latex.tmbundle/Support/bin/tmprefs.py", line 3, in from __future__ 
> import print_function ImportError: No module named Foundation

it looks like “PyObjC” is missing for the Python executable at `/usr/bin/python`. You can check this via the following steps:

1. Open Terminal
2. Enter the following text:

    /usr/bin/python

3. Enter the following text:

    import Foundation

The last step should fail according to your description. Did you by any chance install a custom version of Python and link it to /usr/bin?

If this is the case, then installing `PyObjC` for this custom — non Apple — version of Python should fix your issue. The usual command for this process is something like `pip install PyObjC`.

> Installed Python version:
> Python 2.7.10 (default, Jul 14 2015, 19:46:27) 
> [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> 
> and
> 
> Python 3.4.3 |Anaconda 2.3.0 (x86_64)| (default, Mar 6 2015, 12:07:41) 
> [GCC 4.2.1 (Apple Inc. build 5577)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> 
> Installed Ruby version:
> ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
> 
> Best Regards,
> Riki
> 
> 
> 
> Get your own FREE website, FREE domain & FREE mobile app with Company email.  
> Know More >

Kind regards,
  René


More information about the textmate mailing list