sphinx_doc_gen.py causes ValueError: list.remove(x): x not in list #82493
Labels
No Label
Meta
Good First Issue
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 & Devices
Module
Python API
Module
Rendering & Cycles
Module
Sculpt, Paint & Texture
Module
User Interface
Module
VFX & Video
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information 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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#82493
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: Linux
Graphics card: -
Blender Version
Broken: 2.91.0-02677ec4e0fa
Worked: 2.90
Caused by blender/blender@fa566157a5
Short description of error
Running Blender with sphinx_doc_gen.py causes a ValueError: list.remove(x): x not in list
Exact steps for others to reproduce the error
git clone https://git.blender.org/blender.git
cd blender.git && git checkout -b blender-v2.91-release && cd ..
cd blender-2.91.0-02677ec4e0fa-linux64
This worked fine in 2.90.
Added subscriber: @grische
Added subscriber: @ideasman42
@ideasman42 perhaps this is caused by your recent app version changes
Added subscriber: @rjg
This seems to be cause by Cycles not checking if the handler exists it tries to remove (init.py ).
Since
sphinx_doc_gen.py
removes the handler insetup_blender()
, Cycles can't remove it on unregister.Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @lichtwerk
This broke somewhere inbetween blender/blender@0a66436fe5 and blender/blender@b002fdc4bf.
Very much likely is blender/blender@fa566157a5.
Of course we could check if the handler exists, but afaict, we would have to do this for every Addon.
So maybe there is a more general fix to the situation @ideasman42 ?
Added subscriber: @Blendify
This issue was referenced by blender/blender@07db110add
Changed status from 'Confirmed' to: 'Resolved'
@ideasman42 @Blendify Thanks for the quick fix!
I just noticed that Blender 2.83.9 seems to be affected by this issue:
commit 7e39e0a9f62b13e0b3a91df4cf9477a4eaef3dd9
Should I open another bug report for that?
The issue shouldn't affect the output of the API documentation so there is no real need to have it fixed