Addons not loading after Pull Request: #104876 #106840

Closed
opened 2023-04-12 03:21:41 +02:00 by Guido · 7 comments

System Information
Operating system: macOS-13.3.1-x86_64-i386-64bit 64 Bits
Graphics card: Metal API AMD Radeon Pro 5700 XT 1.2

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-11 21:48, hash: 5df8e35da74a
Worked: (newest version of Blender that worked as expected)

Short description of error
-New- 'Script Direcories' Path won't find third party addons

Exact steps for others to reproduce the error
As you can see, studios and I install addons via the preferences option for all staff to have access or run different blender versions with the ONE path for all addons.

Now it's broken and won't load an third party addon, no matter what I tried...

In the video you see the path is the same, but no addons loaded in the latest blender version 3.6 (top), against the former blender 3.6 version (bottom).

**System Information** Operating system: macOS-13.3.1-x86_64-i386-64bit 64 Bits Graphics card: Metal API AMD Radeon Pro 5700 XT 1.2 **Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-11 21:48, hash: `5df8e35da74a` Worked: (newest version of Blender that worked as expected) **Short description of error** -New- 'Script Direcories' Path won't find third party addons **Exact steps for others to reproduce the error** As you can see, studios and I install addons via the preferences option for all staff to have access or run different blender versions with the ONE path for all addons. Now it's broken and won't load an third party addon, no matter what I tried... In the video you see the path is the same, but no addons loaded in the latest blender version 3.6 (top), against the former blender 3.6 version (bottom).
Guido added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-04-12 03:21:42 +02:00
Contributor

Confirmed also in Windows. Import the settings from 3.5 don't solve the issue

Confirmed also in Windows. Import the settings from 3.5 don't solve the issue
Member

Can also confirm

CC @JulianEisel

Can also confirm CC @JulianEisel
Philipp Oeser added
Status
Confirmed
Module
Python API
Priority
High
and removed
Status
Needs Triage
Priority
Normal
labels 2023-04-12 11:11:35 +02:00
Member

Think for one, this needs to be


diff --git a/scripts/startup/bl_ui/space_userpref.py b/scripts/startup/bl_ui/space_userpref.py
index fc4cc0e15b8..531c9283988 100644
--- a/scripts/startup/bl_ui/space_userpref.py
+++ b/scripts/startup/bl_ui/space_userpref.py
@@ -1951,7 +1951,7 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
 
         addon_user_dirs = tuple(
             p for p in (
-                *[os.path.join(pref_p, "addons") for pref_p in bpy.utils.script_path_user()],
+                *[os.path.join(pref_p, "addons") for pref_p in bpy.utils.script_paths_pref()],
                 bpy.utils.user_resource('SCRIPTS', path="addons"),
             )
             if p

and additionally, I dont see the "new" paths being handled in addon_utils.paths() / bpy.utils.script_paths() [still seems to end up fetching BLENDER_USER_SCRIPTS]

Think for one, this needs to be ``` diff --git a/scripts/startup/bl_ui/space_userpref.py b/scripts/startup/bl_ui/space_userpref.py index fc4cc0e15b8..531c9283988 100644 --- a/scripts/startup/bl_ui/space_userpref.py +++ b/scripts/startup/bl_ui/space_userpref.py @@ -1951,7 +1951,7 @@ class USERPREF_PT_addons(AddOnPanel, Panel): addon_user_dirs = tuple( p for p in ( - *[os.path.join(pref_p, "addons") for pref_p in bpy.utils.script_path_user()], + *[os.path.join(pref_p, "addons") for pref_p in bpy.utils.script_paths_pref()], bpy.utils.user_resource('SCRIPTS', path="addons"), ) if p ``` and additionally, I dont see the "new" paths being handled in `addon_utils.paths()` / `bpy.utils.script_paths()` [still seems to end up fetching `BLENDER_USER_SCRIPTS`]
Member
CC @ideasman42
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-04-12 13:02:55 +02:00
Author

Now with each update (new compile each day) it looses the naming.
Means if you have like me renamed it from 'default' to 'preferences' the next time you update it's back to default.

Imagine this scenario when:

  • having 3-4 different script locations with scripts installed
  • under different names
    and then update ...

The path by the way, is saved and stays as is, but the naming won't be saved.

Now with each update (new compile each day) it looses the naming. Means if you have like me renamed it from 'default' to 'preferences' the next time you update it's back to default. Imagine this scenario when: - having 3-4 different script locations with scripts installed - under different names and then update ... The path by the way, is saved and stays as is, but the naming won't be saved.
Guido reopened this issue 2023-04-27 23:13:21 +02:00
Blender Bot added
Status
Needs Triage
and removed
Status
Resolved
labels 2023-04-27 23:13:22 +02:00
Member

@Nurb2Kea : since this (name lost) is quite different from the original issue, could you please open a separate report for this (can reference this report from there)?

This seems cleaner since nobody then needs to go through the previous (now irrelevant) information...

Thx in advance! Will close this one again though.

@Nurb2Kea : since this (name lost) is quite different from the original issue, could you please open a separate report for this (can reference this report from there)? This seems cleaner since nobody then needs to go through the previous (now irrelevant) information... Thx in advance! Will close this one again though.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-04-28 09:19:16 +02:00
Philipp Oeser added
Status
Resolved
and removed
Status
Archived
labels 2023-04-28 09:19:40 +02:00
Author

ported to: #107425

ported to: https://projects.blender.org/blender/blender/issues/107425
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#106840
No description provided.