473,796 Members | 2,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IronPython on Mono howto

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. Download IronPython

Go to http://www.codeplex.com/IronPython. Click Releases tab. Click
IronPython-1.0-Bin.zip or IronPython-1.0-Src.zip. You need to agree to
the license. Read it if you haven't.

2. Download Mono

Go to http://www.mono-project.com/. Click "download now" icon
(topright). DO NOT DOWNLOAD 1.1.13, IT WON'T WORK. Download according
to your platform and install in the usual way. If you are using Debian
Unstable like me, apt-get install mono is enough. For Linux users not
covered, but using x86 architecture, I highly recommend "Linux
Installer for x86 (All distributions)" download. It's a graphical
installer, can be installed under your home directory not to distrub
package managers, and uninstalls cleanly.

3. Run (Binary case)

Unzip IronPython-1.0-Bin.zip. It unzips to IronPython-1.0 directory.
Change to it. Run "mono ipy.exe". Make sure mono --version shows the
version you installed; you may have non-working (for IronPython) 1.1.13
already installed on your system. You will see:

IronPython 1.0.60816 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>>
4. Compile and Run (Source case)

Unzip IronPython-1.0-Src.zip. It unzips to IronPython-1.0 directory.
Change to it. Change to Src directory under it. Edit makefile.

1) Change "CSC=csc" to "CSC=gmcs".
2) Change "mkdir ..." to "mkdir -p".

Make. "Compilatio n succeeded". Change to the parent directory and you
will see newly compiled ipy.exe and DLLs. Run as in 3.

Seo Sanghyeon

Sep 6 '06 #1
7 3597
sa*****@gmail.c om wrote:
Okay, here we go:
1. Download IronPython
Kudos for taking the time!

Sep 6 '06 #2
sa*****@gmail.c om <sa*****@gmail. comwrote:
Okay, here we go:
[snip]

Thanks for those good instructions - they worked well!

I tried running a test program under mono/linux.

I found I needed to add

import sys
sys.path.append ("/usr/lib/python2.4")

As per the FAQ to the code. Setting this in an environment var would
be nice but I didn't find one.

The code then ran fine. (Its a test suite for my sudoku solver.)

$ mono ipy.exe ~/Python/sudoku.py -t
...........
----------------------------------------------------------------------
Ran 11 tests in 5.533s

Compared to

$ python2.4 ~/Python/sudoku.py -t
...........
----------------------------------------------------------------------
Ran 11 tests in 1.637s

It seems to take about a second to start IronPython vs ~15 ms for
Python2.4, eg

$ time mono ipy.exe -c pass

real 0m1.034s
user 0m1.000s
sys 0m0.036s

$ time python2.4 -c pass

real 0m0.015s
user 0m0.008s
sys 0m0.007s

Over all I'm very impressed - it is great to have a new implemention
of Python. I'm not sure mono is showing it off to its full extent
though!

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Sep 7 '06 #3

sanxiynFor those of us who have never used IronPython or Mono, is
sanxiynthere a quick start document laying about somewhere? It wasn't
sanxiynclear to me where to even look.

sanxiynOkay, here we go:
...

Thanks. Worked like a charm. Like others I noticed the apparent
performance drop. I presume that's more a comment on the state of
optimization in Mono than on IronPython itself.

One thing I did find especially annoying though was that none of the editing
keys worked. DELETE, BACKSPACE, Ctrl-U. All just inserted themselves.
Ctrl-D didn't exit. (I had to "raise SystemExit" to exit.)

Is this a known problem? Is it a Mono thing or an IronPython thing? Any
workaround?

Thx,

Skip

Sep 7 '06 #4
In <ma************ *************** **********@pyth on.org>, skip wrote:
One thing I did find especially annoying though was that none of the editing
keys worked. DELETE, BACKSPACE, Ctrl-U. All just inserted themselves.
Ctrl-D didn't exit. (I had to "raise SystemExit" to exit.)

