Opened 10 years ago

Closed 9 years ago

#4015 closed defect (fixed)

ValueError: close_fds is not supported on Windows platforms

Reported by: Julia Jacobs Owned by: Lucas Eisenzimmer
Priority: normal Component: PageToDocIntegration
Severity: normal Keywords:
Cc: Trac Release: 0.11


This isn't really a python bug, but it effects this plug-in on Windows. close_fds is not supported for Windows in C:\Python25\Lib\

Here's the information:

Everything installs correctly but when clicking on the Download in other formats > MS Word link on the bottom of the wiki the following happens:

How to Reproduce

While doing a GET operation on /wiki/WikiStart, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'format': u'zip', 'page': u'WikiStart'}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv: Gecko/2008092417 Firefox/3.0.3

System Information

Trac 0.11.1
Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)]
setuptools 0.6c7
SQLite 3.5.2
pysqlite 2.4.0
Genshi 0.5
mod_python 3.3.1
Subversion 1.5.3 (r33570)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\trac\web\", line 423, in _dispatch_request
  File "C:\Python25\Lib\site-packages\trac\web\", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "C:\Python25\Lib\site-packages\trac\wiki\", line 161, in process_request
  File "C:\Python25\Lib\site-packages\trac\mimeview\", line 834, in send_converted
    content, selector)
  File "C:\Python25\Lib\site-packages\trac\mimeview\", line 560, in convert_content
    output = converter.convert_content(req, mimetype, content, ck)
  File "build\bdist.win32\egg\pagetodoc\", line 96, in convert_content
  File "build\bdist.win32\egg\pagetodoc\", line 140, in execute_external_program
    retval =, shell=True, stderr=errptr, stdout=outptr, close_fds=True)
  File "C:\Python25\Lib\", line 444, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\Python25\Lib\", line 552, in __init__
    raise ValueError("close_fds is not supported on Windows "
ValueError: close_fds is not supported on Windows platforms

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by anonymous

This is also broken in Python24.

comment:2 Changed 9 years ago by markm

Resolution: fixed
Status: newclosed

This should be fixed now in [5399]

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Lucas Eisenzimmer.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.