[Python.NET] I can't run test_engine.py with nPython.exe. Would you tell me why?

Seungweon Park swpark71 at gmail.com
Thu Apr 4 17:34:55 CEST 2013


Hi,

I ran every tests from src\tests. However, I can't run runtests.py and
test_module.py.

test_module.py has an error message in console window and pops up "Python
Console" with "Python Console has stopped working" message.  Would you tell
me what I need to check to run this script? It looks to me having a problem
when loading a module.

Thanks,
Spark.

C:\Automation\PythonNet\src\tests>..\..\npython test_engine.py

Unhandled Exception: System.Reflection.TargetInvocationException: Exception
has been thrown by the target of an invocati
on. ---> System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that
other memory is corrupt.
   at Python.Runtime.Runtime.PyImport_ImportModule(String name)
   at Python.Runtime.PythonEngine.ImportModule(String name) in
c:\Automation\PythonNet\src\runtime\pythonengine.cs:line
276
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,
Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters
, CultureInfo culture)
   at Python.Runtime.MethodBinder.Invoke(IntPtr inst, IntPtr args, IntPtr
kw, MethodBase info, MethodInfo[] methodinfo)
in c:\Automation\PythonNet\src\runtime\methodbinder.cs:line 356
   at Python.Runtime.MethodObject.Invoke(IntPtr target, IntPtr args, IntPtr
kw, MethodBase info) in c:\Automation\Python
Net\src\runtime\methodobject.cs:line 63
   at Python.Runtime.MethodBinding.tp_call(IntPtr ob, IntPtr args, IntPtr
kw) in c:\Automation\PythonNet\src\runtime\met
hodbinding.cs:line 135
   at Python.Runtime.Runtime.Py_Main(Int32 argc, String[] argv)
   at Python.Runtime.PythonConsole.Main(String[] args) in
c:\Automation\PythonNet\src\console\pythonconsole.cs:line 24

C:\Automation\PythonNet\src\tests>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20130404/e35d744d/attachment.html>


More information about the PythonDotNet mailing list