{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1609","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1609/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1609/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1609/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1609","id":111877520,"number":1609,"title":"\"Looking for ctypes DLLs \" failed","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":[{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/need%20info","name":"need info","color":"c7def8"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/PY2","name":"PY2","color":"fef2c0"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/support","name":"support","color":"009800"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/v3.0","name":"v3.0","color":"ededed"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/Windows","name":"Windows","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-16T17:41:03Z","updated_at":"2015-10-19T15:12:40Z","closed_at":null,"body":"i have a problem again,I build py file which use ctypes and pyqt4 modules.but it failed,the error information is here:\r\n\r\n    D:\\fuck\\bp>pyinstaller --onefile bp.py\r\n    55 INFO: PyInstaller: 3.0\r\n    55 INFO: Python: 2.7.10\r\n    57 INFO: Platform: Windows-7-6.1.7601-SP1\r\n    58 INFO: wrote D:\\fuck\\bp\\bp.spec\r\n    60 INFO: UPX is not available.\r\n    61 INFO: Extending PYTHONPATH with D:\\fuck\\bp\r\n    61 INFO: checking Analysis\r\n    193 INFO: Building because D:\\fuck\\bp\\bp.py changed\r\n    194 INFO: Initializing module dependency graph...\r\n    198 INFO: Initializing module graph hooks...\r\n    253 INFO: running Analysis out00-Analysis.toc\r\n    257 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable\r\n      required by e:\\python27\\python.exe\r\n    354 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1f\r\n    c8b3b9a1e18e3b_9.0.30729.1_none_8550c6b5d18a9128.manifest\r\n    355 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1f\r\n    c8b3b9a1e18e3b_9.0.30729.4148_none_f47e1bd6f6571810.manifest\r\n    356 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1f\r\n    c8b3b9a1e18e3b_9.0.30729.4940_none_f47ed0f6f6564d90.manifest\r\n    357 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1f\r\n    c8b3b9a1e18e3b_9.0.30729.6161_none_f480bfaef65491a5.manifest\r\n    460 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.307\r\n    29.6161_none ...\r\n    460 INFO: Found manifest C:\\Windows\\WinSxS\\Manifests\\x86_microsoft.vc90.crt_1fc8\r\n    b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57.manifest\r\n    462 INFO: Searching for file msvcr90.dll\r\n    462 INFO: Found file C:\\Windows\\WinSxS\\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9\r\n    .0.30729.6161_none_50934f2ebcb7eb57\\msvcr90.dll\r\n    463 INFO: Searching for file msvcp90.dll\r\n    463 INFO: Found file C:\\Windows\\WinSxS\\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9\r\n    .0.30729.6161_none_50934f2ebcb7eb57\\msvcp90.dll\r\n    463 INFO: Searching for file msvcm90.dll\r\n    465 INFO: Found file C:\\Windows\\WinSxS\\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9\r\n    .0.30729.6161_none_50934f2ebcb7eb57\\msvcm90.dll\r\n    568 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1f\r\n    c8b3b9a1e18e3b_9.0.30729.1_none_8550c6b5d18a9128.manifest\r\n    570 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1f\r\n    c8b3b9a1e18e3b_9.0.30729.4148_none_f47e1bd6f6571810.manifest\r\n    572 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1f\r\n    c8b3b9a1e18e3b_9.0.30729.4940_none_f47ed0f6f6564d90.manifest\r\n    573 INFO: Found C:\\Windows\\WinSxS\\Manifests\\x86_policy.9.0.microsoft.vc90.crt_1f\r\n    c8b3b9a1e18e3b_9.0.30729.6161_none_f480bfaef65491a5.manifest\r\n    574 INFO: Adding redirect Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0,\r\n    30729, 6161)\r\n    764 INFO: Analyzing D:\\fuck\\bp\\bp.py\r\n    5022 INFO: Processing pre-find module path hook   distutils\r\n    9170 INFO: Processing pre-find module path hook   site\r\n    9185 INFO: site: retargeting to fake-dir 'e:\\\\python27\\\\lib\\\\site-packages\\\\PyIn\r\n    staller\\\\fake-modules'\r\n    12445 INFO: Looking for import hooks ...\r\n    12451 INFO: Processing hook   hook-distutils.py\r\n    12479 INFO: Processing hook   hook-sysconfig.py\r\n    12480 INFO: Processing hook   hook-xml.py\r\n    12667 INFO: Processing hook   hook-win32com.client.py\r\n    12667 INFO: Processing hook   hook-httplib.py\r\n    12669 INFO: Processing hook   hook-pydoc.py\r\n    12671 INFO: Excluding import 'Tkinter'\r\n    12671 INFO: Processing hook   hook-PyQt4.py\r\n    12674 WARNING: Hidden import 'PyQt4._qt' not found (probably old hook)\r\n    12674 INFO: Processing hook   hook-encodings.py\r\n    13208 INFO: Processing hook   hook-_tkinter.py\r\n    13676 INFO: checking Tree\r\n    13916 INFO: checking Tree\r\n    14021 INFO: Processing hook   hook-PyQt4.QtGui.py\r\n    15458 WARNING: Hidden import 'PyQt4._qt' not found (probably old hook)\r\n    15459 INFO: Processing hook   hook-pywintypes.py\r\n    15754 INFO: Processing hook   hook-setuptools.py\r\n    15756 INFO: Processing hook   hook-xml.sax.py\r\n    15774 INFO: Processing hook   hook-PyQt4.QtCore.py\r\n    15865 WARNING: Hidden import 'PyQT4._qt' not found (probably old hook)\r\n    15866 INFO: Processing hook   hook-win32com.py\r\n    16072 INFO: Processing hook   hook-pythoncom.py\r\n    16413 INFO: Looking for ctypes DLLs\r\n    Traceback (most recent call last):\r\n      File \"E:\\python27\\Scripts\\pyinstaller-script.py\", line 9, in <module>\r\n        load_entry_point('PyInstaller==3.0', 'console_scripts', 'pyinstaller')()\r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\__main__.py\", line 99, in run\r\n        run_build(opts, spec_file, pyi_config)\r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\__main__.py\", line 47, in run_\r\n    build\r\n        PyInstaller.building.build_main.main(pyi_config, spec_file, **opts.__dict__)\r\n    \r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\building\\build_main.py\", line\r\n    737, in main\r\n        build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'\r\n    ))\r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\building\\build_main.py\", line\r\n    680, in build\r\n        exec(text, spec_namespace)\r\n      File \"<string>\", line 16, in <module>\r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\building\\build_main.py\", line\r\n    207, in __init__\r\n        self.__postinit__()\r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\building\\datastruct.py\", line\r\n    156, in __postinit__\r\n        self.assemble()\r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\building\\build_main.py\", line\r\n    468, in assemble\r\n        ctypes_binaries, ctypes_warnings = scan_code_for_ctypes(co)\r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\depend\\utils.py\", line 164, in\r\n     scan_code_for_ctypes\r\n        nested_binaries, nested_warnings = scan_code_for_ctypes(c)\r\n      File \"e:\\python27\\lib\\site-packages\\PyInstaller\\depend\\utils.py\", line 181, in\r\n     scan_code_for_ctypes\r\n        elif binary != os.path.basename(binary):\r\n      File \"e:\\python27\\lib\\ntpath.py\", line 208, in basename\r\n        return split(p)[1]\r\n      File \"e:\\python27\\lib\\ntpath.py\", line 180, in split\r\n        d, p = splitdrive(p)\r\n      File \"e:\\python27\\lib\\ntpath.py\", line 116, in splitdrive\r\n        normp = p.replace(altsep, sep)\r\n    AttributeError: 'tuple' object has no attribute 'replace'\r\n\r\nthe py,spec and toc file have been uploade to here,\r\nhttps://github.com/HeartUnchange/for_issue/tree/master/pyinstaller/bp\r\n"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/149244407","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1609#issuecomment-149244407","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1609","id":149244407,"user":{"login":"htgoebel","id":784161,"avatar_url":"https://avatars.githubusercontent.com/u/784161?v=3","gravatar_id":"","url":"https://api.github.com/users/htgoebel","html_url":"https://github.com/htgoebel","followers_url":"https://api.github.com/users/htgoebel/followers","following_url":"https://api.github.com/users/htgoebel/following{/other_user}","gists_url":"https://api.github.com/users/htgoebel/gists{/gist_id}","starred_url":"https://api.github.com/users/htgoebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htgoebel/subscriptions","organizations_url":"https://api.github.com/users/htgoebel/orgs","repos_url":"https://api.github.com/users/htgoebel/repos","events_url":"https://api.github.com/users/htgoebel/events{/privacy}","received_events_url":"https://api.github.com/users/htgoebel/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T15:12:40Z","updated_at":"2015-10-19T15:12:40Z","body":"So please provide a **minimal** example showing this issue. The stuff at https://github.com/HeartUnchange/for_issue/tree/master/pyinstaller/bp is much to long to spot the problem area."}}