Page MenuHome

missing python3.dll on windows
Closed, ResolvedPublic

Description

System Information
Operating system: Windows 10 Pro version 1903 OS build 18362.418
Graphics card: GeForce GTX 1080 driver version 436.48

Blender Version
Broken: 2.80 official, 2.81 beta (9b6aa740be31), 2.82 alpha (dd904f67614b)

Short description of error
pip install PyQ5 to site packages doesn't work on windows because of missing python dll.

>>> from PyQt5 import QtWidgets
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.

Python modules, in this case PyQt, can be linked against python3.dll instead of a version specific .dll (like python37.dll). This dll is missing in blender. Copying the file from another python installation makes PyQt5 modules import.

Exact steps for others to reproduce the error
In a command prompt, cd to blender. Then:

\2.80\python\bin\python.exe -m ensurepip
\2.80\python\bin\python.exe -m pip install --upgrade pip
\2.80\python\bin\python.exe pip install PyQt5

Open blender, in the console type:

from PyQt5 import QtWidgets

Event Timeline

Seems like that dll is part of core python, if they ship it, so should we.

Germano Cavalcante (mano-wii) lowered the priority of this task from 90 to 50.Oct 30 2019, 2:07 PM
Ray molenkamp (LazyDodo) closed this task as Resolved.Sat, Jan 18, 8:24 PM
Ray molenkamp (LazyDodo) claimed this task.