Makehuman script help

MakeHuman python API, python plugins, etc

Moderator: joepal

Re: Makehuman script help

Postby duststorm » Thu Oct 15, 2015 9:39 am

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.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: Makehuman script help

Postby Aranuvir » Thu Oct 15, 2015 2:32 pm

@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)
Aranuvir
 
Posts: 1314
Joined: Sun Oct 12, 2014 2:12 pm

Re: Makehuman script help

Postby krollquink » Mon Oct 19, 2015 12:44 am

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.

krollquink
 
Posts: 12
Joined: Mon Jun 08, 2015 3:02 am
Location: Japan

Re: Makehuman script help

Postby krollquink » Tue Oct 20, 2015 1:17 am

i found a file name makehuman in the same folder with makehuman.py
and successfully open makehuman in gui.
is it correct way?
krollquink
 
Posts: 12
Joined: Mon Jun 08, 2015 3:02 am
Location: Japan

Re: Makehuman script help

Postby duststorm » Thu Oct 22, 2015 10:46 am

Yes, if that works, then all is fine.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: Makehuman script help

Postby krollquink » Thu Oct 29, 2015 12:27 pm

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.
krollquink
 
Posts: 12
Joined: Mon Jun 08, 2015 3:02 am
Location: Japan

Re: Makehuman script help

Postby duststorm » Thu Oct 29, 2015 2:29 pm

Check the utilities > scripting tab, it offers an easy to use scripting interface with examples.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: Makehuman script help

Postby krollquink » Sat Oct 31, 2015 6:59 am

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
krollquink
 
Posts: 12
Joined: Mon Jun 08, 2015 3:02 am
Location: Japan

Re: Makehuman script help

Postby duststorm » Thu Nov 05, 2015 12:18 pm

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.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: Makehuman script help

Postby nik.sridhar » Thu Dec 27, 2018 9:24 am

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?
nik.sridhar
 
Posts: 2
Joined: Thu Dec 27, 2018 9:18 am

PreviousNext

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron