[Python.NET] calling Python via Python.Runtime DLL from IronPython

Tony Roberts tony at pyxll.com
Tue Apr 19 16:37:47 EDT 2016


No need to import the c Python extension - from IronPython you would be
able to reference the Python.runtime assembly without it. The problem
you're having sounds like the python path isn't correct for cPython. You
could try setting the PYTHONHOME environment variable and see if that gets
you any further.

Best regards,
Tony
On Tue, Apr 19, 2016 at 9:30 PM Denis Akhiyarov <denis.akhiyarov at gmail.com>
wrote:

> Did you try this code?
>
> http://www.voidspace.org.uk/ironpython/cpython_extensions.shtml
>
> On Tue, Apr 19, 2016 at 2:09 PM, Cameron Hayne <
> cameron.hayne at introspect.ca> wrote:
>
>> Should it be possible to call Python (CPython) code from IronPython (an
>> IronPython script) via the Python.Runtime DLL ?
>> I.e. an IronPython script that imports the Python.Runtime DLL and then
>> calls the functions provided by that DLL.
>> In my preliminary tests, I get an error about ‘copy_reg’ not being found.
>> This error seems to happen when calling PythonEngine.Initialize().
>>
>> --
>> Cameron Hayne
>> cameron.hayne at introspect.ca
>>
>>
>>
>> _________________________________________________
>> Python.NET mailing list - PythonDotNet at python.org
>> https://mail.python.org/mailman/listinfo/pythondotnet
>>
>
> _________________________________________________
> 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/20160419/61031caa/attachment.html>


More information about the PythonDotNet mailing list