Python Django Latex Permissions Problem
Nick Craig-Wood
nick at craig-wood.com
Tue Nov 25 04:30:40 EST 2008
I-T <iqbaltalaat at gmail.com> wrote:
> I have a python/django webapp running with apache2. It executes system
> commands for getting a pdf generated by pdflatex from a .tex file and
> a couple of image files which it also generates.
>
> The permssions from ls-l for all the created files is:-
> -rw-r--r-- 1 www-data www-data
>
> The files are being created in /tmp/pdfscratch{id} created from the
> script and so is the directory.
>
> pdflatex fails with the following error message:-
>
> This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
> %&-line parsing enabled.
> entering extended mode
> ! I can't write on file `uber.log'.
> Please type another transcript file name:
> ! Emergency stop
> ! ==> Fatal error occurred, no output PDF file produced!
>
> Its supposed to write to this directory. I have a feeling that
> pdflatex is trying to generate files using some weird access
> credentials that dont have access to /tmp/pdfscratch{id}
Unlikely - it takes root to change user and I wouldn't have thought
any of the files would be setuid.
Try chdir to /tmp/pdfscratch{id} first would be my suggestion.
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list