[Python.NET] Efficient copy of .NET Array to ctypes or numpy array

2014-10-27 Thread Nikhil Garg
Hi, I have looked at the following thread to copy a c# array to numpy list using python dot net. https://mail.python.org/pipermail/pythondotnet/2014-May/001525.html When I try the methods mentioned in the complete thread I manage to get the array from simple iteration method or np.fromiter, but

Re: [Python.NET] Efficient copy of .NET Array to ctypes or numpy array

2014-10-30 Thread Nikhil Garg
Thanks Brad and Jeff for the detailed info. For now, fromiter is serving me well and has reduced my processing time considerably, so I am just going to stick with it. On 29 October 2014 11:04, Jeffrey Bush wrote: > I finally have a chance to chime in, and Bradley is exactly right. > Marshall.Co

[Python.NET] PythonNet on Cygwin

2014-12-10 Thread Nikhil Garg
Hi Guys, I was wondering if anyone knows how to make Python for .Net work on cygwin installation of python. I have been looking around and find a mixed bag of information. If anyone knows of the working version of Python for .Net and its dependency, I would appreciate if you could share it with me

[Python.NET] pyinstaller + pythonnet

2016-03-18 Thread Nikhil Garg
Hi All, I tried to build a very simple executable using pyinstaller, where my script just imported clr module. I managed to build the executable but then the executable doesnt run. I have posted the error below. I think the executable is able to find the runtime dll but it is unable to run it. U

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