{"action":"created","issue":{"url":"https://api.github.com/repos/cloudmatrix/esky/issues/113","labels_url":"https://api.github.com/repos/cloudmatrix/esky/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/cloudmatrix/esky/issues/113/comments","events_url":"https://api.github.com/repos/cloudmatrix/esky/issues/113/events","html_url":"https://github.com/cloudmatrix/esky/issues/113","id":120557688,"number":113,"title":"Patch doesn't apply","user":{"login":"JPFrancoia","id":2399090,"avatar_url":"https://avatars.githubusercontent.com/u/2399090?v=3","gravatar_id":"","url":"https://api.github.com/users/JPFrancoia","html_url":"https://github.com/JPFrancoia","followers_url":"https://api.github.com/users/JPFrancoia/followers","following_url":"https://api.github.com/users/JPFrancoia/following{/other_user}","gists_url":"https://api.github.com/users/JPFrancoia/gists{/gist_id}","starred_url":"https://api.github.com/users/JPFrancoia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JPFrancoia/subscriptions","organizations_url":"https://api.github.com/users/JPFrancoia/orgs","repos_url":"https://api.github.com/users/JPFrancoia/repos","events_url":"https://api.github.com/users/JPFrancoia/events{/privacy}","received_events_url":"https://api.github.com/users/JPFrancoia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-05T14:12:28Z","updated_at":"2015-12-06T16:57:03Z","closed_at":null,"body":"Hi,\r\n\r\nI have a little problem with the patches. When I try to apply a patch, I get this error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/djipey/informatique/python/ChemBrows/updater.py\", line 59, in run\r\n    self.app.auto_update()\r\n  File \"/usr/lib/python3.5/site-packages/esky/__init__.py\", line 626, in auto_update\r\n    self._do_auto_update(version, callback)\r\n  File \"/usr/lib/python3.5/site-packages/esky/__init__.py\", line 674, in _do_auto_update\r\n    self.fetch_version(version, callback)\r\n  File \"/usr/lib/python3.5/site-packages/esky/__init__.py\", line 716, in fetch_version\r\n    loc = self.version_finder.fetch_version(self, version, callback)\r\n  File \"/usr/lib/python3.5/site-packages/esky/finder.py\", line 80, in fetch_version\r\n    for status in self.fetch_version_iter(app,version):\r\n  File \"/usr/lib/python3.5/site-packages/esky/finder.py\", line 230, in fetch_version_iter\r\n    self._prepare_version(app,version,local_path)\r\n  File \"/usr/lib/python3.5/site-packages/esky/finder.py\", line 332, in _prepare_version\r\n    apply_patch(uppath,f)\r\n  File \"/usr/lib/python3.5/site-packages/esky/patch.py\", line 294, in apply_patch\r\n    Patcher(target,stream,**kwds).patch()\r\n  File \"/usr/lib/python3.5/site-packages/esky/patch.py\", line 569, in patch\r\n    getattr(self,\"_do_\" + _COMMANDS[cmd])()\r\nIndexError: list index out of range\r\n```\r\nI started myprogram_1.0, and the patch myprogram_1.1_from1.0.patch is present at http://localhost:8000\r\n\r\nAlso, applying updates from the full zip completely works, either with a local and a remote server.\r\n\r\nEDIT:\r\n\r\nThis is from Linux, using cx_Freeze\r\n"},"comment":{"url":"https://api.github.com/repos/cloudmatrix/esky/issues/comments/162328619","html_url":"https://github.com/cloudmatrix/esky/issues/113#issuecomment-162328619","issue_url":"https://api.github.com/repos/cloudmatrix/esky/issues/113","id":162328619,"user":{"login":"JPFrancoia","id":2399090,"avatar_url":"https://avatars.githubusercontent.com/u/2399090?v=3","gravatar_id":"","url":"https://api.github.com/users/JPFrancoia","html_url":"https://github.com/JPFrancoia","followers_url":"https://api.github.com/users/JPFrancoia/followers","following_url":"https://api.github.com/users/JPFrancoia/following{/other_user}","gists_url":"https://api.github.com/users/JPFrancoia/gists{/gist_id}","starred_url":"https://api.github.com/users/JPFrancoia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JPFrancoia/subscriptions","organizations_url":"https://api.github.com/users/JPFrancoia/orgs","repos_url":"https://api.github.com/users/JPFrancoia/repos","events_url":"https://api.github.com/users/JPFrancoia/events{/privacy}","received_events_url":"https://api.github.com/users/JPFrancoia/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T16:57:03Z","updated_at":"2015-12-06T16:57:03Z","body":"I deleted my local repo, to be sure, and cloned it again. On py3k, the last commit I get is ba822b037ae2b771cd7ae4846f308c85a595810e.\r\n\r\nI don't encounter the import problem anymore, but the tests still fail with the same error:\r\n\r\n```\r\n------------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------------\r\n/usr/lib/python3.5/site-packages/cx_Freeze/freezer.py:590: UserWarning: Duplicate name: 'importlib/__init__.pyc'\r\n  outFile.writestr(zinfo, data)\r\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n================================================================================== 1 failed in 3.16 seconds ==================================================================================\r\n```\r\n\r\n"}}