Importing certain python packages gives Errors/Conflicts #111649
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#111649
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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.3 LTS
Graphics card: GeForce RTX 2080 Ti
Blender Version
Broken: bpy 3.6.0
Worked: none
Short description of error
When in the same file
bpy
and other particular packages (e.g.pyvista
,textual.widgets
) are imported errors are raised at the end of the execution.Exact steps for others to reproduce the error
For example, with
textual.widgets
:This error is raised:
I managed to fixed it:
The output is:
But with
pyvista
This error is raised and my previous fix doesn't work anymore:
Inspecting the bpy code, this is the code for
disable_all
:Changing it fixes this last error but I don't know if it's correct:
I also paste here the
__getattr__
oftextual.widgets
andpyvista
for the sake of completeness:Errors/Conflicts with other packagesto Importing certain python packages gives Errors/ConflictsThank you for bringing this to our attention, @Federico-Domeniconi.
It seems that when importing certain packages like
textual.widgets
andpyvista
, Blender raises some erros when closing.The errors are related to conflicts between these packages and the
addon_utils
module.You also provided some suggested fixes. Note that for code review, you can also submit Pull Requests: https://wiki.blender.org/wiki/Process/Contributing_Code
The development team will review your report and work towards resolving the issue.
I can confirm the problem (I had to
pip install textual
) so I will forward it to thePython API
team.@Federico-Domeniconi If you propose change here, I guess you could have created a pull request. As for correctness I would ask @ideasman42.
@ideasman42 ^