[Python.NET] accessing .net dlls from python

ivan Uemlianin i.uemlianin at bangor.ac.uk
Tue Mar 28 12:45:57 CEST 2006


Dear All

I'm interested in accessing .net dlls from python (e.g. to write test 
scripts).  Is pythonnet the correct software to use?

I have had a go.  I have installed pythonnet and tested it with some of 
the code samples: all well.  Putting a .net dll called foo.dll in the 
current directory, 'import foo' raises the following error:

  ImportError: dynamic module does not define init function (initfoo)

Is there a liitle bit extra I need to do, or am I barking up the wrong 
tree?  I suppose I'm looking for something that will allow me to import 
.net dlls as if they were python modules.

Any advice much appreciated.

Best wishes

Ivan




More information about the PythonDotNet mailing list