{"action":"created","issue":{"url":"https://api.github.com/repos/evennia/evennia/issues/681","labels_url":"https://api.github.com/repos/evennia/evennia/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/evennia/evennia/issues/681/comments","events_url":"https://api.github.com/repos/evennia/evennia/issues/681/events","html_url":"https://github.com/evennia/evennia/issues/681","id":59423340,"number":681,"title":"Bug: Starting issue on Windows","user":{"login":"Griatch","id":294267,"avatar_url":"https://avatars.githubusercontent.com/u/294267?v=3","gravatar_id":"","url":"https://api.github.com/users/Griatch","html_url":"https://github.com/Griatch","followers_url":"https://api.github.com/users/Griatch/followers","following_url":"https://api.github.com/users/Griatch/following{/other_user}","gists_url":"https://api.github.com/users/Griatch/gists{/gist_id}","starred_url":"https://api.github.com/users/Griatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Griatch/subscriptions","organizations_url":"https://api.github.com/users/Griatch/orgs","repos_url":"https://api.github.com/users/Griatch/repos","events_url":"https://api.github.com/users/Griatch/events{/privacy}","received_events_url":"https://api.github.com/users/Griatch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/evennia/evennia/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-01T23:24:53Z","updated_at":"2015-03-02T11:46:57Z","closed_at":null,"body":"*(copied from mailing list [here](https://groups.google.com/forum/#!msg/evennia/qVGyQiCBJ6s/LbNcd0vDEMIJ))*\r\n\r\nSomething is not working out in Windows.\r\n\r\nI have the usual Python + Virtualenv which worked fine with previous version.\r\n\r\nInstallation all goes fine until I get to `evennia -i start`\r\n\r\nI get a quite long sequence of errors from evennia_runner.py, which culminate with a `WindowsError [2] impossible to find the file` (it's in italian, so I'm translating approximately). But the list also contains references to the normal python installation, so it seems that is not operating within the virtualenv as it should?\r\n\r\nThe bin/windows/evennia.bat doesn't come to aid either, it's something in the python evennia_runner file\r\n\r\nI'll try it all over again, but I did follow instructions to the letter. I even tried different locations for the `evennia --init mygame` comand (which works in any case).\r\n\r\nBelow I've pasted the error's report from CMD shell...\r\n\r\n```bash\r\n(virtualEvennia) D:\\MOOs\\Evennia\\virtualEvennia\\evennia\\mygame>evennia -i start\r\n\r\n0 static files copied to 'D:\\MOOs\\Evennia\\virtualEvennia\\evennia\\mygame\\web\\static', 73 unmodified.\r\n\r\n(virtualEvennia) D:\\MOOs\\Evennia\\virtualEvennia\\evennia\\mygame>\r\nStarting Evennia Server (output to stdout).\r\n\r\n\r\nStarting Evennia Portal in Daemon mode (output to portal logfile).\r\nTraceback (most recent call last):\r\n  File \"d:\\moos\\evennia\\virtualevennia\\evennia\\evennia\\server\\evennia_runner.py\", line 331, in <module>\r\n    main()\r\n  File \"d:\\moos\\evennia\\virtualevennia\\evennia\\evennia\\server\\evennia_runner.py\", line 328, in main\r\n    start_services(server_argv, portal_argv)\r\n  File \"d:\\moos\\evennia\\virtualevennia\\evennia\\evennia\\server\\evennia_runner.py\", line 170, in start_services\r\n    PORTAL = Popen(portal_argv, env=getenv())\r\n  File \"C:\\Python27\\Lib\\subprocess.py\", line 710, in __init__\r\n    errread, errwrite)\r\n  File \"C:\\Python27\\Lib\\subprocess.py\", line 958, in _execute_child\r\n    startupinfo)\r\nWindowsError: [Error 2] Impossibile trovare il file specificato\r\n\r\n(virtualEvennia) D:\\MOOs\\Evennia\\virtualEvennia\\evennia\\mygame>\r\n```"},"comment":{"url":"https://api.github.com/repos/evennia/evennia/issues/comments/76698789","html_url":"https://github.com/evennia/evennia/issues/681#issuecomment-76698789","issue_url":"https://api.github.com/repos/evennia/evennia/issues/681","id":76698789,"user":{"login":"Griatch","id":294267,"avatar_url":"https://avatars.githubusercontent.com/u/294267?v=3","gravatar_id":"","url":"https://api.github.com/users/Griatch","html_url":"https://github.com/Griatch","followers_url":"https://api.github.com/users/Griatch/followers","following_url":"https://api.github.com/users/Griatch/following{/other_user}","gists_url":"https://api.github.com/users/Griatch/gists{/gist_id}","starred_url":"https://api.github.com/users/Griatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Griatch/subscriptions","organizations_url":"https://api.github.com/users/Griatch/orgs","repos_url":"https://api.github.com/users/Griatch/repos","events_url":"https://api.github.com/users/Griatch/events{/privacy}","received_events_url":"https://api.github.com/users/Griatch/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T11:46:57Z","updated_at":"2015-03-02T11:46:57Z","body":"Confirmed, this didn't show up unless doing a fully clean install, maybe there was some lingering variable in the old one that hid the bug. \r\n\r\nIt seems there is an issue with dynamically updating the `PATH` system variable in the `Popen` call under Windows (e.g. [this](http://bugs.python.org/issue8557)); the subprocess does not use changed `PATH` at all, apparently. So we will need to give the absolute path to it instead (dropping it into the game PATH, like @tajmone did works too, but I think it's better to keep the `twistd.bat` file within the evennia package proper). "}}