Using python in D
rikki cattermole
rikki at cattermole.co.nz
Fri Jun 7 04:39:14 UTC 2019
On 07/06/2019 3:54 PM, rnd wrote:
> Edit:
>
> I tried above D program and got following error:
>
> core.exception.AssertError@/home/abcde/.dub/packages/pyd-0.10.5/pyd/infrastructure/pyd/embedded.d(53):
> python not initialized
> ----------------
> ??:? _d_assert_msg [0x5562d3f3c466]
> /home/abcde/.dub/packages/pyd-0.10.5/pyd/infrastructure/pyd/embedded.d:53 pyd.pydobject.PydObject
> pyd.embedded.py_import(immutable(char)[]) [0x5562d3f0b2f1]
> source/main.d:6 _Dmain [0x5562d3f0adeb]
>
>
> How should I 'initialize python' ?
The example is probably a good place to begin.
https://github.com/ariovistus/pyd/blob/master/examples/simple_embedded/hello.d
More information about the Digitalmars-d-learn
mailing list