If you can share equivalent calls in matlab and python to .NET DLLs we may
be able to figure out what caused the error.

pythonnet is not using C compiler on Windows, so VS version does not
matter. What matters is .NET version (4.0+), and bitness (32-bit, 64-bit,
or AnyCPU).

If you were able to make calls using pythonnet to DLL and the error is on
final step (CalculateResults), then it is very unlikely to have issues with
compiler, etc.

I suspect some method overloading differences, which you can enforce with
.Overloads[] helper function: http://pythonnet.github.io/

Thanks,
Denis

On Sun, May 21, 2017 at 11:47 AM, Matt Slezak via PythonDotNet <
pythondotnet@python.org> wrote:

> Just FYI the error I get trying to calculate results (I have an equivalent
> MATLAB wrapper that works):
>
> QCLSpread.CalculateResults()
> Traceback (most recent call last):
>
>   File "<ipython-input-32-b11ac96e29d2>", line 1, in <module>
>     QCLSpread.CalculateResults()
>
> Exception: QCLDispatch.QclSpreadOpt
>    at QclEndurAdapter.QclSpreadOption.CalculateResults()
>
> The NET DLL was compiled with Visual Studio 2013 and Python 3.5 uses
> Visual Studio 2015 I don't know if that's the problem but I can recompile
> the NET DLL if so.  Otherwise if anyone has ideas on how to get more
> information on the error that would be greatly appreciated.  The error is
> not very clear in a troubleshooting sense.
>
>
> On Sunday, May 21, 2017 10:55 AM, Matt Slezak via PythonDotNet <
> pythondotnet@python.org> wrote:
>
>
> I have wrapped a project and it does everything except calculate the
> results (blah).  In Cython I know I had to compile Python add-ins with
> Visual Studio 2015 for Python 3.5.  The NET DLL I am using was compiled
> with Visual Studio 2013.  Could this be a problem?  Or does PythonNET not
> care about the compiler used for DLLs?
>
> Much appreciated.
>
> Matt Slezak
> _________________________________________________
> Python.NET mailing list - PythonDotNet@python.org
> https://mail.python.org/mailman/listinfo/pythondotnet
>
>
>
> _________________________________________________
> Python.NET mailing list - PythonDotNet@python.org
> https://mail.python.org/mailman/listinfo/pythondotnet
>
>
_________________________________________________
Python.NET mailing list - PythonDotNet@python.org
https://mail.python.org/mailman/listinfo/pythondotnet

Reply via email to