[IronPython] importing the os module

Papanii Okai papanii.okai at gmail.com
Sun Oct 16 01:53:26 CEST 2005

Ok, so I stepped through with the debugger and found out that IO module
wasn't begin called. Are io and os built in modules? Below is a copy of the
stack trace..


Thread [#:0]

*0. IronPython.Objects.Importer.ImportTop (PythonModule.cs:182)

 1. IronPython.Objects.Importer.ImportModule (PythonModule.cs:165)

 2. IronPython.Modules.Builtin.__import__ (__builtin__.cs:60)

 3. ReflectOpt.IronPython.Modules.Builtin.__import__ (source line
information unavailable)

 4. IronPython.Objects.BuiltinFunction.Call (BuiltinFunction.cs:101)

 5. IronPython.Objects.Ops.Call (Ops.cs:1423)

 6. IronPython.Objects.Importer.Import (PythonModule.cs:151)

 7. IronPython.Objects.Ops.Import (Ops.cs:1864)

 8. input_2.Run (source line information unavailable)

 9. IronPython.Hosting.PythonEngine.DoOneInteractive (PythonEngine.cs:278)

 10. IronPython.Hosting.PythonEngine.RunInteractive (PythonEngine.cs:227)

 11. IronPythonConsole.PythonCommandLine.RunInteractive

 12. IronPythonConsole.PythonCommandLine.Main (PythonCommandLine.cs:40)




From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Martin Maly
Sent: Saturday, October 15, 2005 6:39 AM
To: Discussion of IronPython
Subject: Re: [IronPython] importing the os module


You can either use the CPython libraries, or instead of "os" use the "nt"
module which IronPython contains.





From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Papanii Okai
Sent: Saturday, October 15, 2005 12:19 AM
To: users at lists.ironpython.com
Subject: [IronPython] importing the os module

Hi Guys,

          I was testing out Iron Python and I was trying to test out the OS
module but I got the error ..


TraceBack (most recent call last)

            At <shell>

ImportError: No module named os..



Obviously it doesn't exist. Thus is there any means to get around this? 


Thank you



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20051015/7f7aa719/attachment.html>

More information about the Ironpython-users mailing list