Crash in blender import

Discussions about MHX2 and other plugins that are developed outside the scope of MakeHuman. Note that bug reports should go to the respective code projects and might go unseen here.

Moderator: joepal

Crash in blender import

Postby joepal » Wed Sep 07, 2011 8:56 pm

With blender 2.59 (official) and today's nightly MH I got the following crash:

Code: Select all
Traceback (most recent call last):
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 2348, in defaultKey
    exec(expr, glbals, lcals)
  File "<string>", line 1, in <module>
AttributeError: 'DriverTarget' object has no attribute 'transform_space'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 3029, in execute
    readMhxFile(self.filepath)
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 356, in readMhxFile
    parse(tokens)
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 521, in parse
    parseShapeKeys(ob, ob.data, val, sub)       
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 1498, in parseShapeKeys
    parseAnimationData(me.shape_keys, val, sub)
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 711, in parseAnimationData
    fcu = parseAnimDataFCurve(adata, rna, val, sub)           
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 726, in parseAnimDataFCurve
    fcu = parseDriver(adata, dataPath, index, rna, val, sub)
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 773, in parseDriver
    var = parseDriverVariable(drv, rna, val, sub)
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 787, in parseDriverVariable
    parseDriverTarget(var, nTarget, rna, val, sub)
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 814, in parseDriverTarget
    defaultKey(key, val, sub, 'targ', [], globals(), locals())
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 2350, in defaultKey
    pushOnTodoList(var, expr, glbals, lcals)
  File "/usr/local/blender-2.59-linux-glibc27-x86_64/2.59/scripts/addons/io_import_scene_mhx.py", line 2361, in pushOnTodoList
    MyError("Todo", expr)
TypeError: MyError() takes exactly 1 positional argument (2 given)
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4475
Joined: Wed Jun 04, 2008 11:20 am

Re: Crash in blender import

Postby ThomasL » Fri Sep 09, 2011 7:08 am

They changed the api after Blender 2.59. Download an up-to-date Blender from graphicall.org.

You could edit the mhx file in a text editor, although I would not recommend that. Replace

Code: Select all
transform_space 'LOCAL_SPACE' => use_local_transform True
transform_space 'WORLD_SPACE' => use_local_transform False


If you have an up-to-date blender but an old mhx file, you could make the opposite changes.
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am

Re: Crash in blender import

Postby joepal » Fri Sep 09, 2011 8:05 am

Meh, I thought 2.59 was supposed to be stable? :)

Ok, will test graphicall
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4475
Joined: Wed Jun 04, 2008 11:20 am


Return to MHX2 and other plugins developed outside MakeHuman

Who is online

Users browsing this forum: No registered users and 1 guest