[Python.NET] Issue not finding Assembly

Denis Akhiyarov denis.akhiyarov at gmail.com
Wed Jun 21 12:27:29 EDT 2017


I just looked again at your problem and noticed that you have 32-bit .NET
API, but using 64-bit CPython. Have you tried loading this .NET DLL from
32-bit and 64-bit IronPython or from 32-bit CPython?



On Wed, Jun 21, 2017, 2:36 AM A M <argantonio65 at gmail.com> wrote:

> Hello,
>
> I'm using ironpython for a while to operate a .dll library. This works,
> but I need to use some CPython libraries so I would like to try to
> integrate de .dll in python 2.7
>
> I installed pythonnet through > pip install pythonnet
> (Windows 7) installing pythonnet-2.3.0-cp27-cp27m-win_amd64.whl
>
> I proceeded like in ironpython:
>
> import clr
> import sys
> sys.path.append("C:/Program Files (x86)/DHI/2016/bin/")
> clr.AddReference('DHI.Tornado.NET')
> import TornadoNET
>
> and meanwhile in ironpython it works, in using python with pythonnet I get:
>
> File "Automated.py", line 32, in <module>
> clr.AddReference('DHI.Tornado.NET')
> System.IO.FileNotFoundException: Unable to find assembly 'DHI.Tornado.NET
> '.
> at Python.Runtime.CLRModule.AddReference(String Name)
>
> DHI.Tornado.NET is a .net 4.0
>
> I read everything I could on previous similar issues, but I haven't been
> able to solve it. Someone has an idea?
>
> Best regards
> _________________________________________________
> Python.NET mailing list - PythonDotNet at python.org
> https://mail.python.org/mailman/listinfo/pythondotnet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20170621/27b63748/attachment.html>


More information about the PythonDotNet mailing list