Python Error on Marc's Plugin Tutorial

If you have problems understanding something or getting started, ask here

Moderator: joepal

Python Error on Marc's Plugin Tutorial

Postby KPM » Sat Apr 17, 2010 11:41 pm

I do not use vapor-ware. I use script files for everything so there is an audit-trail.

I am a NUG to Python and MH, which I eventually expect to use in the future. I jumped off the deep end with Marc's tutorial 01-Plug-ins. I did not find _example.py, but I did find _example_plugin.py in C:\MyProgramFiles\MakeHuman\plugins. Note: MyProgramFiles is a POSIX link to the usual Windows folder “Program Files” but it is devoid of any spaces in the path to make the full path UNIX (and Python compatible). After a lot of reading of O'Reilly's two Python books, I was able to create script files that get things breathing. So that Python knows where to find the MH script files, especially the first import file “gui3d.py”, in the DOS script file, I have set:

set PYTHONPATH=C:\MyProgramFiles\MakeHuman\mh_core

I now execute _example_plugin.py. Things truck along fine until the process gets to:

File "C:\MyProgramFiles\MakeHuman\mh_core\module3d.py", line 43, in <module> import mh
ImportError: No module named mh

As a NUG, I do not have a clue how to debug this error fault.

Note: there is a Python library file mh.pyd at C:\MyProgramFiles\MakeHuman\mh.pyd

I know something is missing. Any suggestions? Sorry for the verbosity and the NUGosity.

Thanks millions.

Keith.
KPM
 
Posts: 3
Joined: Tue Jan 26, 2010 1:54 am

Re: Python Error on Marc's Plugin Tutorial

Postby mflerackers » Sun Apr 18, 2010 1:22 am

Indeed we renamed the plugin to example_plugin.py. Be sure to remove the underscore if you want to use it. And you don't run it, it needs to be run by makehuman since it needs the environment to work, as it is a plugin or extension to the program. So basically what you do is:

-Remove the underscore
-Do you modifications
-Start makehuman and the plugin should appear within makehuman.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Python Error on Marc's Plugin Tutorial

Postby jcapco » Sun Apr 18, 2010 1:47 pm

what's a NUG?
jcapco
 
Posts: 157
Joined: Wed Jan 13, 2010 6:26 pm

Re: Python Error on Marc's Plugin Tutorial

Postby KPM » Sun Apr 18, 2010 7:21 pm

Argggggh! I was so deep into the forest I could not see the trees. After a paradigm shift on my part based on your feedback: success.

NUG. New (Nu) Guy (G). This is the first term that I picked up many years ago. It has since evolved into more terms: noob, newbie, and newb.
NUGosity. Nugosity is the mindset of the newbie, complete with all of the misconceptions.

Thanks for the feedback.

Keith
KPM
 
Posts: 3
Joined: Tue Jan 26, 2010 1:54 am

Re: Python Error on Marc's Plugin Tutorial

Postby RobBaer » Sat Sep 22, 2018 12:22 pm

alex0809 wrote:How can I mimic CGI form submission (METHOD=POST)? I would like to retrieve web pages that are the result of posting a form. Is there existing code that would let me do this easily?

This does not seem related to MakeHuman. Could you provide a connection?
User avatar
RobBaer
 
Posts: 1209
Joined: Sat Jul 13, 2013 3:30 pm
Location: Kirksville, MO USA

Re: Python Error on Marc's Plugin Tutorial

Postby Aranuvir » Sat Sep 22, 2018 3:34 pm

Probably some spam bot with defective AI. :mrgreen:
Aranuvir
 
Posts: 1314
Joined: Sun Oct 12, 2014 2:12 pm


Return to Newbies

Who is online

Users browsing this forum: No registered users and 1 guest