[IronPython] PythonEngine no constructors defined

googen tesco.chainstore.massacre at gmail.com
Fri Jul 13 06:36:56 CEST 2007


Hello, I am trying to run a python script via a VC# project, purely to create
an exe for my application. But I am having a problem
building every example I have found. It does not help that I have no idea
about C#. Any help would be greatly appreciated, as I would love to 
have an exe to pass to my friends with my application, and a google on this
shows nothing. The code I tryed last is

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using IronPython.Hosting;
using IronPython.Runtime;

namespace Payper
{
class Class1
{
static IronPython.Hosting.PythonEngine Py;

[STAThread]
static void Main(String[] rawArgs)
{
Py = new PythonEngine();
Py.AddToPath(Environment.CurrentDirectory);
Py.ExecuteFile("Payper.py");
}
}
}

When I try to build this, or any other example I have followed I get the
following error...

The type 'IronPython.Hosting.PythonEngine' has no constructors defined

So what am i missing?, or does anybody know another way of creating an exe
from ironpython?

Thanks in advance

googen. 
-- 
View this message in context: http://www.nabble.com/PythonEngine-no-constructors-defined-tf4071594.html#a11571182
Sent from the IronPython mailing list archive at Nabble.com.




More information about the Ironpython-users mailing list