Getting Plugin To Print to the Console

MakeHuman python API, python plugins, etc

Moderator: joepal

Getting Plugin To Print to the Console

Postby Sothh » Thu Oct 20, 2011 3:01 pm

Well, this seemed like a simple thing to do, and a good way to get started coding plugins, but I can't get my test plugin to print to the console.

In-fact, nothing ever seems to print to the console, even though when looking at the other plugins, I see it should.

Does some level of debugging need to be turned on?
Sothh
 
Posts: 14
Joined: Sat Feb 20, 2010 1:33 pm

Re: Getting Plugin To Print to the Console

Postby joepal » Thu Oct 20, 2011 7:03 pm

If we're talking about windows here, the output ends up in "python.out" and "python.err" in the installation directory rather than getting printed to the dos window.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3561
Joined: Wed Jun 04, 2008 11:20 am

Re: Getting Plugin To Print to the Console

Postby Sothh » Thu Oct 20, 2011 7:11 pm

Yeah, I am using Windows.

Why does MH no longer print to the console?
Sothh
 
Posts: 14
Joined: Sat Feb 20, 2010 1:33 pm

Re: Getting Plugin To Print to the Console

Postby joepal » Thu Oct 20, 2011 9:20 pm

I'm not certain, but I think this is different depending on whether you use an exe compiled with visual c++ or with mingw. The nightlies use MingW while the releases have traditionally used vc++.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3561
Joined: Wed Jun 04, 2008 11:20 am

Re: Getting Plugin To Print to the Console

Postby mflerackers » Fri Oct 21, 2011 12:33 am

The mingw version crashes when printing to the console, so we redirect output to a file there. https://sites.google.com/site/makehuman ... -Visual-C-
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: Getting Plugin To Print to the Console

Postby Supreetha » Sat Apr 27, 2019 12:17 pm

How can I print a statement in the software on Linux platform?
Supreetha
 
Posts: 8
Joined: Fri Apr 26, 2019 11:27 am


Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron