Curve Tools: Syntax error #50362

Closed
opened 2017-01-03 00:19:00 +01:00 by Aaron Carlisle · 8 comments
Member

System Information
Windows 10
AMD

Blender Version
Broken: 2.78.4

Short description of error

C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\CurveIntersections.py:536: SyntaxWarning: name 'algoDIR' is assigned to before global declaration
  global algoDIR
C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\CurveIntersections.py:542: SyntaxWarning: name 'algoPOV' is assigned to before global declaration
  global algoPOV
version 3 imported

on disabling:

Exception in module unregister(): 'C:\\Users\\Aaron\\Downloads\\blender-2.78-2e15618-win64-vc14\\blender-2.78.0-git.2e15618-windows64\\2.78\\scripts\\addons_contrib\\curve_tools\\__init__.py'
Traceback (most recent call last):
  File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\modules\addon_utils.py", line 397, in disable
    mod.unregister()
  File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\__init__.py", line 364, in unregister
    add_curve_simple.unregister()
  File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\add_curve_simple.py", line 1597, in unregister
    bpy.utils.unregister_class(Simple)
RuntimeError: unregister_class(...):, missing bl_rna attribute from 'OrderedMeta' instance (may not be registered)

Error: Traceback (most recent call last):
  File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\modules\addon_utils.py", line 397, in disable
    mod.unregister()
  File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\__init__.py", line 364, in unregister
    add_curve_simple.unregister()
  File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\add_curve_simple.py", line 1597, in unregister
    bpy.utils.unregister_class(Simple)
RuntimeError: unregister_class(...):, missing bl_rna attribute from 'OrderedMeta' instance (may not be registered)

Exact steps for others to reproduce the error
Enable the Curve Tools add-on

**System Information** Windows 10 AMD **Blender Version** Broken: 2.78.4 **Short description of error** ``` C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\CurveIntersections.py:536: SyntaxWarning: name 'algoDIR' is assigned to before global declaration global algoDIR C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\CurveIntersections.py:542: SyntaxWarning: name 'algoPOV' is assigned to before global declaration global algoPOV version 3 imported ``` on disabling: ``` Exception in module unregister(): 'C:\\Users\\Aaron\\Downloads\\blender-2.78-2e15618-win64-vc14\\blender-2.78.0-git.2e15618-windows64\\2.78\\scripts\\addons_contrib\\curve_tools\\__init__.py' Traceback (most recent call last): File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\modules\addon_utils.py", line 397, in disable mod.unregister() File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\__init__.py", line 364, in unregister add_curve_simple.unregister() File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\add_curve_simple.py", line 1597, in unregister bpy.utils.unregister_class(Simple) RuntimeError: unregister_class(...):, missing bl_rna attribute from 'OrderedMeta' instance (may not be registered) Error: Traceback (most recent call last): File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\modules\addon_utils.py", line 397, in disable mod.unregister() File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\__init__.py", line 364, in unregister add_curve_simple.unregister() File "C:\Users\Aaron\Downloads\blender-2.78-2e15618-win64-vc14\blender-2.78.0-git.2e15618-windows64\2.78\scripts\addons_contrib\curve_tools\add_curve_simple.py", line 1597, in unregister bpy.utils.unregister_class(Simple) RuntimeError: unregister_class(...):, missing bl_rna attribute from 'OrderedMeta' instance (may not be registered) ``` **Exact steps for others to reproduce the error** Enable the Curve Tools add-on
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @Blendify

Added subscriber: @Blendify

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

The first problem is needless declaration of global inside the function before every assignment.
The second problem is related to having enabled the add_curve_simple.py add-on as standalone too.
Since it is the same script with same names of operators it'll bork the unregister call.

The first problem is needless declaration of global inside the function before every assignment. The second problem is related to having enabled the `add_curve_simple.py` add-on as standalone too. Since it is the same script with same names of operators it'll bork the unregister call.
Brendon Murphy self-assigned this 2017-01-14 23:44:55 +01:00
Member

Will look at solving this one soon, quite possibly will rewrite some functions & add some new tools.

Will look at solving this one soon, quite possibly will rewrite some functions & add some new tools.
Member

hi, sorry for delays, still aware of this issue.

hi, sorry for delays, still aware of this issue.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Since the commit a05f78046c86 the file add_curve_simple.py was removed so we can close this report. :)

Since the commit a05f78046c86 the file `add_curve_simple.py` was removed so we can close this report. :)
Sign in to join this conversation.
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-addons#50362
No description provided.