Page 2 of 3

Re: Makehuman script help

PostPosted: Thu Oct 15, 2015 9:39 am
by duststorm
Now numpy works, and you are getting a new error.
Now it is pyOpenGL that does not work.

At least you're getting closer ;)

The type of error is different too, it no longer says "DLL is no valid win32 application", now it says "I cannot find your DLL file":
Code: Select all
ImportError: DLL load failed: The specified module could not be found.

So pyOpenGL is either not, or not correctly installed, it's not installed in your python/system path or your python/system paths are not properly set up to make it find the DLL.

Re: Makehuman script help

PostPosted: Thu Oct 15, 2015 2:32 pm
by Aranuvir
@Duststorm

Could you have a look at the Bitbucket FAQ if there should be further information for the Windows setup. I had added the WinPython part some weeks ago, that was suggest by Rob Baer, but I didn't test the Windows installation, because I'm mostly working with Linux. Perhaps this part needs to be revised. (http://www.makehumancommunity.org/wiki/ ... e_clone%3F)

Re: Makehuman script help

PostPosted: Mon Oct 19, 2015 12:44 am
by krollquink
i think i successfully installed the PyOpenGl now :D
and lastly maybe based from the error is a pyqt problem?

Code: Select all
NO VERSION file detected, retrieving revision info from HG
NOTICE: Failed to get hg version number from command line: [Error 2] The system cannot find the file specified (This is just a head's up, not a critical error)
NOTICE: Failed to get hg version number using hglib: No module named hglib (This is just a head's up, not a critical error)
NOTICE: Failed to get hg parent version from dirstate file: [Errno 2] No such file or directory: 'D:\\pythonprog\\makehuman\\main\\.hg\\dirstate' (This is just a head's up, not a critical error)
NOTICE: Failed to get hg tip version from cache file: [Errno 2] No such file or directory: 'D:\\pythonprog\\makehuman\\main\\.hg\\cache\\tags' (This is just a head's up, not a critical error)
Detected HG revision: r? (UNKNOWN)
Initialized logging
VERSION: 1.1.0 (r? UNKNOWN) [none found]
HG REVISION: r? (UNKNOWN) [none found]
SHORT VERSION: v1.1.0
BASEMESH VERSION: hm08
IS BUILT (FROZEN): No
IS RELEASE VERSION: No
WORKING DIRECTORY: D:\pythonprog\makehuman\main\makehuman
HOME LOCATION: C:\Users\kerol
PYTHON PATH: ./;./lib;./apps;./shared;./apps/gui;./core;D:\pythonprog\makehuman\main\makehuman;C:\WINDOWS\SYSTEM32\python27.zip;C:\Python27\DLLs;C:\Python27\lib;C:\Python27\lib\plat-win;C:\Python27\lib\lib-tk;C:\Python27;C:\Python27\lib\site-packages
DLL PATH: C:\Users\kerol\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin;C:\Users\kerol\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\WinSDK\Bin;C:\Python27\Lib\site-packages\PyQt4;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Blender Foundation\Blender\;
SYS.VERSION: 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]
SYS.PLATFORM: win32
SYS.EXECUTABLE: C:\Python27\python.exe
PLATFORM.MACHINE: AMD64
PLATFORM.PROCESSOR: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
PLATFORM.UNAME.RELEASE: post2008Server
PLATFORM.WIN32_VER: post2008Server 6.2.9200  Multiprocessor Free
NUMPY.VERSION: 1.6.0
OpenGL_accelerate module loaded
Using accelerated ArrayDatatype
Traceback (most recent call last):
  File "makehuman.py", line 846, in <module>
    main()
  File "makehuman.py", line 835, in main
    from mhmain import MHApplication
  File "./core\mhmain.py", line 46, in <module>
    import mh
  File "./lib\mh.py", line 51, in <module>
    from qtui import Keys, Buttons, Modifiers, Application
  File "./lib\qtui.py", line 44, in <module>
    from PyQt4 import QtCore, QtGui, QtOpenGL
ImportError: DLL load failed: %1 is not a valid Win32 application.


Re: Makehuman script help

PostPosted: Tue Oct 20, 2015 1:17 am
by krollquink
i found a file name makehuman in the same folder with makehuman.py
and successfully open makehuman in gui.
is it correct way?

Re: Makehuman script help

PostPosted: Thu Oct 22, 2015 10:46 am
by duststorm
Yes, if that works, then all is fine.

Re: Makehuman script help

PostPosted: Thu Oct 29, 2015 12:27 pm
by krollquink
ok now im finished to setup the makehuman to run in command line.
so how can i edit the script to change the age,gender etc by using the script?
i try to read the script but dont know where to start.

Re: Makehuman script help

PostPosted: Thu Oct 29, 2015 2:29 pm
by duststorm
Check the utilities > scripting tab, it offers an easy to use scripting interface with examples.

Re: Makehuman script help

PostPosted: Sat Oct 31, 2015 6:59 am
by krollquink
Oh thanks ! i see it now...!!

ok . can i do scripting for cloth,etc here? I like choose cloth by using filepath or something
i also want to attach bone to the human model
and lastly maybe export the human model to .dae or mhx2 by using script..
i try many things and still failed to export it to those files.

sorry for asking too many question..im really new to programming

Re: Makehuman script help

PostPosted: Thu Nov 05, 2015 12:18 pm
by duststorm
There's API's for most of these things, but they're pretty involved. You'll have to read the code to see how they work.
There's also the commandline fork of MakeHuman that does some of these things, and could give you some insight in how it's done.

Re: Makehuman script help

PostPosted: Thu Dec 27, 2018 9:24 am
by nik.sridhar
duststorm wrote:First, perhaps check the commandline fork. It might already do what you want.


I'm currently having trouble using the command line fork. I download the repository and ran "python makehuman.py" inside the MakeHuman folder, and I received many errors. Am I doing something wrong?