I wrote the following lines: import sys sys.stdout = sys.stderr
and it still throw the same error On Dec 7, 5:57 pm, Thadeus Burgess <[email protected]> wrote: > Sounds like your server does not allow you to use print statements. > You can try redirecting the output of print to sys.err > > -Thadeus > > On Mon, Dec 7, 2009 at 5:01 AM, Neveen Adel <[email protected]> wrote: > > I have a web2py application and when i execute my application it throw > > the following error: > > > Error traceback > > > Traceback (most recent call last): > > File "/home/cmmscul/CMMS/web2py/gluon/restricted.py", line 107, in > > restricted > > exec ccode in environment > > File "/home/cmmscul/CMMS/web2py/applications/init/controllers/ > > default.py", line 21, in <module> > > print "====>" > > IOError: [Errno 5] Input/output error > > > and when i remove this line it works fine i dont know why this problem > > caused by?? > > > Thanks > > > On Dec 6, 10:09 pm, Graham Dumpleton <[email protected]> > > wrote: > >> On Dec 7, 6:37 am, mdipierro <[email protected]> wrote: > > >> > Did you post this on stackoverflow too? I think the problem is that > >> > you have print statements and they are not allowed if you use mod_wsgi. > > >> Nothing to do with that. Completely different error message. > > >> OP must provide information about how they are hosting web2py and also > >> provide the full traceback for the error. > > >> Graham > > >> > On Dec 6, 2:32 am, Neveen Adel <[email protected]> wrote: > > >> > > I have a web2py application deployed into my machine and it works fine > >> > > but when i deployed it into server it cause: > >> > > "IOError : [Errno 5] Input/output error " i dont know why ? > > >> > > Server specification : Linux OS - redhat > >> > > my machine : Linux OS - centos > > >> > > Thanks in advance > > > -- > > > You received this message because you are subscribed to the Google Groups > > "web2py-users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

