Embedding Python into C - importing modules

后端 未结 2 1538
-上瘾入骨i
-上瘾入骨i 2021-02-09 12:38

I am having problems using the Embedded Python for C as per the Documentation - Whenever I try using imported modules I get an :

Unhandled exception at 0x

2条回答
  •  旧时难觅i
    2021-02-09 13:30

    You're proceeding without checking for errors, so it's no shock your code fails this way. From your description, it sounds like mymod is NULL, which would be consistent with a failed import. One possible cause of the failed import is that the reverse.py you posted has a syntax error.

提交回复
热议问题