I am using CPython and I have a C # dll. I am trying to use Python for .NET to make them speak. I cannot use IronPython because I need to integrate it into my existing CPython system.
I am completely new to Python for .NET, and I actually have very little experience with Python and no experience with C #. So please forgive me if my question seems very simple.
I am using Python 2.7.3 and I downloaded pythonnet-2.0-alpha2-clr2.0_131_py27_UCS2 and unzip it into a folder called pyfornet_test, which also contains the DLL that I am trying to use (DotNet4Class.dll)
Then I run this:
import sys import os import clr sys.path.append(r"C:\pyfornet_test") clr.AddReference("DotNet4Class.dll")
Which gives me this error:
System.IO.FileNotFoundException: Unable to find assembly 'DotNet4Class.dll'. at Python.Runtime.CLRModule.AddReference(String name) in C:\Users\Barton\Documents\Visual Studio 2008\Projects\PyShar p\trunk\pythonnet\src\runtime\moduleobject.cs:line 375
Any advice would be highly appreciated. Thanks!
Annie source share