Is this a known problem? Is it a Mono thing or an IronPython thing? Any
workaround?
The `boo` shell and the `Nemerle` shell can be quit with Ctrl-D under
Mono, so I guess it's an `IronPython` thing.

Ciao,
Marc 'BlackJack' Rintsch
Sep 7 '06 #5
sk**@pobox.com wrote:
One thing I did find especially annoying though was that none of the editing
keys worked. DELETE, BACKSPACE, Ctrl-U. All just inserted themselves.
Ctrl-D didn't exit. (I had to "raise SystemExit" to exit.)

Is this a known problem? Is it a Mono thing or an IronPython thing? Any
workaround?
It is a known problem. It is a Mono bug. (ncurses-based colored console
is not really complete.) There is a workaround.

Apply
http://sparcs.kaist.ac.kr/~tinuviel/...n-mono-console

Seo Sanghyeon

Sep 8 '06 #6
>One thing I did find especially annoying though was that none of the
editing keys worked.
SeoIt is a known problem. It is a Mono bug. (ncurses-based colored
Seoconsole is not really complete.) There is a workaround.

Thanks, it worked perfectly. I guess the white text on the white background
prevented the Mono developers from seeing that the editing characters were
self inserting. ;-)

Skip
Sep 8 '06 #7
<sk**@pobox.com wrote:
>One thing I did find especially annoying though was that none of the
>editing keys worked.

SeoIt is a known problem. It is a Mono bug. (ncurses-based colored
Seoconsole is not really complete.) There is a workaround.

Thanks, it worked perfectly. I guess the white text on the white background
prevented the Mono developers from seeing that the editing characters were
self inserting. ;-)
On MacOSX, my workaround for the white-on-white behavior of
IronPython+Mono on Apple's Terminal was to try other terminal emulators
-- Terminator worked fine (display-wise). But the editing remains off,
so I'll be glad to try the suggested workaround (if and when
sparcs.kaist.ac .kr responds...:-).
Thaks,

Alex
Sep 9 '06 #8

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

Similar topics

82
3440
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
2
1524
by: Mike Greaves | last post by:
I see from Google groups that I'm not the only one to have this problem... In Jim H.'s new IronPython 0.6: mono bin/IronPythonConsole.exe >>> class myClass: .... pass .... System.NullReferenceException: Object reference not set to an instance
13
1699
by: David Wilson | last post by:
For anyone who is excited about IronPython and it's consequences, you might find Jim Hugunin's web log to be of particular interest. I didn't see an announcement for this anywhere so here it is: http://blogs.msdn.com/hugunin/ http://blogs.msdn.com/hugunin/Rss.aspx Anti-trust conspiracy theories aside, if Microsoft adopts Python as a part of it's development toolset, the repercussions for Windows RAD and scripting are massive, not to...
27
2843
by: James | last post by:
http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742
3
5363
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, interoperability with C# and .NET works in both directions with IronPython, but CPython modules cannot be imported, or? With Python for .NET I can import the .NET Framework and continue using CPython modules, or?
2
1181
by: bearophileHUGS | last post by:
I have suggested the Shootout site to add tests for IronPython too (tests are done on Mono): http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&lang=iron People that use IronPython can probably fix some of those programs. Bye, bearophile
3
2520
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 howto shows how to setup IronPython to use with Mono on Linux and how to rebuild IronPython from source. It also discusses various patches to current problems. It also shows that IronPython can run SimpleHTTPServer today, not a trivial...
27
1958
by: alacrite | last post by:
Anyone know if there is a book for Ironpython in the works? A good knowledge of .NET and Python is enough to get started but just poking around Ironpython homepage it seems like there are some new language features added to handle some quirks with working within the CLR. Although I could be wrong. Thanks -Jake
22
3987
by: dmitrey | last post by:
Hi all, the url http://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? If yes, what are IronPython drawbacks vs CPython? And is it possible to use IronPython in Linux? D.
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10187
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10018
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9055
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7553
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.