Location of temporary file writes in Django production mode

21 views
Skip to first unread message

wilbur

unread,
Jan 8, 2012, 2:32:09 PM1/8/12
to django...@googlegroups.com
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'

Traceback Switch to copy-and-paste view

  • /usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py in get_response
    1.                         response = callback(request, *callback_args, **callback_kwargs)
      ...
  • /home/wilbur/IOM/iom_catalog/views.py in buildMetCatalog
    1.     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
    1.         return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
      ...
  • /usr/lib/pymodules/python2.6/pyx/text.py in text
    1.                 self.execute("\\begin{document}", self.defaulttexmessagesbegindoc + self.texmessagesbegindoc)
      ...
  • /usr/lib/pymodules/python2.6/pyx/text.py in execute
    1.             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

Anler

unread,
Jan 9, 2012, 3:46:25 AM1/9/12
to django...@googlegroups.com
Hi, it seems to be something with Python-PYx and writing permissions, I google it and find this: http://permalink.gmane.org/gmane.comp.python.pyx.users/347
check it out

-- 
Anler
Sent with Sparrow

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/rOUUrEV1CCkJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages