Skip to content

Commit

Permalink
Update Knowledge Base doc (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomczak committed Aug 1, 2018
1 parent 5030b89 commit c852685
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions docs/Knowledge-Base.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Knowledge Base

Table of contents:
* [ImportError: DLL load failed (Windows)](#importerror-dll-load-failed-windows)
* [Notifications about new releases / commits](#notifications-about-new-releases--commits)
* [Changes in API after CEF updates](#changes-in-api-after-cef-updates)
* [Differences between Python 2 and Python 3](#differences-between-python-2-and-python-3)
Expand All @@ -20,40 +19,6 @@ Table of contents:
* [Security](#security)


## ImportError: DLL load failed (Windows)

If you get such an error on Windows:
```Text
import cefpython3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python3\lib\site-packages\cefpython3\__init__.py", line 59, in <module>
from . import cefpython_py36 as cefpython
ImportError: DLL load failed: The specified module could not be found.
```

Then most probably this is caused, because you are missing
"msvcp140.dll" dependency (for Python 3.5/3.6/3.7 for example). This
is a dependency for Python C++ extensions (eg. cefpython_py36.pyd
depends on it). For Python 3.5/3.6/3.7 to fix this download
[Visual C++ Redistributable for VS2015](https://www.microsoft.com/en-us/download/details.aspx?id=52685)
(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.

Explanation: 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.

On 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.

Created [Issue #359](../../../issues/359) to track this problem.


## Notifications about new releases / commits

To be notified of new releases subscribe to this [RSS/Atom feed](../../../releases.atom).
Expand Down

0 comments on commit c852685

Please sign in to comment.