[Trac-tickets] [The Trac Project] #2231: Trac do not locate Enscript temp file

The Trac Project noreply at edgewall.com
Fri Oct 14 21:00:40 CDT 2005


#2231: Trac do not locate Enscript temp file
------------------------------+---------------------------------------------
 Reporter:  zwetan at gmail.com  |       Owner:  jonas
     Type:  defect            |      Status:  new  
 Priority:  normal            |   Milestone:       
Component:  browser           |     Version:  0.9b2
 Severity:  major             |   Keywords:  enscript          |  
------------------------------+---------------------------------------------
 I think this is related to Ticket #811.

 here the log
 {{{
 3:43:22 AM Trac[svn_fs] DEBUG: Opening subversion file-system at h:\SVN
 with scope /
 3:43:22 AM Trac[cache] DEBUG: Checking whether sync with repository is
 needed
 3:43:22 AM Trac[api] DEBUG: Trying to render HTML preview using
 EnscriptRenderer
 3:43:22 AM Trac[enscript] DEBUG: Enscript command line:
 C:\buRRRn\shell\enscript\bin\enscript.exe --color -h -q --language=html -p
 - -Ejavascript
 3:43:22 AM Trac[api] WARNING: HTML preview using
 <trac.mimeview.enscript.EnscriptRenderer object at 0x009F8BB0> failed
 ([Errno 2] No such file or directory: 'c:\\windows\\temp\\tmpqdmftd')
 Traceback (most recent call last):
   File "C:\Python23\lib\site-packages\trac\mimeview\api.py", line 233, in
 render
     result = renderer.render(req, mimetype, content, filename, rev)
   File "C:\Python23\lib\site-packages\trac\mimeview\enscript.py", line
 112, in render
     np = NaivePopen(cmdline, content)
   File "C:\Python23\Lib\site-packages\trac\util.py", line 282, in __init__
     outfd = file(outfile, 'r')
 IOError: [Errno 2] No such file or directory:
 'c:\\windows\\temp\\tmpqdmftd'
 3:43:22 AM Trac[api] DEBUG: Trying to render HTML preview using
 PlainTextRenderer
 3:43:22 AM Trac[api] DEBUG: Using default plain text mimeviewer
 3:43:22 AM Trac[svn_fs] DEBUG: Closing subversion file-system at h:\SVN
 }}}

 From my observation of the "c:\\windows\\temp\\" directory
 a temp file is created but not the one that Trac is looking for

 I don't know enought Python but it must be related to a "makeTempFile"
 command not returning the correct temporary file name.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2231>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list