Closed laurentbeaumer closed 8 years ago
I've never tried but I don't think that's possible as PyRFA is built with C/C++.
Thanks, it was a quick reply.
Just for information, Python .NET is wrapper around pythonXX.dll and uses P/Invoke, the same way for any DLL with unmanaged code (including C/C++).
For example, it works with NumPy. So theoretically, it could have worked with PyRFA...
Can you import pyrfa
in pythonnet?
@laurentbeaumer, agreed, it might do the trick. Actually, it can be boiled down to just a matter of language A, Python being consumed by another language B aka .NET C#. That being said, it would better to directly consume the C/C++ dll though C# P/Invoke rather than passing through yet another layer.
I have posted the issue also on the Github of pythonnet, and it has been resolved: https://github.com/pythonnet/pythonnet/issues/266
Thanks all
PyRFA 8.0.2 now supports unicode strings.
Hi
I have been trying to call pyrfa from .NET (C#).
It doesn't work with IronPython as the latter doesn't support pyd files.
So I am now trying with Python .NET (pythonnet).
Using Python .NET, the code creates a dynamic object from pyrfa.
I have been trying to invoke/use different methods ("createConfigDb", etc.) but I get an error like: "'Python.Runtime.PyObject' does not contain a definition for 'createConfigDb'"
My question: is there a way to call pyrfa from C#/.NET?
Thanks