{"action":"created","issue":{"url":"https://api.github.com/repos/anthony-tuininga/cx_Freeze/issues/254","repository_url":"https://api.github.com/repos/anthony-tuininga/cx_Freeze","labels_url":"https://api.github.com/repos/anthony-tuininga/cx_Freeze/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/anthony-tuininga/cx_Freeze/issues/254/comments","events_url":"https://api.github.com/repos/anthony-tuininga/cx_Freeze/issues/254/events","html_url":"https://github.com/anthony-tuininga/cx_Freeze/issues/254","id":217829126,"number":254,"title":"cx_freeze 5.0.1 and python 3.6.1 - bug at freezing","user":{"login":"Nutznieser","id":24735031,"avatar_url":"https://avatars0.githubusercontent.com/u/24735031?v=3","gravatar_id":"","url":"https://api.github.com/users/Nutznieser","html_url":"https://github.com/Nutznieser","followers_url":"https://api.github.com/users/Nutznieser/followers","following_url":"https://api.github.com/users/Nutznieser/following{/other_user}","gists_url":"https://api.github.com/users/Nutznieser/gists{/gist_id}","starred_url":"https://api.github.com/users/Nutznieser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nutznieser/subscriptions","organizations_url":"https://api.github.com/users/Nutznieser/orgs","repos_url":"https://api.github.com/users/Nutznieser/repos","events_url":"https://api.github.com/users/Nutznieser/events{/privacy}","received_events_url":"https://api.github.com/users/Nutznieser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-29T10:17:09Z","updated_at":"2017-03-30T01:26:02Z","closed_at":null,"body":"I got a bug at the freezing my app. It appears if the code is trying to get a value from the list `arguments`, but the list is still empty.\r\n\r\nReplace the line 561 in finder.py ...\r\n`fromList, = arguments`\r\n\r\nwith ...\r\n`fromList = arguments[0] if arguments else []`\r\n\r\ndoes fix the bug for me.\r\n\r\n```\r\nrunning build_exe\r\nTraceback (most recent call last):\r\n  File \"setup_cx.py\", line 85, in <module>\r\n    executables = [executable_1],\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\dist.py\", line 349, in setup\r\n    distutils.core.setup(**attrs)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\distutils\\core.py\", line 148, in setup\r\n    dist.run_commands()\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\distutils\\dist.py\", line 955, in run_commands\r\n    self.run_command(cmd)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\distutils\\dist.py\", line 974, in run_command\r\n    cmd_obj.run()\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\dist.py\", line 219, in run\r\n    freezer.Freeze()\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\freezer.py\", line 623, in Freeze\r\n    self._FreezeExecutable(executable)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\freezer.py\", line 199, in _FreezeExecutable\r\n    finder.IncludeFile(exe.script, exe.moduleName)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 633, in IncludeFile\r\n    deferredImports)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 474, in _LoadModule\r\n    self._ScanCode(module.code, module, deferredImports)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 564, in _ScanCode\r\n    module, relativeImportIndex)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 310, in _ImportModule\r\n    deferredImports, namespace = namespace)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 403, in _InternalImportModule\r\n    parentModule, namespace)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 474, in _LoadModule\r\n    self._ScanCode(module.code, module, deferredImports)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 564, in _ScanCode\r\n    module, relativeImportIndex)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 310, in _ImportModule\r\n    deferredImports, namespace = namespace)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 403, in _InternalImportModule\r\n    parentModule, namespace)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 416, in _LoadModule\r\n    namespace)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 485, in _LoadPackage\r\n    self._LoadModule(name, fp, path, info, deferredImports, parent)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 474, in _LoadModule\r\n    self._ScanCode(module.code, module, deferredImports)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 564, in _ScanCode\r\n    module, relativeImportIndex)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 345, in _ImportModule\r\n    deferredImports, namespace = namespace)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 403, in _InternalImportModule\r\n    parentModule, namespace)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 474, in _LoadModule\r\n    self._ScanCode(module.code, module, deferredImports)\r\n  File \"C:\\Users\\hh16534\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\cx_Freeze\\finder.py\", line 561, in _ScanCode\r\n    fromList, = arguments\r\nValueError: not enough values to unpack (expected 1, got 0)\r\n```"},"comment":{"url":"https://api.github.com/repos/anthony-tuininga/cx_Freeze/issues/comments/290274667","html_url":"https://github.com/anthony-tuininga/cx_Freeze/issues/254#issuecomment-290274667","issue_url":"https://api.github.com/repos/anthony-tuininga/cx_Freeze/issues/254","id":290274667,"user":{"login":"jekoie","id":6836400,"avatar_url":"https://avatars2.githubusercontent.com/u/6836400?v=3","gravatar_id":"","url":"https://api.github.com/users/jekoie","html_url":"https://github.com/jekoie","followers_url":"https://api.github.com/users/jekoie/followers","following_url":"https://api.github.com/users/jekoie/following{/other_user}","gists_url":"https://api.github.com/users/jekoie/gists{/gist_id}","starred_url":"https://api.github.com/users/jekoie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jekoie/subscriptions","organizations_url":"https://api.github.com/users/jekoie/orgs","repos_url":"https://api.github.com/users/jekoie/repos","events_url":"https://api.github.com/users/jekoie/events{/privacy}","received_events_url":"https://api.github.com/users/jekoie/received_events","type":"User","site_admin":false},"created_at":"2017-03-30T01:26:02Z","updated_at":"2017-03-30T01:26:02Z","body":"I had try, and it's ok, good."}}
{"actor":{"display_login":"jekoie"}}