Curve Tools: Syntax error
Closed, ResolvedPublic

Description

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

Details

Type
Bug

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.

Vuk Gardašević (lijenstina) triaged this task as "Confirmed" priority.Jan 4 2017, 6:57 PM

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

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

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