{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1605","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1605/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1605/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1605/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1605","id":111600627,"number":1605,"title":"the executable created by pyinstall return -1","user":{"login":"HeartUnchange","id":8402502,"avatar_url":"https://avatars.githubusercontent.com/u/8402502?v=3","gravatar_id":"","url":"https://api.github.com/users/HeartUnchange","html_url":"https://github.com/HeartUnchange","followers_url":"https://api.github.com/users/HeartUnchange/followers","following_url":"https://api.github.com/users/HeartUnchange/following{/other_user}","gists_url":"https://api.github.com/users/HeartUnchange/gists{/gist_id}","starred_url":"https://api.github.com/users/HeartUnchange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeartUnchange/subscriptions","organizations_url":"https://api.github.com/users/HeartUnchange/orgs","repos_url":"https://api.github.com/users/HeartUnchange/repos","events_url":"https://api.github.com/users/HeartUnchange/events{/privacy}","received_events_url":"https://api.github.com/users/HeartUnchange/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T11:47:42Z","updated_at":"2015-10-15T13:37:07Z","closed_at":null,"body":"![1](https://cloud.githubusercontent.com/assets/8402502/10512464/1d81a5ac-7373-11e5-8e8a-327c2ab5f5c8.PNG)\r\n\r\nbuild information is here\r\n\r\n    C:\\Users\\zhx>pyinstaller --windowed --onefile  D:\\fuck\\pyqt\\what.py\r\n    55 INFO: PyInstaller: 3.0\r\n    56 INFO: Python: 2.7.10\r\n    58 INFO: Platform: Windows-7-6.1.7601-SP1\r\n    59 INFO: wrote C:\\Users\\zhx\\what.spec\r\n    62 INFO: UPX is not available.\r\n    65 INFO: Extending PYTHONPATH with D:\\fuck\\pyqt\r\n    65 INFO: checking Analysis\r\n    65 INFO: Building Analysis because out00-Analysis.toc is non existent\r\n    65 INFO: Initializing module dependency graph...\r\n    72 INFO: Initializing module graph hooks...\r\n    147 INFO: running Analysis out00-Analysis.toc\r\n    151 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable\r\n      required by e:\\python27\\python.exe\r\n    253 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1\r\n    c8b3b9a1e18e3b_9.0.30729.1_none_8550c6b5d18a9128.manifest\r\n    254 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1\r\n    c8b3b9a1e18e3b_9.0.30729.4148_none_f47e1bd6f6571810.manifest\r\n    256 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1\r\n    c8b3b9a1e18e3b_9.0.30729.4940_none_f47ed0f6f6564d90.manifest\r\n    259 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1\r\n    c8b3b9a1e18e3b_9.0.30729.6161_none_f480bfaef65491a5.manifest\r\n    362 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30\r\n    29.6161_none ...\r\n    362 INFO: Found manifest C:\\Windows\\WinSxS\\Manifests\\x86_microsoft.vc90.crt_1fc\r\n    b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57.manifest\r\n    365 INFO: Searching for file msvcr90.dll\r\n    365 INFO: Found file C:\\Windows\\WinSxS\\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_\r\n    .0.30729.6161_none_50934f2ebcb7eb57\\msvcr90.dll\r\n    366 INFO: Searching for file msvcp90.dll\r\n    368 INFO: Found file C:\\Windows\\WinSxS\\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_\r\n    .0.30729.6161_none_50934f2ebcb7eb57\\msvcp90.dll\r\n    368 INFO: Searching for file msvcm90.dll\r\n    369 INFO: Found file C:\\Windows\\WinSxS\\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_\r\n    .0.30729.6161_none_50934f2ebcb7eb57\\msvcm90.dll\r\n    474 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1\r\n    c8b3b9a1e18e3b_9.0.30729.1_none_8550c6b5d18a9128.manifest\r\n    476 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1\r\n    c8b3b9a1e18e3b_9.0.30729.4148_none_f47e1bd6f6571810.manifest\r\n    479 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1\r\n    c8b3b9a1e18e3b_9.0.30729.4940_none_f47ed0f6f6564d90.manifest\r\n    480 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1\r\n    c8b3b9a1e18e3b_9.0.30729.6161_none_f480bfaef65491a5.manifest\r\n    481 INFO: Adding redirect Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0,\r\n    30729, 6161)\r\n    687 INFO: Analyzing D:\\fuck\\pyqt\\what.py\r\n    707 INFO: Looking for import hooks ...\r\n    713 INFO: Processing hook   hook-PyQt4.py\r\n    717 WARNING: Hidden import 'PyQt4._qt' not found (probably old hook)\r\n    717 INFO: Processing hook   hook-encodings.py\r\n    4578 INFO: Processing hook   hook-PyQt4.QtGui.py\r\n    5019 WARNING: Hidden import 'PyQt4._qt' not found (probably old hook)\r\n    5022 INFO: Processing hook   hook-PyQt4.QtCore.py\r\n    5111 WARNING: Hidden import 'PyQT4._qt' not found (probably old hook)\r\n    5111 INFO: Processing hook   hook-httplib.py\r\n    5125 INFO: Looking for ctypes DLLs\r\n    5134 WARNING: library python%s%s required via ctypes not found\r\n    5154 INFO: Analyzing run-time hooks ...\r\n    5160 INFO: Including run-time hook 'pyi_rth_qt4plugins.py'\r\n    5172 INFO: Looking for dynamic libraries\r\n    15256 INFO: Looking for eggs\r\n    15256 INFO: Using Python library C:\\Windows\\system32\\python27.dll\r\n    15257 INFO: Found binding redirects:\r\n    [BindingRedirect(name=u'Microsoft.VC90.CRT', language=None, arch=u'x86', oldVer\r\n    ion=(9, 0, 21022, 8), newVersion=(9, 0, 30729, 6161), publicKeyToken=u'1fc8b3b9\r\n    1e18e3b')]\r\n    15267 INFO: Warnings written to C:\\Users\\zhx\\build\\what\\warnwhat.txt\r\n    15276 INFO: checking PYZ\r\n    15276 INFO: Building PYZ because out00-PYZ.toc is non existent\r\n    15276 INFO: Building PYZ (ZlibArchive) C:\\Users\\zhx\\build\\what\\out00-PYZ.pyz\r\n    15493 INFO: checking PKG\r\n    15493 INFO: Building PKG because out00-PKG.toc is non existent\r\n    15493 INFO: Building PKG (CArchive) out00-PKG.pkg\r\n    15616 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 3\r\n    729, 6161)\r\n    19174 INFO: Bootloader e:\\python27\\lib\\site-packages\\PyInstaller\\bootloader\\Win\r\n    ows-32bit\\runw.exe\r\n    19175 INFO: checking EXE\r\n    19177 INFO: Building EXE because out00-EXE.toc is non existent\r\n    19177 INFO: Building EXE from out00-EXE.toc\r\n    19181 INFO: Appending archive to EXE C:\\Users\\zhx\\dist\\what.exe\r\n\r\nspec file and toc file have been uploaded to here\r\n\r\nhttps://github.com/HeartUnchange/for_issue/tree/master/pyinstaller/the%20executable%20created%20by%20pyinstall%20return%20-1"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/148388775","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1605#issuecomment-148388775","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1605","id":148388775,"user":{"login":"HeartUnchange","id":8402502,"avatar_url":"https://avatars.githubusercontent.com/u/8402502?v=3","gravatar_id":"","url":"https://api.github.com/users/HeartUnchange","html_url":"https://github.com/HeartUnchange","followers_url":"https://api.github.com/users/HeartUnchange/followers","following_url":"https://api.github.com/users/HeartUnchange/following{/other_user}","gists_url":"https://api.github.com/users/HeartUnchange/gists{/gist_id}","starred_url":"https://api.github.com/users/HeartUnchange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeartUnchange/subscriptions","organizations_url":"https://api.github.com/users/HeartUnchange/orgs","repos_url":"https://api.github.com/users/HeartUnchange/repos","events_url":"https://api.github.com/users/HeartUnchange/events{/privacy}","received_events_url":"https://api.github.com/users/HeartUnchange/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T13:37:06Z","updated_at":"2015-10-15T13:37:06Z","body":"in py-file i write these:\r\n    import sip\r\n    sip.setapi('QVariant', 2)\r\n    sip.setapi('QString', 2)\r\n\r\nand then the executable show the error information:\r\n\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 8, in <module>\r\n    ValueError: API 'QVariant' has already been set to version 1\r\n\r\nI have found :\r\nhttps://github.com/pyinstaller/pyinstaller/wiki/Recipe-PyQt4-API-Version\r\n"}}