[Chimera-users] python printing in x3d2collada.py

Dougherty, Matthew T matthewd at bcm.edu
Wed Jun 11 19:19:00 PDT 2014

Hi Tom,

I had both the reply log and IDLE up simultaneously and individually.  same problem.

I started chimera from a double click, not the terminal; will try that next.  I know it is executing code because the collada file is created, and in various code permutations I get traceback errors because of typos.

was thinking the program was spawned process and that is why.  will keep trying.

Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine
From: Tom Goddard [goddard at sonic.net]
Sent: Wednesday, June 11, 2014 7:18 PM
To: Dougherty, Matthew T
Cc: chimera-users at cgl.ucsf.edu
Subject: Re: [Chimera-users] python printing in x3d2collada.py

Hi Matt,

  Both your print statements normally go to the Reply Log.  If you brought up the Python shell (IDLE window, menu Tools / General Controls / IDLE) before the print happened then the Python shell will show what you printed and not the Reply Log.  If neither show what you printed that can be because the print statement happened before the Chimera graphical user interface started in which case the output goes to the terminal where you started Chimera.  If you didn’t start it from a terminal but used a double click on an icon then the output is lost (or goes to a console window that is not displayed on some operating systems).  If the Chimera graphical user interface has started and your print output does not appear in Reply Log or the Python shell, then either your print statement was never reached, or this is a Chimera bug.  Sometimes when I can’t believe my print statement was not reached I put a line after it that says 1/0 and then look for a traceback.


On Jun 11, 2014, at 2:03 PM, Dougherty, Matthew T  wrote:

> I was delving into the chimera code and wanted to print some variables to better understand how the code works.
> When I use a print statement I do not see anything in the reply log or the IDLE window.
> here is an example
>       for filename in args:
>               print filename
>               print >> sys.stdout, "FN: %s" % filename
> Matthew Dougherty
> National Center for Macromolecular Imaging
> Baylor College of Medicine
> ===========================================================================
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users

More information about the Chimera-users mailing list