{"action":"created","issue":{"url":"https://api.github.com/repos/cloudmatrix/esky/issues/94","labels_url":"https://api.github.com/repos/cloudmatrix/esky/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/cloudmatrix/esky/issues/94/comments","events_url":"https://api.github.com/repos/cloudmatrix/esky/issues/94/events","html_url":"https://github.com/cloudmatrix/esky/issues/94","id":113548081,"number":94,"title":"'importlib._bootstrap' has no attribute 'SourceLoader'","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":1,"created_at":"2015-10-27T10:05:59Z","updated_at":"2015-10-27T19:50:23Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to build an app. It was working before (ok, maybe some months ago. Since then, python 3.5 went out).\r\n\r\nI have the following exception:\r\n\r\n```\r\nFile \"/usr/lib/python3.5/site-packages/esky/util.py\", line 578, in compile_to_bytecode\r\n    loader = importlib._bootstrap.SourceLoader()    \r\nAttributeError: module 'importlib._bootstrap' has no attribute 'SourceLoader'\r\n```\r\n\r\nI'm using:\r\nPython 3.5.0\r\nEsky 0.9.9 (latest) from pypi\r\ncx_freeze 4.3.4-2\r\n\r\nAnd I'm on Manjaro (Linux). It seems to be related to #67 somehow, but I'm not really sure. Could you give me a hand please ?\r\n"},"comment":{"url":"https://api.github.com/repos/cloudmatrix/esky/issues/comments/151623122","html_url":"https://github.com/cloudmatrix/esky/issues/94#issuecomment-151623122","issue_url":"https://api.github.com/repos/cloudmatrix/esky/issues/94","id":151623122,"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-10-27T19:50:23Z","updated_at":"2015-10-27T19:50:23Z","body":"Ok, I spent the day on this issue, with the help of others.\r\n\r\nI first monkey-patched esky:\r\nhttp://stackoverflow.com/questions/33365471/importlib-bootstrap-has-no-attribute-sourceloader#\r\n\r\nSome little changes:\r\n```loader = importlib._bootstrap_external.SourceLoader() ```\r\n\r\nWe assumed that esky is not compatible yet with python 3.5.\r\n\r\nOnce this corrected, the build completed, but I got another error when trying to run the exe:\r\n\r\n```\r\nImportError: No module named '_frozen_importlib_external'\r\nFatal Python error: Py_Initialize: importlib install failed\r\n```\r\n\r\nThis one is because cx_Freeze \"can not see an import\":\r\nhttps://bitbucket.org/anthony_tuininga/cx_freeze/issues/156/running-frozen-app-with-python-35-no\r\n\r\nBy applying the patch here:\r\nhttps://bitbucket.org/anthony_tuininga/cx_freeze/pull-requests/83/python-35-compatibility-for-cx_freeze-4x/diff\r\n\r\nI could solve the issue. But as I use scipy in my program, I got one last error:\r\n```\r\nError importing scipy: you cannot import scipy while\r\nbeing in scipy source directory; please exit the scipy source\r\ntree first, and relaunch your python intepreter.\r\n```\r\nI found the solution here:\r\nhttp://stackoverflow.com/questions/32432887/cx-freeze-importerror-no-module-named-scipy\r\n\r\nBy patching cx_Freeze again, I finally got my program running.\r\n\r\nI let this here for posterity, or in case someone runs into the same problems."}}