ValueError: WorkSpaceTool.setup(): error with keyword argument "options" - : 'REGISTER' not found in ('KEYMAP_FALLBACK') #98109

Closed
opened 2022-05-14 04:38:21 +02:00 by liyiyi · 7 comments

macOS m1
Python: Traceback (most recent call last):

File "/Applications/Blender.app/Contents/Resources/3.1/scripts/startup/bl_operators/wm.py", line 2119, in execute
  if fn(context, space_type, self.name, as_fallback=self.as_fallback):
File "/Applications/Blender.app/Contents/Resources/3.1/scripts/startup/bl_ui/space_toolsystem_common.py", line 1088, in activate_by_id
  _activate_by_item(context, space_type, item, index, as_fallback=as_fallback)
File "/Applications/Blender.app/Contents/Resources/3.1/scripts/startup/bl_ui/space_toolsystem_common.py", line 1037, in _activate_by_item
  tool.setup(

ValueError: WorkSpaceTool.setup(): error with keyword argument "options" - : 'REGISTER' not found in ('KEYMAP_FALLBACK')

location: :-1

macOS m1 Python: Traceback (most recent call last): ``` File "/Applications/Blender.app/Contents/Resources/3.1/scripts/startup/bl_operators/wm.py", line 2119, in execute if fn(context, space_type, self.name, as_fallback=self.as_fallback): File "/Applications/Blender.app/Contents/Resources/3.1/scripts/startup/bl_ui/space_toolsystem_common.py", line 1088, in activate_by_id _activate_by_item(context, space_type, item, index, as_fallback=as_fallback) File "/Applications/Blender.app/Contents/Resources/3.1/scripts/startup/bl_ui/space_toolsystem_common.py", line 1037, in _activate_by_item tool.setup( ``` ValueError: WorkSpaceTool.setup(): error with keyword argument "options" - : 'REGISTER' not found in ('KEYMAP_FALLBACK') location: <unknown location>:-1
Author

Added subscriber: @cvtutu

Added subscriber: @cvtutu
Author

import bpy

class OBJECT_MT_OpenCVPanel(bpy.types.WorkSpaceTool):

  """Creates a Panel in the Object properties window"""
  bl_label = "OpenCV Animation"
  bl_space_type = 'VIEW_3D'
  bl_context_mode = 'OBJECT'
  bl_idname = "ui_plus.opencv"
  bl_options = {'REGISTER'}
  bl_icon = "ops.generic.select_circle"
  def draw_settings(context, layout, tool):
      row = layout.row()
      op = row.operator("wm.opencv_operator", text="Capture", icon="OUTLINER_OB_CAMERA")

def register():

  bpy.utils.register_tool(OBJECT_MT_OpenCVPanel, separator=True, group=True)

def unregister():

  bpy.utils.unregister_tool(OBJECT_MT_OpenCVPanel)

if name == "main":

  register()
import bpy class OBJECT_MT_OpenCVPanel(bpy.types.WorkSpaceTool): ``` """Creates a Panel in the Object properties window""" bl_label = "OpenCV Animation" bl_space_type = 'VIEW_3D' bl_context_mode = 'OBJECT' bl_idname = "ui_plus.opencv" bl_options = {'REGISTER'} bl_icon = "ops.generic.select_circle" ``` ``` def draw_settings(context, layout, tool): row = layout.row() op = row.operator("wm.opencv_operator", text="Capture", icon="OUTLINER_OB_CAMERA") ``` def register(): ``` bpy.utils.register_tool(OBJECT_MT_OpenCVPanel, separator=True, group=True) ``` def unregister(): ``` bpy.utils.unregister_tool(OBJECT_MT_OpenCVPanel) ``` if __name__ == "__main__": ``` register()

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'

Thank you for your report. Unfortunately, it does not contain the requested information that we need to investigate the issue. Please read this guide , it may help you write a bug report that allows us to identify the cause of the problem.

If you need help developing a Blender add-on, please post a question on one of our [community websites ]], for instance https:*blender.stackexchange.com/ , https:*blenderartists.org/ or the [ https:*blender.chat/channel/python | #python channel on Blender chat . The bug tracker is only for bug reports.

In case you believe that you've found a bug, please create a new bug report through Help > Report a Bug in Blender. We expect all bug reports to follow the submission template . Please provide system information (operating system, GPU, graphics driver version), affected Blender version, previous Blender version that worked properly, a short and precise description of the issue, step by step instructions to reproduce it and, if relevant, a minimal .blend file that showcases the problem.

Thank you for your report. Unfortunately, it does not contain the requested information that we need to investigate the issue. Please read [this guide ](https://wiki.blender.org/wiki/User:Rjg/HowToBugReport), it may help you write a bug report that allows us to identify the cause of the problem. If you need help developing a Blender add-on, please post a question on one of our [community websites ]], for instance [[ https:*blender.stackexchange.com/ | Blender's Stack Exchange ]], [[ https:*blenderartists.org/ | blenderartists.org ]] or the [[ https:*blender.chat/channel/python | #python channel on Blender chat ](https:*www.blender.org/community/). The bug tracker is only for bug reports. In case you believe that you've found a bug, please create a new bug report through *Help > Report a Bug* in Blender. We expect all bug reports to follow the [submission template ](https://developer.blender.org/maniphest/task/edit/form/1/). Please provide **system information** (operating system, GPU, graphics driver version), **affected Blender version**, previous **Blender version that worked properly**, a **short and precise description of the issue**, step by step **instructions to reproduce it** and, if relevant, **a minimal .blend file that showcases the problem**.

Added subscriber: @czari

Added subscriber: @czari

Hey, I've same issue and cant find any solution? Did you solve it?

Hey, I've same issue and cant find any solution? Did you solve it?
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#98109
No description provided.