Make target and make face error

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

Make target and make face error

Postby damlaar » Mon Mar 25, 2013 12:55 am

Finally I installed numpy with blender 2.63, I dont know why but it worked for me.
http://www.makehuman.org/forum/viewtopic.php?f=13&t=9377

Maketarget and Makeface have the same problem, I press the button "import base objet" in maketarget or "create base character" in makeface and I get the following error message:
Code: Select all
location:<unknown location>:-1
*** Cannot open C:\program\makehuman\data\3dobjs\base.mhclo
Traceback (most recent call last):
  File "C:\Users\damian\AppData\Roaming\Blender Foundation\Blender\2.63\scripts
addons\maketarget\maketarget.py", line 70, in execute
    import_obj.importBaseMhclo(context)
  File "C:\Users\damian\AppData\Roaming\Blender Foundation\Blender\2.63\scripts
addons\mh_utils\import_obj.py", line 62, in importBaseMhclo
    ob = importObj(the.Proxy.obj_file, context)
  File "C:\Users\damian\AppData\Roaming\Blender Foundation\Blender\2.63\scripts
addons\mh_utils\import_obj.py", line 80, in importObj
    obname = utils.nameFromPath(filepath)
  File "C:\Users\damian\AppData\Roaming\Blender Foundation\Blender\2.63\scripts
addons\mh_utils\utils.py", line 142, in nameFromPath
    (name,ext) = os.path.splitext(os.path.basename(filepath))
  File "C:\Program Files\Blender Foundation\Blender\2.63\python\lib\ntpath.py",
line 309, in basename
    return split(p)[1]
  File "C:\Program Files\Blender Foundation\Blender\2.63\python\lib\ntpath.py",
line 280, in split
    d, p = splitdrive(p)
  File "C:\Program Files\Blender Foundation\Blender\2.63\python\lib\ntpath.py",
line 208, in splitdrive
    if len(p) > 1:
TypeError: object of type 'NoneType' has no len()

location:<unknown location>:-1

location:<unknown location>:-1
damlaar
 
Posts: 3
Joined: Fri Mar 22, 2013 10:46 pm

Re: Make target and make face error

Postby ThomasL » Mon Mar 25, 2013 5:01 am

MakeTarget (in MH alpha 7) looks for the base mesh in the directory that MH was installed in, so you need to specify that in the MH Program Path field at the top of the Maketarget panel; the default guess is the default install directory on windows. So if you type in the path to your MH directory, things should work fine.

You only need to specify this once. If you press Save Settings, you can use Restore Settings to get it back next time.

This is quite confusting, and MakeTarget has changed considerably in svn to make it more user friendly. However, the svn version works with the new base mesh, which will replace the current one once most targets are done. It may be a good idea to make targets for the new mesh if you want to keep them for long. There is a conversion utility (ConvertTarget), but it does not work perfectly.
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am


Return to MHX2 and other plugins developed outside MakeHuman

Who is online

Users browsing this forum: No registered users and 2 guests