Hello,
I have recently migrated my Django application from a development server to a production server. Everything works pretty well with the exception of a PDF generating view that uses Python-PYx. The PyX package uses Tex/LaTex, and when I try to generate a PDF, I get the following error:
IOError at /buildMetCatalog/
[Errno 13] Permission denied: 'tmpYHNZ4b.tex'
-
/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in get_response
response = callback(request, *callback_args, **callback_kwargs)
...
-
/home/wilbur/IOM/iom_catalog/views.py in buildMetCatalog
c1.text(306, 680, header_text, [text.halign.boxcenter, text.halign.center, text.size.Huge])
...
-
/usr/lib/pymodules/python2.6/pyx/canvas.py in text
return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
...
-
/usr/lib/pymodules/python2.6/pyx/text.py in text
self.execute("\\begin{document}", self.defaulttexmessagesbegindoc + self.texmessagesbegindoc) ...
-
/usr/lib/pymodules/python2.6/pyx/text.py in execute
texfile = open("%s.tex" % self.texfilename, "w") # start with filename -> creates dvi file with that name ...
From the file extension, it appears that tex is trying to write some kind of temporary file to the filesystem, but I am unclear about where I need to look to set permissions. Any guidance would be appreciated....
Bill