IConsole now lives in Microsoft.Scripting.Hosting.Shell, so you should be able
to change this to:
clr.AddReference('Microsoft.Scripting')
...
from Microsoft.Scripting.Hosting.Shell import IConsole
class IronPythonWrapper(IConsole):
From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew Evans
Sent: Wednesday, May 06, 2009 10:48 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Compiling IronPythonConsole.exe
Hi the ironpython_console.py comes from pyreadine in the folder
"pyreadline/console/ironpython_console.py"
the file itself in the areas where IronPythonConsole are referenced are
import clr,sys
clr.AddReferenceToFileAndPath(sys.executable)
import IronPythonConsole
class IronPythonWrapper(IronPythonConsole.IConsole):
def ReadLine(self,autoIndentSize):
return hook_wrap()
def Write(self,text, style):
System.Console.Write(text)
def WriteLine(self,text, style):
System.Console.WriteLine(text)
IronPythonConsole.PythonCommandLine.MyConsole = IronPythonWrapper()
I have not been able to find an updated pyreadline I have attached the file in
question
to see which module I am refering to see
http://ipython.scipy.org/moin/PyReadline/Intro
*cheers
And thank you
On Wed, May 6, 2009 at 10:39 AM, Dino Viehland
<[email protected]<mailto:[email protected]>> wrote:
Where does ironpython_console.py come from? There is no IronPythonConsole
class anymore so knowing what exactly the .py file is trying to do would be
helpful. But likely you want to map existing things we're looking for into the
Microsoft.Scripting.Hosting.Shell namespace which lives in
Microsoft.Scripting.dll.
From:
[email protected]<mailto:[email protected]>
[mailto:[email protected]<mailto:[email protected]>]
On Behalf Of Andrew Evans
Sent: Wednesday, May 06, 2009 10:30 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [IronPython] Compiling IronPythonConsole.exe
Hello maybe I should explain I have been trying to get readline to work with no
success
import readline fails with this message "No Module Named IronPythonConsole"
the line in question is in the file "ironpython_console.py"
import clr,sys
clr.AddReferenceToFileAndPath(sys.executable)
import IronPythonConsole
Just thought at this moment do I need to add anything to my environment
variables?
it was mentioned on the readline web site to post here hope some one can help
*cheers
Andrew
using readline in IronPython produces and an error "no mo
On Wed, May 6, 2009 at 10:19 AM, [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>> wrote:
On Wed, May 6, 2009 at 10:53, Andrew Evans
<[email protected]<mailto:[email protected]>> wrote:
Hello list I am new here :-)
I am trying to figure out how to get IronPythonConsole.exe as I need it for
Pyreadline... I am using 2.01 version of IronPython
I have tried compiling from source to but to no avail. Is IronPythonConsole
obsolete?
Thanks in
Advance
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
The specific error(s) you received would be helpful.
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com