Including native Python header files within the python directory bundled with Blender #128242
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#128242
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Ubuntu 22.04.5 LTS
Graphics card: Nvidia Quadro T500 Mobile
Blender Version
Broken: 4.2.2
Worked: N/A (didn't tested much older versions about that issue)
Short description of error
Hello,
the python folder packaged with Blender is sorely lacking the common Python header files:
My suggestion is that it should also include, well, an
include/
folder such as:This
ìnclude/python3.11/
folder should at least contain the same as the header provider by the apt packagelibpython3.11-dev
in the unix directory/usr/include/python3.11/
:It's currently quite light to include these files:
192 items, totalling 847.2 kB
This is especially useful when one want to install some custom Python packages which needs some C++ libs such as
gdal
for example:And indeed the folder
/home/<username_placeholder>/Downloads/blender-4.2.2-linux-x64/4.2/python/include/python3.11
does not exist after a fresh install of Blender!To this end, the
wheel
package can also be useful, as can thepip
executable in thebin/
folder, which could be a great help because thepip
installed at the OS level is not necessarily plugged with the same Python version as the one embedded in Blender so chance are you will face abad interpreter: No such file or directory
error (plus it will not install pacakges in the Blender site-packages directory) and also Python path in Blender is not aware of Python packages installed at the OS or USER level (which is a good thing).See also: https://github.com/OSGeo/gdal/issues/10877#issuecomment-2377140231
Thanks!
Warm Regards.
Exact steps for others to reproduce the error
Vanilla install from the archive file on the official Blender download page: https://www.blender.org/download/
I don't personally see a point against including those headers. Though on ubuntu they come with two packages
libpython3.11
andlibpython3.11-dev
means that distributed tools probably already should have compiled binaries that you can use out of box instead having everything re-built from scratch.I don't think we previously had reports on blender plugins who install stuff via pip that's encountering this issue. Maybe a good thing too is to have
gdal
mention the requirement on their page.let me poke some python people here.