IronPython with Apache

Josh Bloom joshbloom at gmail.com
Thu Mar 8 11:47:58 EST 2007


Hi Ed,

Some more info about your environment will be helpful here.
What OS version, apache version, etc.

-Josh


On 7 Mar 2007 15:05:54 -0800, edfialk <edfialk at gmail.com> wrote:
>
> Hi all, I'm completely new to Python, but fairly experienced in PHP
> and few other languages.
>
> Long story short: The IronPython executable doesn't work for .cgi
> scripts in my browser.
>
>
> I've been assigned to write a service that pulls in parameters from
> the URL, accesses a file and serves some data through a CSV.  The only
> problem I foresee myself is accessing and reading this file, which is
> a 'hyper-cube' in that it has many dimensions of data.
>
> Anyway, the code for reading and writing this cube was already written
> by a coworker in IronPython and .NET.  Again, I'm totally new to
> Python but as I'm stepping through trying to pick out pieces that I
> need, I can't even import clr.
>
> So, I'm told I need IronPython, which I get, and I replace the #!c:
> \Python25\python.exe with the IronPython executable (#!c:
> \IronPython-1.0.1\ipy.exe), but I get a 500 Internal Server error and:
>
> "[Wed Mar 07 17:02:21 2007] [error] [client 127.0.0.1] malformed
> header from script. Bad header=  File , line 0, in __import__:
> testing.cgi" in the Error log.
>
> Does anyone know how to set up this 'IronPython' through Apache so I
> can use it to read/write data?
>
> Any help would be greatly appreciated.
> Thanks!
> -Ed
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070308/595cf984/attachment.html>


More information about the Python-list mailing list