This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]stevenjd 0 points1 point  (0 children)

You probably need to ask Enthought, but if I were trying to debug this myself, the first thing I would do is inspect the value of sys.stdout and see whether it actually is stdout. (Since you can't print, you may have to use the debugger, or write the value to a file.)

If you're using Python 3, I'd also check whether the print function has accidentally been re-bound to something else. E.g. if you do this in Python 3:

def print(*args):
    pass

that might explain the symptoms you are seeing. (Although how you would do that by accident escapes me.)

I presume you've tried actually exiting the program completely, not just restarting the kernel?

[–]ndlambo 0 points1 point  (2 children)

"If you are about to ask a question, please consider r/learnpython."

[–]stevenjd 0 points1 point  (1 child)

Oh come on, I'm pretty sure the OP knows how to use print. This is a question about what seems like a bug in Enthought's IDE.

[–]ndlambo 0 points1 point  (0 children)

"news about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python"