missing python3.dll on windows #71159

Closed
opened 2019-10-28 13:32:39 +01:00 by Simon Rainerson · 6 comments

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 (9b6aa740be), 2.82 alpha (dd904f6761)

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 pip install --upgrade pip
\2.80\python\bin\python.exe pip install PyQt5```
Open blender, in the console type:

from PyQt5 import QtWidgets

**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 ```

Added subscriber: @sim88

Added subscriber: @sim88

Added subscribers: @ideasman42, @mano-wii

Added subscribers: @ideasman42, @mano-wii

I'm not sure if this problem is really inside Blender
@ideasman42, what do you think?

I'm not sure if this problem is really inside Blender @ideasman42, what do you think?
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Ray molenkamp self-assigned this 2019-10-28 15:33:49 +01:00
Member

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

Seems like that dll is part of core python, if they ship it, so should we.
Ray molenkamp was unassigned by Dalai Felinto 2019-12-23 13:45:35 +01:00
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Ray molenkamp self-assigned this 2020-01-18 20:24:02 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#71159
No description provided.