{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1685","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1685/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1685/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1685/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1685","id":118125442,"number":1685,"title":"ctypes - loading external DLL (not bundled) fails","user":{"login":"tgc-dk","id":1773050,"avatar_url":"https://avatars.githubusercontent.com/u/1773050?v=3","gravatar_id":"","url":"https://api.github.com/users/tgc-dk","html_url":"https://github.com/tgc-dk","followers_url":"https://api.github.com/users/tgc-dk/followers","following_url":"https://api.github.com/users/tgc-dk/following{/other_user}","gists_url":"https://api.github.com/users/tgc-dk/gists{/gist_id}","starred_url":"https://api.github.com/users/tgc-dk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgc-dk/subscriptions","organizations_url":"https://api.github.com/users/tgc-dk/orgs","repos_url":"https://api.github.com/users/tgc-dk/repos","events_url":"https://api.github.com/users/tgc-dk/events{/privacy}","received_events_url":"https://api.github.com/users/tgc-dk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/support","name":"support","color":"009800"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/Windows","name":"Windows","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"matysek","id":527280,"avatar_url":"https://avatars.githubusercontent.com/u/527280?v=3","gravatar_id":"","url":"https://api.github.com/users/matysek","html_url":"https://github.com/matysek","followers_url":"https://api.github.com/users/matysek/followers","following_url":"https://api.github.com/users/matysek/following{/other_user}","gists_url":"https://api.github.com/users/matysek/gists{/gist_id}","starred_url":"https://api.github.com/users/matysek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matysek/subscriptions","organizations_url":"https://api.github.com/users/matysek/orgs","repos_url":"https://api.github.com/users/matysek/repos","events_url":"https://api.github.com/users/matysek/events{/privacy}","received_events_url":"https://api.github.com/users/matysek/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/milestones/11","html_url":"https://github.com/pyinstaller/pyinstaller/milestones/PyInstaller%203.1","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/milestones/11/labels","id":1290827,"number":11,"title":"PyInstaller 3.1","description":"* close all feature- and enhancement-requests known at the time 3.0 was released\r\n* clean up the code base (which seams to be necessary after integrating modulegraph)\r\n* update manual and explain better how !PyInstaller works internally.","creator":{"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},"open_issues":94,"closed_issues":81,"state":"open","created_at":"2015-09-04T16:32:45Z","updated_at":"2015-11-29T19:45:48Z","due_on":"2015-12-30T23:00:00Z","closed_at":null},"comments":4,"created_at":"2015-11-20T21:04:03Z","updated_at":"2015-11-29T19:45:48Z","closed_at":"2015-11-29T19:45:48Z","body":"This is somewhat related to #1620 and #1609. The issue here is actually described here: https://github.com/pyinstaller/pyinstaller/issues/1609#issuecomment-149352392 but it was not the main issue in #1620, so it wasen't really addressed.\r\n\r\nWhen trying to use vlc python bindings: https://wiki.videolan.org/PythonBinding/\r\nThe dll is not bundled.\r\n\r\nWhen running from source: c:\\python34\\python.exe vlc.py\r\n\r\n    Usage: vlc.py <movie_filename>\r\n    Once launched, type ? for help.\r\n    \r\n    Build date: Wed Jun 25 13:46:01 2014 (0x0)\r\n    LibVLC version: 2.2.1 Terry Pratchett (Weatherwax) (0x2020100)\r\n    LibVLC compiler: gcc version 4.9.1 (GCC)\r\n    Plugin path: C:\\Program Files (x86)\\VideoLAN\\VLC\r\n\r\nWhen running as frozen\r\n\r\n    LOADER: extracted pyimod01_os_path\r\n    LOADER: callfunction returned...\r\n    LOADER: extracted pyimod02_archive\r\n    LOADER: callfunction returned...\r\n    LOADER: extracted pyimod03_importers\r\n    LOADER: callfunction returned...\r\n    LOADER: Installing PYZ archive with Python modules.\r\n    LOADER: PYZ archive: out00-PYZ.pyz\r\n    LOADER: Running pyiboot01_bootstrap.py\r\n    LOADER: Running vlc.py\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 167, in <module>\r\n      File \"<string>\", line 140, in find_lib\r\n      File \"<string>\", line 124, in __init__\r\n      File \"C:\\python34\\lib\\ctypes\\__init__.py\", line 351, in __init__\r\n        self._handle = _dlopen(self._name, mode)\r\n    OSError: [WinError 126] Module not found\r\n    vlc returned -1\r\n    LOADER: OK.\r\n    LOADER: Cleaning up Python interpreter.\r\n\r\nThe issue can be worked around by adding this to vlc.py:\r\n\r\n     ctypes.windll.kernel32.SetDllDirectoryW(None)\r\n"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/160460113","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1685#issuecomment-160460113","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1685","id":160460113,"user":{"login":"matysek","id":527280,"avatar_url":"https://avatars.githubusercontent.com/u/527280?v=3","gravatar_id":"","url":"https://api.github.com/users/matysek","html_url":"https://github.com/matysek","followers_url":"https://api.github.com/users/matysek/followers","following_url":"https://api.github.com/users/matysek/following{/other_user}","gists_url":"https://api.github.com/users/matysek/gists{/gist_id}","starred_url":"https://api.github.com/users/matysek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matysek/subscriptions","organizations_url":"https://api.github.com/users/matysek/orgs","repos_url":"https://api.github.com/users/matysek/repos","events_url":"https://api.github.com/users/matysek/events{/privacy}","received_events_url":"https://api.github.com/users/matysek/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T19:45:48Z","updated_at":"2015-11-29T19:45:48Z","body":"I created this recipe https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Win-Load-External-DLL - closing."}}