> The underlying issue here is that Python is attempting a "print" statement,
> but sys.stdout is invalid. This is actually quite common for GUI programs,
> but I'm not sure why we have never seen it in the past.
>
> There are only a few "print" statements left in pyxpcom (and the one you hit
> is still there in the latest versions). Many have changed to logging calls,
> so I guess the remaining ones should simply handle this IOError attemting to
> print.
>
> Thus, you may like to change server/module.py from:
>
> print "Registering '%s' (%s)" % (reg_contractid, fname)
> to
> try:
> print "Registering '%s' (%s)" % (reg_contractid, fname)
> except IOError:
> pass
>
> There are a few prints in that source file that should be changed similarly.
> server/policy.py should be changed in the same way.
I have changed server/module.py and server/policy.py as you told me and it
seems to work.
No error is printed by the javaScript console and I can successfully
use my small component.
Thanks for your help.
_______________________________________________
pyxpcom mailing list
pyxpcom@list...
To unsubscribe:
http://listserv.ActiveState.com/mailman/mysubs
opensubscriber is not affiliated with the authors of this message nor responsible for its content.