Tornado in Windows

2,330 views
Skip to first unread message

Abe Estrada

unread,
Sep 10, 2009, 6:30:24 PM9/10/09
to Tornado Web Server
Is there a way to run Tornado in Windows?

I got an error trying to import 'fcntl'.

Bret Taylor

unread,
Sep 10, 2009, 8:20:31 PM9/10/09
to Tornado Web Server
We have only tested and run on Unix-based systems (Linux, Mac OS X).
It probably won't run on Windows. If there is an easy patch to make it
work, we will accept it, though.

Calvin Cheng

unread,
Sep 11, 2009, 12:20:22 AM9/11/09
to Tornado Web Server
Yup. Does not work on Windows as python fcntl module is a unix-only
module.

It could work on cygwin though but I wouldn't go down that route.

Chris M. Welsh

unread,
Sep 12, 2009, 11:05:29 PM9/12/09
to Tornado Web Server
It looks like the IO loop stuff is tightly coupled with fcntl at the
moment. An alternate implementation that supports Windows would be
great for development purposes. This is what's stopping me from using
Tornado at the moment, many of my dev machines currently run Windows.

On Sep 10, 8:20 pm, Bret Taylor <btay...@gmail.com> wrote:
> We have only tested and run on Unix-based systems (Linux, Mac OS X).
> It probably won't run onWindows. If there is an easy patch to make it

Ryan Phillips

unread,
Sep 13, 2009, 1:13:11 AM9/13/09
to python-...@googlegroups.com, Tornado Web Server
There is a fork up on github which adds support for the twisted event
loop, which is compatible on windows. I haven't tested the code.

-Ryan

On Sep 12, 2009, at 10:05 PM, "Chris M. Welsh" <stop...@gmail.com>
wrote:

Rhys Black

unread,
Oct 15, 2009, 4:56:15 PM10/15/09
to Tornado Web Server
I also run some test servers on Windows. I'd like to run Tornado on
Windows.

~Rhys

On Sep 13, 12:13 am, Ryan Phillips <r...@trolocsis.com> wrote:
> There is a fork up on github which adds support for the twisted event  
> loop,  which is compatible onwindows. I haven't tested the code.
>
> -Ryan
>
> On Sep 12, 2009, at 10:05 PM, "Chris M. Welsh" <stoph...@gmail.com>  
> wrote:
>
>
>
> > It looks like the IO loop stuff is tightly coupled with fcntl at the
> > moment. An alternate implementation that supportsWindowswould be

Emil Stenström

unread,
Oct 27, 2009, 2:15:36 PM10/27/09
to Tornado Web Server
I have two computers, one Mac for work, and one Windows 7 at home.
Problem is, what I do at work and what I do at home keeps overlapping.
I'm guessing there are lots more people with that setup, with would be
helped with some kind of workaround for windows (it's fine that it's a
low-performance hack, I would say few people would expect it to work
in production).
Message has been deleted

Alden Torres

unread,
Oct 28, 2009, 12:40:02 PM10/28/09
to Tornado Web Server
Before getting Tornado ported to IronPython http://ntornado.codeplex.com,
I figure out how to run it in widows with simple examples. You need to
remove a few dependencies (fcntl is one of them) and fix this issue
http://github.com/facebook/tornado/issues/#issue/29. Of course, you
loose all the high performance benefits. I had some problems testing
with IE8 too (FF is ok).
Reply all
Reply to author
Forward
0 new messages