views:

24

answers:

0

I want to do a deepcopy in IronPython Microsoft Visual Studio 2008, but I get error:

IronPython.Runtime.Exceptions.PythonImportErrorException was unhandled by user code
  Message="No module named copy"
  Source="IronPython"
  StackTrace:
       at IronPython.Modules.Builtin.__import__(ICallerContext context, String name, Object globals, Object locals, Object fromList)
       at __import__##4(ICallerContext , Object , Object , Object , Object )
       at IronPython.Runtime.Calls.FastCallableWithContextAny.Call(ICallerContext context, Object arg0, Object arg1, Object arg2, Object arg3)
       at IronPython.Runtime.Calls.BuiltinFunction.Call(ICallerContext context, Object arg0, Object arg1, Object arg2, Object arg3)
       at IronPython.Runtime.Operations.Ops.CallWithContext(ICallerContext context, Object func, Object arg0, Object arg1, Object arg2, Object arg3)
       at IronPython.Runtime.Importer.Import(PythonModule mod, String fullName, List from)
       at IronPython.Runtime.Operations.Ops.Import(PythonModule mod, String fullName)
       at Program.Initialize() in Program.py:line 4
       at IronPython.Runtime.Operations.Ops.ExecuteCompiled(InitializeModule init)
  InnerException: 

In ipy console:

>>> import sys, copy
>>> sys.version
'2.6.1 (IronPython 2.6.1 (2.6.10920.0) on .NET 2.0.50727.3053)'

But in Visual Studio:

sys.version
'2.4.0 (IronPython 1.1.1 (1.1.1) on .NET 2.0.50727.3053)'

How upgrade IronPython Microsoft Visual Studio 2008 to IronPython 2.6.1?