Re: [Python.NET] Issue not finding Assembly

2017-06-21 Thread A M
Indeed, that WAS the issue. My system runs Windows 64-bit but for software issues, I had to run a DHI software on the 32-bit version. Checking I see that the working ironpython version is also 32-bit. Meanwhile my current python version is 64-bit. I installed python 32 bits and installed pythonnet

Re: [Python.NET] Issue not finding Assembly

2017-06-21 Thread Denis Akhiyarov
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 wrote: > Hello, > > I'm using ironpython for a while to oper

Re: [Python.NET] -|EXT|- Re: PyScope

2017-06-21 Thread WARD Steve
Hi Denis, Initial feedback is that it works. Had to change to UCS2 (PYTHON27 already), I am going with 64 bit by the way. Had to figure-out using PyScope.Set() by checking the source. Now that I have a working platform, I have a lot to do to move the project forward. So, thanks very much and I

Re: [Python.NET] PythonNet on Cygwin

2017-06-21 Thread Denis Akhiyarov
pythonnet with Mono now works in Linux Subsystem for Windows 10 and docker containers. More details in this issue: https://mail.python.org/pipermail/pythondotnet/2014-December/001623.html I was not able to get it going in msys or cygwin environment. On Wed, Dec 10, 2014 at 9:23 AM, Denis Akhiyar

Re: [Python.NET] Issue not finding Assembly

2017-06-21 Thread Nikhil Garg
have you tried changing sys.path.append("C:/Program Files (x86)/DHI/2016/bin/") to sys.path.append("C:\\Program Files (x86)\\DHI\\2016\\bin") also, just to add, as I also use python with DHI toolbox, and I am assuming it is the case here, you can do it without explicitly setting the path, as wh

Re: [Python.NET] Issue not finding Assembly

2017-06-21 Thread Denis Akhiyarov
Hi, Are you able to load any other .NET dlls with pythonnet? Can you try inspecting the assembly binding log viewer according to this troubleshooting wiki: https://github.com/pythonnet/pythonnet/wiki/Troubleshooting-on-Windows-and-Linux#assembly-binding-errors Also in Process Explorer (Sysinter

[Python.NET] Issue not finding Assembly

2017-06-21 Thread A M
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