Regression: Failed to generate Python API Documentation due to the missing context key. #109340

Closed
opened 2023-06-25 13:51:39 +02:00 by nutti · 3 comments
Member

System Information
Operating system: Ubuntu 22.04
Graphics card: Any

Blender Version
Broken: 9876ff183f
Worked: cd08a55a68

Short description of error
When I try to generate Python API documentation, I got below error.

Error: context key 'grease_pencil' not found in context_type_map

Exact steps for others to reproduce the error
Execute below command.

  • Before executing the below commands, download/build blender with same commit ID (this case 9876ff183f) and saved to ~/blender-bin
git clone https://projects.blender.org/blender/blender.git
cd blender
git checkout 9876ff183f5323b7b15e60441d85b70443b27a33
~/blender-bin/blender --background --factory-startup -noaudio --python-exit-code 1 --python doc/python_api/sphinx_doc_gen.py
**System Information** Operating system: Ubuntu 22.04 Graphics card: Any **Blender Version** Broken: 9876ff183f5323b7b15e60441d85b70443b27a33 Worked: cd08a55a6803d6a2a5f636e5211da5ed715ccf7e **Short description of error** When I try to generate Python API documentation, I got below error. `Error: context key 'grease_pencil' not found in context_type_map` **Exact steps for others to reproduce the error** Execute below command. * Before executing the below commands, download/build blender with same commit ID (this case 9876ff183f5323b7b15e60441d85b70443b27a33) and saved to ~/blender-bin ``` git clone https://projects.blender.org/blender/blender.git cd blender git checkout 9876ff183f5323b7b15e60441d85b70443b27a33 ~/blender-bin/blender --background --factory-startup -noaudio --python-exit-code 1 --python doc/python_api/sphinx_doc_gen.py ```
nutti added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-06-25 13:51:40 +02:00
Iliya Katushenock changed title from Failed to generate Python API Documentation due to the missing context key. to Regression: Failed to generate Python API Documentation due to the missing context key. 2023-06-25 13:53:04 +02:00
Member

hi, thanks for the report. I can confirm
Looks like entry for new grease pencil (GPv3) is missing?

Broken: 9876ff183f Worked: cd08a55a68

I did not find any commit in this range which could affect this. Will bisect.

hi, thanks for the report. I can confirm Looks like entry for new grease pencil (GPv3) is missing? > Broken: `9876ff183f` Worked: `cd08a55a68` I did not find any commit in this range which could affect this. Will bisect.
Pratik Borhade added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-06-26 06:26:33 +02:00
Pratik Borhade self-assigned this 2023-06-26 07:24:24 +02:00
Member

Actually caused by b3f3b41d09

Fix looks straightforward. Will submit PR for it.

Actually caused by b3f3b41d09 Fix looks straightforward. Will submit PR for it.
Pratik Borhade added the
Module
Grease Pencil
label 2023-06-26 07:53:15 +02:00
Member

Fixed by fa5a8b3769, closing.

Fixed by fa5a8b3769aee2ce3621ae1c0ccb8b6afccf058b, closing.
Pratik Borhade added
Status
Resolved
and removed
Status
Confirmed
labels 2023-06-26 11:37:38 +02:00
Blender Bot added
Status
Archived
and removed
Status
Resolved
labels 2023-06-26 11:38:03 +02:00
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
2 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#109340
No description provided.