{"action":"opened","issue":{"url":"https://api.github.com/repos/cztomczak/cefpython/issues/359","repository_url":"https://api.github.com/repos/cztomczak/cefpython","labels_url":"https://api.github.com/repos/cztomczak/cefpython/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/cztomczak/cefpython/issues/359/comments","events_url":"https://api.github.com/repos/cztomczak/cefpython/issues/359/events","html_url":"https://github.com/cztomczak/cefpython/issues/359","id":225257008,"number":359,"title":"CEF Python running on Python 3.5/3.6 requires msvcp140.dll which apparently isn't shipped by Python","user":{"login":"cztomczak","id":1187415,"avatar_url":"https://avatars1.githubusercontent.com/u/1187415?v=3","gravatar_id":"","url":"https://api.github.com/users/cztomczak","html_url":"https://github.com/cztomczak","followers_url":"https://api.github.com/users/cztomczak/followers","following_url":"https://api.github.com/users/cztomczak/following{/other_user}","gists_url":"https://api.github.com/users/cztomczak/gists{/gist_id}","starred_url":"https://api.github.com/users/cztomczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cztomczak/subscriptions","organizations_url":"https://api.github.com/users/cztomczak/orgs","repos_url":"https://api.github.com/users/cztomczak/repos","events_url":"https://api.github.com/users/cztomczak/events{/privacy}","received_events_url":"https://api.github.com/users/cztomczak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-29T13:27:41Z","updated_at":"2017-04-29T13:27:41Z","closed_at":null,"body":"If you get such an error on Windows:\r\n```Text\r\nimport cefpython3\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"C:\\Python3\\lib\\site-packages\\cefpython3\\__init__.py\", line 59, in <module>\r\n    from . import cefpython_py36 as cefpython\r\nImportError: DLL load failed: The specified module could not be found.\r\n```\r\n\r\nThen most probably this is caused, because you are missing \"msvcp140.dll\" dependency (for Python 3 for example). This is a dependency for Python C++ extensions (eg. cefpython_py36.pyd depends on it). For Python 3 to fix this download [Visual C++ Redistributable for VS2015](https://www.microsoft.com/en-us/download/details.aspx?id=48145) (13 MB) - this is just a VC++ redistributable, not a Visual Studio package. For 32-bit download \"vc_redist.x86.exe\" file and for 64-bit download \"vc_redist.x64.exe\" file.\r\n\r\nExplanation: msvcp140.dll is the DLL for the C++ runtime library. This dependency is added by Cython when building CEF Python module. It seems that Python 3.6 only ships \"vcruntime140.dll\" which is the DLL for the C runtime library.\r\n\r\nRant: It would be nice if Guido van Rossum would stop his academic approach to Python development and would not have created Python 3 incompatibility hell. It would also be nice if he shipped msvcp140.dll along with vcruntime140.dll, so that Python 3 supports C++ extensions as well.\r\n\r\nCreated [Issue #359](../../issues/359) to track this problem.\r\n\r\nOn a side note, when using pyinstaller/py2exe tools for freezing application into exe then these tools should automatically detect the msvcp140.dll dependency and ship it with your application.\r\n\r\nThis info is also available in the Knowledge Base document.\r\n\r\n## Possible solutions\r\n\r\n1. Ship the msvcp140.dll along with other CEF and CEF Python binaries"}}
{"actor":{"display_login":"cztomczak"}}