Error registering add-on's and other bugs with add-ons in 2.79 master (buildbot) #52564

Closed
opened 2017-08-27 17:09:00 +02:00 by Mikhail Rachinskiy · 21 comments

System Information
Windows 10 x64
Renderer: GeForce GTX 860M/PCIe/SSE2

Blender Version
Broken: 2.79.1 b07dcb8
Worked: 2.79 RC2

Short description of error
Register error if two different add-ons have identical class names.
That breaks registration for all of my add-ons.

Exact steps for others to reproduce the error

You should get register error (like below) while running second script, that doesn't happen with 2.78 or 2.79 RC2.

Traceback (most recent call last):
    File "C:\Users\Username\Desktop\user_pref_error.blend\addon_2", line 20, in <module>
    File "C:\Users\Username\Desktop\user_pref_error.blend\addon_2", line 12, in register
RuntimeError: Error: Type identifier 'Object_A' is already in use: 'Object_A(AddonPreferences)'.
**System Information** Windows 10 x64 Renderer: GeForce GTX 860M/PCIe/SSE2 **Blender Version** Broken: 2.79.1 b07dcb8 Worked: 2.79 RC2 **Short description of error** Register error if two different add-ons have identical class names. That breaks registration for all of my add-ons. **Exact steps for others to reproduce the error** - Open attached blend file: [user_pref_error.blend](https://archive.blender.org/developer/F732481/user_pref_error.blend) - Run scripts in both `Text Editor` areas. # You should get register error (like below) while running second script, that doesn't happen with 2.78 or 2.79 RC2. ``` Traceback (most recent call last): File "C:\Users\Username\Desktop\user_pref_error.blend\addon_2", line 20, in <module> File "C:\Users\Username\Desktop\user_pref_error.blend\addon_2", line 12, in register RuntimeError: Error: Type identifier 'Object_A' is already in use: 'Object_A(AddonPreferences)'. ```
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @MikhailRachinskiy

Added subscriber: @MikhailRachinskiy

#52621 was marked as duplicate of this issue

#52621 was marked as duplicate of this issue

#52638 was marked as duplicate of this issue

#52638 was marked as duplicate of this issue

#52595 was marked as duplicate of this issue

#52595 was marked as duplicate of this issue

#52565 was marked as duplicate of this issue

#52565 was marked as duplicate of this issue
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

hi @MikhailRachinskiy
the use of duplicate class names has been restricted, we plan to, after 2.79 release, to address these issues.
please note these issues will not be in 2.79 release but are in nightly builds.
it's good to be aware of this issue, i'm trying to keep addons repo clean for 2.79 release, then come in and fix all the issues in nightly, whilst not polluting addons master with fixes that might be conflicting with release.
not closing the task as we may for future ref.

hi @MikhailRachinskiy the use of duplicate class names has been restricted, we plan to, after 2.79 release, to address these issues. please note these issues will not be in 2.79 release but are in nightly builds. it's good to be aware of this issue, i'm trying to keep addons repo clean for 2.79 release, then come in and fix all the issues in nightly, whilst not polluting addons master with fixes that might be conflicting with release. not closing the task as we may for future ref.
Brendon Murphy changed title from Error registering add-on's with identical class names to Error registering add-on's with identical class names in 2.79 master (buildbot) 2017-08-27 17:20:57 +02:00

Added subscriber: @pauljs75

Added subscriber: @pauljs75

Added subscribers: @CarelGrosmann, @skororu

Added subscribers: @CarelGrosmann, @skororu

Added subscriber: @LeoTreasure

Added subscriber: @LeoTreasure

Added subscribers: @ArievandenBerg, @SteffenD

Added subscribers: @ArievandenBerg, @SteffenD

Added subscriber: @SouvikKarmakar

Added subscriber: @SouvikKarmakar

Hi guys .. having issue when I enable 'Amaranth Toolset' .. any solution here??
Error code :

Traceback (most recent call last):
  File "/home/model01/Desktop/blender-2.79-9134529b9eb-linux-glibc219-x86_64/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/home/model01/Desktop/blender-2.79-9134529b9eb-linux-glibc219-x86_64/2.79/scripts/addons_contrib/amaranth/__init__.py", line 118, in register
    _call_globals("register")
  File "/home/model01/Desktop/blender-2.79-9134529b9eb-linux-glibc219-x86_64/2.79/scripts/addons_contrib/amaranth/__init__.py", line 107, in _call_globals
    getattr(m, attr_name)()
  File "/home/model01/Desktop/blender-2.79-9134529b9eb-linux-glibc219-x86_64/2.79/scripts/addons_contrib/amaranth/animation/motion_paths.py", line 136, in register
    bpy.utils.register_class(AMTH_POSE_OT_paths_clear_all)
ValueError: register_class(...): already registered as a subclass


Hi guys .. having issue when I enable 'Amaranth Toolset' .. any solution here?? Error code : ``` Traceback (most recent call last): File "/home/model01/Desktop/blender-2.79-9134529b9eb-linux-glibc219-x86_64/2.79/scripts/modules/addon_utils.py", line 350, in enable mod.register() File "/home/model01/Desktop/blender-2.79-9134529b9eb-linux-glibc219-x86_64/2.79/scripts/addons_contrib/amaranth/__init__.py", line 118, in register _call_globals("register") File "/home/model01/Desktop/blender-2.79-9134529b9eb-linux-glibc219-x86_64/2.79/scripts/addons_contrib/amaranth/__init__.py", line 107, in _call_globals getattr(m, attr_name)() File "/home/model01/Desktop/blender-2.79-9134529b9eb-linux-glibc219-x86_64/2.79/scripts/addons_contrib/amaranth/animation/motion_paths.py", line 136, in register bpy.utils.register_class(AMTH_POSE_OT_paths_clear_all) ValueError: register_class(...): already registered as a subclass ```

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

@SouvikKarmakar the registration issue in master should be solved. Added a versioning code so it should work with 2.79 release too. Please check the next daily build. Sorry for the wait.

@SouvikKarmakar the registration issue in master should be solved. Added a versioning code so it should work with 2.79 release too. Please check the next daily build. Sorry for the wait.

Added subscriber: @Harvester

Added subscriber: @Harvester

Here on Win10 64bit + Blender 2.79.1 (Hash: a466d7a) 64bit portable the Amaranth Toolset add-on is working fine. Thank you for the fix.

Here on Win10 64bit + Blender 2.79.1 (Hash: a466d7a) 64bit portable the Amaranth Toolset add-on is working fine. Thank you for the fix.

Since there weren't new found register errors for a while lowering the priority to Normal. We'll still keep the task open as things can be broken in the future. Well that is not just a possibility, it's the rule :)

Since there weren't new found register errors for a while lowering the priority to Normal. We'll still keep the task open as things can be broken in the future. Well that is not just a possibility, it's the rule :)

To not open an another task we can keep also note of Broken add-ons from master here, since issues like crashing can lead to problems with registering in specific situations.

To not open an another task we can keep also note of Broken add-ons from master here, since issues like crashing can lead to problems with registering in specific situations.
Vuk Gardašević changed title from Error registering add-on's with identical class names in 2.79 master (buildbot) to Error registering add-on's and other bugs with add-ons in 2.79 master (buildbot) 2018-03-17 21:16:35 +01:00
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Aaron Carlisle self-assigned this 2020-02-12 07:15:25 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
8 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-addons#52564
No description provided.