[IronPython] Newbie mono question (setting up lib path)

Martin Maly Martin.Maly at microsoft.com
Sat Jan 14 07:19:41 CET 2006

this sounds like IronPython couldn't find the string module. try:

>>> import sys
>>> sys.path

and make sure it found its way there correctly. If in doubt, try absolute paths.

Hopefully this helps

From: users-bounces at lists.ironpython.com On Behalf Of m h
Sent: Friday, January 13, 2006 6:00 PM
To: users at lists.ironpython.com
Subject: [IronPython] Newbie mono question (setting up lib path)

Folks, I'm new to IronPython (and Mono!).
Following what I read in Jim's recent email, I tried copying my
python2.3 lib directory into the "Lib" directory and added "Lib" to
the sys.path in Lib/site.py.  Then I tried to import string but it
failed.  Any hints?

mharrison[1080] mono IronPythonConsole.exe
IronPython 1.0.2190 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import string
Traceback (most recent call last):
ImportError: No module named string

mharrison[1045] mono --version
Mono JIT compiler version 1.1.13, (C) 2002-2005 Novell, Inc and
Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV      : normal

users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list