Extension: Error when re-importing extension how have been removed from disk #122615

Open
opened 2024-06-02 01:41:33 +02:00 by Victor Chedeville · 2 comments

System Information
Operating system: Windows 11

Blender Version
Broken: (4.2.0 0d7d6b00c9ec)

Short description of error
When you remove an installed Add-on from the disk by deleting the extension folder (keeping the config one) and try to install it again, it prints this error: Add-on not loaded: "bl_ext.user_default.ContextPie", cause: No module named 'bl_ext.user_default.ContextPie'.

Exact steps for others to reproduce the error

  1. Open Blender and install an extension.
  2. Close Blender and delete the extensions folder.
  3. Open Blender and install the extension again (the error will be printed at this step).
  4. If you don't encounter the error, close Blender and repeat steps 2 and 3.

Additional Info
The error occurs when you try to reinstall an add-on that was previously installed and the preferences have saved this add-on as enabled. When reopening Blender, a "Missing script files" warning will be visible in the preferences (normal as we deleted the add-on on the drive). At this point, the add-on will fail to be reinstalled.

**System Information** Operating system: Windows 11 **Blender Version** Broken: (4.2.0 `0d7d6b00c9ec`) **Short description of error** When you remove an installed Add-on from the disk by deleting the extension folder (keeping the config one) and try to install it again, it prints this error: `Add-on not loaded: "bl_ext.user_default.ContextPie", cause: No module named 'bl_ext.user_default.ContextPie'`. **Exact steps for others to reproduce the error** 1. Open Blender and install an extension. 2. Close Blender and delete the extensions folder. 3. Open Blender and install the extension again (the error will be printed at this step). 4. If you don't encounter the error, close Blender and repeat steps 2 and 3. **Additional Info** The error occurs when you try to reinstall an add-on that was previously installed and the preferences have saved this add-on as enabled. When reopening Blender, a "Missing script files" warning will be visible in the preferences (normal as we deleted the add-on on the drive). At this point, the add-on will fail to be reinstalled.
Victor Chedeville added the
Severity
Normal
Status
Needs Triage
Type
Report
labels 2024-06-02 01:41:33 +02:00
Member

Hummm I can't reproduce this error. Every time I delete and re-installed the plugin, it just works fine. 🤔

Hummm I can't reproduce this error. Every time I delete and re-installed the plugin, it just works fine. 🤔
Member

Hi, I can confirm.
cc @ideasman42 @dfelinto

Hi, I can confirm. cc @ideasman42 @dfelinto
Pratik Borhade added
Module
Python API
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-06-03 08:19:20 +02:00
Dalai Felinto added this to the Python API project 2024-06-03 09:54:17 +02:00
Bart van der Braak added
Type
Bug
and removed
Type
Report
labels 2024-08-14 12:59:55 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
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#122615
No description provided.