when import the mh,error with "ImportError: DLL load failed"

MakeHuman python API, python plugins, etc

Moderator: joepal

when import the mh,error with "ImportError: DLL load failed"

Postby gsnake » Sat Feb 06, 2010 6:35 am

When I import the mh module in the makehuman scripts ,It hits error with message of ImportError: DLL load failed;pls help me solve the problem,thankyou.


error hits just like below:

line 55, in <module>
import mh
ImportError: DLL load failed:
gsnake
 
Posts: 27
Joined: Sat Feb 06, 2010 6:17 am

Re: when import the mh,error with "ImportError: DLL load failed"

Postby mflerackers » Sat Feb 06, 2010 7:01 am

Do you have all the other dll's next to it?

jpeg.dll
libpng12-0.dll
libtiff-3.dll
python26.dll
SDL.dll
SDL_image.dll
zlib1.dll
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: when import the mh,error with "ImportError: DLL load failed"

Postby gsnake » Sat Feb 06, 2010 8:19 am

yes,all the dll's is in it ,the version is "makehuman1-0-0_alpha3_win32",if it has something with the python version or the enviromen setting ? I try to install the python 2.6.1 and 2.64, but It can't solve the problem.



mflerackers wrote:Do you have all the other dll's next to it?

jpeg.dll
libpng12-0.dll
libtiff-3.dll
python26.dll
SDL.dll
SDL_image.dll
zlib1.dll
gsnake
 
Posts: 27
Joined: Sat Feb 06, 2010 6:17 am

Re: when import the mh,error with "ImportError: DLL load failed"

Postby mflerackers » Sat Feb 06, 2010 8:27 am

It's the only thing you import in your script?
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: when import the mh,error with "ImportError: DLL load failed"

Postby gsnake » Sat Feb 06, 2010 8:44 am

When I debug it ,I find it can't continue running ,so far I have no chance to find other error.I once download the script into other computer ,and run it with python 2.6,it has no problem,
so I doubt that it has something to do with my enviroment,but I don't know how to solve it

mflerackers wrote:It's the only thing you import in your script?
gsnake
 
Posts: 27
Joined: Sat Feb 06, 2010 6:17 am

Re: when import the mh,error with "ImportError: DLL load failed"

Postby mflerackers » Sat Feb 06, 2010 8:46 am

Does main.py run in the makehuman folder? And is mh.pyd in the same folder?
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: when import the mh,error with "ImportError: DLL load failed"

Postby gsnake » Sat Feb 06, 2010 8:51 am

Yes
mflerackers wrote:Does main.py run in the makehuman folder? And is mh.pyd in the same folder?
gsnake
 
Posts: 27
Joined: Sat Feb 06, 2010 6:17 am

Re: when import the mh,error with "ImportError: DLL load failed"

Postby mflerackers » Sat Feb 06, 2010 8:57 am

Weird, if main.py runs, your script should too. It's in the same folder I guess?
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: when import the mh,error with "ImportError: DLL load failed"

Postby gsnake » Sat Feb 06, 2010 9:04 am

It entire report is as below:

Traceback (most recent call last):
File "F:\makehuman1-0-0_alpha3_win32\main.py", line 60, in <module>
import mh
ImportError: DLL load failed: 由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题。


mflerackers wrote:Weird, if main.py runs, your script should too. It's in the same folder I guess?
gsnake
 
Posts: 27
Joined: Sat Feb 06, 2010 6:17 am

Re: when import the mh,error with "ImportError: DLL load failed"

Postby mflerackers » Sat Feb 06, 2010 9:16 am

Do you run it from the folder, by doubleclicking it?
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Next

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest