{"action":"created","issue":{"url":"https://api.github.com/repos/nilmtk/nilmtk/issues/361","labels_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/361/comments","events_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/361/events","html_url":"https://github.com/nilmtk/nilmtk/issues/361","id":60627313,"number":361,"title":"Nosetests failing on Windows ","user":{"login":"7hibault","id":8068131,"avatar_url":"https://avatars.githubusercontent.com/u/8068131?v=3","gravatar_id":"","url":"https://api.github.com/users/7hibault","html_url":"https://github.com/7hibault","followers_url":"https://api.github.com/users/7hibault/followers","following_url":"https://api.github.com/users/7hibault/following{/other_user}","gists_url":"https://api.github.com/users/7hibault/gists{/gist_id}","starred_url":"https://api.github.com/users/7hibault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7hibault/subscriptions","organizations_url":"https://api.github.com/users/7hibault/orgs","repos_url":"https://api.github.com/users/7hibault/repos","events_url":"https://api.github.com/users/7hibault/events{/privacy}","received_events_url":"https://api.github.com/users/7hibault/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-11T08:52:00Z","updated_at":"2015-05-18T12:49:21Z","closed_at":"2015-03-27T16:21:11Z","body":"Hey,\r\n\r\nI've tried to install nilmtk to try it out but I couldn't even get started because the nosetests failed. I have followed the instructions for Windows on the project front page and got the following error after running the nosetests command:\r\n```\r\nUnlink of file 'data/energy.h5' failed. Should I try again? (y/n)\r\n```\r\nWhen I answer yes, I get that message again and when I answer no, the test fails. Here is the complete output:\r\n\r\n```\r\n..........................................Unlink of file 'data/energy.h5' f\r\nailed. Should I try again? (y/n) y\r\nUnlink of file 'data/energy.h5' failed. Should I try again? (y/n) y\r\nUnlink of file 'data/energy.h5' failed. Should I try again? (y/n) y\r\nUnlink of file 'data/energy.h5' failed. Should I try again? (y/n) n\r\nerror: unable to unlink old 'data/energy.h5' (Permission denied)\r\nE\r\n======================================================================\r\nERROR: test suite for <module 'nilmtk' from 'c:\\Users\\Tib\\Documents\\NILM\\nil\r\nmtk\\nilmtk\\__init__.pyc'>\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"c:\\Users\\Tib\\AppData\\Local\\Continuum\\Anaconda\\lib\\site-packages\\nose\r\n\\suite.py\", line 228, in run\r\n    self.tearDown()\r\n  File \"c:\\Users\\Tib\\AppData\\Local\\Continuum\\Anaconda\\lib\\site-packages\\nose\r\n\\suite.py\", line 351, in tearDown\r\n    self.teardownContext(ancestor)\r\n  File \"c:\\Users\\Tib\\AppData\\Local\\Continuum\\Anaconda\\lib\\site-packages\\nose\r\n\\suite.py\", line 367, in teardownContext\r\n    try_run(context, names)\r\n  File \"c:\\Users\\Tib\\AppData\\Local\\Continuum\\Anaconda\\lib\\site-packages\\nose\r\n\\util.py\", line 470, in try_run\r\n    return func()\r\n  File \"c:\\Users\\Tib\\Documents\\NILM\\nilmtk\\nilmtk\\__init__.py\", line 29, in\r\nteardown_package\r\n    output = subprocess.check_output(cmd, shell=True, cwd=data_dir())\r\n  File \"c:\\Users\\Tib\\AppData\\Local\\Continuum\\Anaconda\\lib\\subprocess.py\", li\r\nne 573, in check_output\r\n    raise CalledProcessError(retcode, cmd, output=output)\r\nCalledProcessError: Command 'git checkout -- c:\\Users\\Tib\\Documents\\NILM\\nil\r\nmtk\\data' returned non-zero exit status 255\r\n\r\n----------------------------------------------------------------------\r\nRan 42 tests in 25.901s\r\n\r\nFAILED (errors=1)\r\nClosing remaining open files:c:\\Users\\Tib\\Documents\\NILM\\nilmtk\\data\\energy.\r\nh5...done\r\n```\r\n\r\nI have checked on the internet what causes git to display this message. It should appear when another process is using the file. Because git bash was the only opened window, I used ProcessExplorer to find out that three processes were using this file: `git.exe`, `cmd.exe` and `python.exe`. Nothing seems wrong then... Is there anyone with the same issue?\r\n\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/nilmtk/nilmtk/issues/comments/103050066","html_url":"https://github.com/nilmtk/nilmtk/issues/361#issuecomment-103050066","issue_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/361","id":103050066,"user":{"login":"bHuquet","id":12496274,"avatar_url":"https://avatars.githubusercontent.com/u/12496274?v=3","gravatar_id":"","url":"https://api.github.com/users/bHuquet","html_url":"https://github.com/bHuquet","followers_url":"https://api.github.com/users/bHuquet/followers","following_url":"https://api.github.com/users/bHuquet/following{/other_user}","gists_url":"https://api.github.com/users/bHuquet/gists{/gist_id}","starred_url":"https://api.github.com/users/bHuquet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bHuquet/subscriptions","organizations_url":"https://api.github.com/users/bHuquet/orgs","repos_url":"https://api.github.com/users/bHuquet/repos","events_url":"https://api.github.com/users/bHuquet/events{/privacy}","received_events_url":"https://api.github.com/users/bHuquet/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T12:49:21Z","updated_at":"2015-05-18T12:49:21Z","body":"Just to let you know: I faced the same problem \"ERROR: test suite for <module 'nilmtk' from 'c:\\Users\\Tib\\Documents\\NILM\\nil\r\nmtk\\nilmtk\\__init__.pyc'>\".\r\nIn my case, commenting the  teardown_package  function did allow the tests to run OK as for 7hibault.\r\n\r\n"}}