{"action":"created","issue":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/1005","labels_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1005/labels{/name}","comments_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1005/comments","events_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1005/events","html_url":"https://github.com/benoitc/gunicorn/issues/1005","id":67447064,"number":1005,"title":"Gunicorn can't run in virtualenv on Win7","user":{"login":"DJviolin","id":5021728,"avatar_url":"https://avatars.githubusercontent.com/u/5021728?v=3","gravatar_id":"","url":"https://api.github.com/users/DJviolin","html_url":"https://github.com/DJviolin","followers_url":"https://api.github.com/users/DJviolin/followers","following_url":"https://api.github.com/users/DJviolin/following{/other_user}","gists_url":"https://api.github.com/users/DJviolin/gists{/gist_id}","starred_url":"https://api.github.com/users/DJviolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DJviolin/subscriptions","organizations_url":"https://api.github.com/users/DJviolin/orgs","repos_url":"https://api.github.com/users/DJviolin/repos","events_url":"https://api.github.com/users/DJviolin/events{/privacy}","received_events_url":"https://api.github.com/users/DJviolin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T20:42:55Z","updated_at":"2015-04-09T21:13:41Z","closed_at":null,"body":"I got the following error on Win7 when I try to run the gunicorn server inside virtualenv:\r\n\r\n    $ (myappvenv) C:\\www\\python\\myapp> gunicorn -b 0.0.0.0:8080 wsgi\r\n    Traceback (most recent call last):\r\n    File \"C:\\Python34\\Lib\\runpy.py\", line 170, in _runmoduleasmain\r\n    \"main\", modspec)\r\n    File \"C:\\Python34\\Lib\\runpy.py\", line 85, in _runcode\r\n    exec(code, runglobals)\r\n    File \"C:\\www\\python\\myapp\\myappvenv\\Scripts\\gunicorn.exe_main.py\", line 5, in <module>\r\n    File \"C:\\www\\python\\myapp\\myappvenv\\lib\\site-packages\\gunicorn\\app\\wsgiapp.py\", line 10, in <module>\r\n    from gunicorn.app.base import Application\r\n    File \"C:\\www\\python\\myapp\\myappvenv\\lib\\site-packages\\gunicorn\\app\\base.py\", line 12, in <module>\r\n    from gunicorn import util\r\n    File \"C:\\www\\python\\myapp\\myappvenv\\lib\\site-packages\\gunicorn\\util.py\", line 9, in <module>\r\n    import fcntl\r\n    ImportError: No module named 'fcntl'\r\n\r\nMy wsgi.py file looks like this:\r\n\r\n    def application(env, start_response):\r\n        start_response('200 OK', [('Content-Type', 'text/html')])\r\n        return [\"Hello!\"]\r\n\r\nUsing the wsgi file from the Gunicorn readthedocs site also not helping, throwing the same error:\r\n\r\n    def app(environ, start_response):\r\n        \"\"\"Simplest possible application object\"\"\"\r\n        data = 'Hello, World!\\n'\r\n        status = '200 OK'\r\n        response_headers = [\r\n            ('Content-type','text/plain'),\r\n            ('Content-Length', str(len(data)))\r\n        ]\r\n        start_response(status, response_headers)\r\n        return iter([data])\r\n\r\nPip versions inside virtualenv:\r\n\r\n    $ (my_app_venv) C:\\www\\python\\my_app> pip list\r\n    gunicorn (19.3.0)\r\n    pip (6.1.1)\r\n    setuptools (15.0)\r\n\r\nPip versions globally:\r\n\r\n    $ C:\\www\\python\\my_app> pip list\r\n    pbr (0.10.8)\r\n    pip (6.1.1)\r\n    setuptools (15.0)\r\n    six (1.9.0)\r\n    stevedore (1.3.0)\r\n    virtualenv (12.1.1)\r\n    virtualenv-clone (0.2.5)\r\n    virtualenvwrapper (4.3.2)\r\n\r\nPython version: 3.4.3\r\n"},"comment":{"url":"https://api.github.com/repos/benoitc/gunicorn/issues/comments/91357490","html_url":"https://github.com/benoitc/gunicorn/issues/1005#issuecomment-91357490","issue_url":"https://api.github.com/repos/benoitc/gunicorn/issues/1005","id":91357490,"user":{"login":"berkerpeksag","id":26338,"avatar_url":"https://avatars.githubusercontent.com/u/26338?v=3","gravatar_id":"","url":"https://api.github.com/users/berkerpeksag","html_url":"https://github.com/berkerpeksag","followers_url":"https://api.github.com/users/berkerpeksag/followers","following_url":"https://api.github.com/users/berkerpeksag/following{/other_user}","gists_url":"https://api.github.com/users/berkerpeksag/gists{/gist_id}","starred_url":"https://api.github.com/users/berkerpeksag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkerpeksag/subscriptions","organizations_url":"https://api.github.com/users/berkerpeksag/orgs","repos_url":"https://api.github.com/users/berkerpeksag/repos","events_url":"https://api.github.com/users/berkerpeksag/events{/privacy}","received_events_url":"https://api.github.com/users/berkerpeksag/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T21:13:41Z","updated_at":"2015-04-09T21:13:41Z","body":"Thanks for the report. I'm not a Windows user, but I think Gunicorn does not support Windows yet. See #524."}}