473,378 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

IronPython with Apache

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

Mar 7 '07 #1
1 1762
"edfialk" <ed*****@gmail.comwrites:
[...]
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.
[...]

Looks odd. Try the IronPython mailing list?

Or try this:

http://www.microsoft.com/downloads/d...displaylang=en
John
Mar 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

82
by: Neuruss | last post by:
IronPython is currently at a pre-alpha stage suitable for experimentation but not for serious development work. http://www.ironpython.com
27
by: James | last post by:
http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742
3
by: Carl Johan Rehn | last post by:
What is the difference between CPython, Python for .NET, and IronPython? For example, if I'm running IronPython, can I access modules such as Numeric and numarray? As I understand it,...
3
by: Sanghyeon Seo | last post by:
I took some time to write this HOWTO: http://sparcs.kaist.ac.kr/~tinuviel/fepy/howto/simplehttpserver-ironpython-mono-howto.html IronPython seems to get much less interest than it deserves. This...
2
by: tkpmep | last post by:
I'm looking forward to the release IronPython, primarily for its IDE. I currently use scipy and pyExcelerator to crunch numbers and write them to Excel: does can these packages be used with...
7
by: sanxiyn | last post by:
Skip wrote: For those of us who have never used IronPython or Mono, is there a quick start document laying about somewhere? It wasn't clear to me where to even look. Okay, here we go: 1....
9
by: Claudio Grondi | last post by:
(just wanted to share my experience with IronPython 1.0) The context: C:\IronPythonipy.exe IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved....
2
by: edfialk | last post by:
Hi all, I'm pretty much totally new to IronPython and have come to the point that I need an interface to interact with a co-worker's code, but I can't seem to find any documents or discussion on...
2
by: Troels Thomsen | last post by:
Hello , When an exeption occurs in a IronPython executet script, and I print the sys.exc , i get something ugly like the example below. How can I get the fileName and line number? Thx in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.