[IronPython] problems with cgi scripts

Michael Foord fuzzyman at voidspace.org.uk
Sat Jan 2 12:42:45 CET 2010


On 02/01/2010 06:02, Count László de Almásy wrote:
> is there any reason that IronPython is incompatible with CGI? i'm not
> able to run even the simplest of CGI programs when certain CPython
> modules are imported. for example, the following doesn't work - i
> simply get an empty response in the browser (and no errors):
>
> =============
>
> #!/usr/local/packages/IronPython-2.0.3/ipy.exe
>
> import base64
>
> print "Content-Type: text/html"
> print
> print "hello"
>
> =============
>
> however, if you remove the import of base64, it does work. importing
> certain modules such as 'sys' don't break it, but most do (substitute
> almost any CPython module for base64). it's not an issue with my
> sys.path, i can import these modules fine from the interpreter. i'd
> also think if it was an issue like that, i'd get an ImportError or
> something, not just empty output with no exception or error.
>
> any ideas?
>
>    
What does your server error log say?

Michael

-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog





More information about the Ironpython-users mailing list