Page MenuHome

Keymap error when unregistering addons
Closed, ResolvedPublic

Description

System Information
Win8.1 Pro 64bit, GT650M

Blender Version
Broken: 2.72b - 9e96ae (I've tested all official releases since 2.70 upwards, problem persists)
Worked: n/a

Short description of error
Removing a keymap item as explained in the API calls errors at unregistration.
api page: tutorial addon
When unregistring the sample addon, console shows this line twice:
search for unknown operator 'OBJECT_OT_cursor_array', 'OBJECT_OT_cursor_array'

Exact steps for others to reproduce the error

  • Copy the full addon example at the addon Tutorial API page to a .py file
  • install the file as an addon
  • register the addon the user preferences
  • unregister it
  • Blender seems to double check the keymaps and returns errors in the console as keymaps no longer exist...

I've tested various ways of removing keymaps which all resolved in these lines appearing

Event Timeline

Thibaut Bequet (Littleme) raised the priority of this task from to 90.
Thibaut Bequet (Littleme) updated the task description. (Show Details)
Thibaut Bequet (Littleme) edited a custom field.

Fixed (together with another error in this demo addon related to keymaps), will be in master as soon as I get decent web connection!

Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.Oct 26 2014, 10:03 AM

This bug doesn't seem to be resolved in last blender version (2.73 Release Candidate, hash 237fa0a).
Will the fix appear only in the official 2.73 or should the problem already be resolved in this RC ?

@Thibaut Bequet (Littleme) if you have an issue, please make a (complete and valid) new bug report, instead of resurrecting over two-months old closed one…

Also the bug was in the doc (demo code), not in Blender, so please wait for official 2.73 API doc! http://www.blender.org/api/blender_python_api_2_73_2/info_tutorial_addon.html seems up-to-date to me.