⇤ ← Revision 1 as of 2012-05-21 03:59:10
Size: 808
Comment:
|
← Revision 2 as of 2012-07-04 07:54:01 ⇥
Size: 894
Comment: wiki restore 2013-01-23
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Line 3: | Line 4: |
I trying to make minimal part of Python to work as part (static library) of my iOS application for internal scripting. I used configure under Mac OS X(10.7) and it was successful. Then I got compilable and linkable XCode project very fast. The problem is, when I trying to use Python by Py_NoSiteFlag=1; Py_Initialize(); it fails with error "Fatal Python error: exceptions bootstrapping error." inside _PyExc_Init(). I tried to debug it, but unfortunately I cant understand why it fails. May be bacause I noob in Python source, but anyway, I need to port it. Tried 2.7.3, or latest 3.x, it was the same result as above. Any solution or hint will be very helpful. |
|
Line 12: | Line 5: |
Best Regards, Dmitry Stepanushkin |
I trying to make minimal part of Python to work as part (static library) of my iOS application for internal scripting. I used configure under Mac OS X(10.7) and it was successful. Then I got compilable and linkable XCode project very fast. The problem is, when I trying to use Python by Py_[[NoSiteFlag|NoSiteFlag]]=1; Py_Initialize(); it fails with error "Fatal Python error: exceptions bootstrapping error." inside _[[PyExc|PyExc]]_Init(). I tried to debug it, but unfortunately I cant understand why it fails. May be bacause I noob in Python source, but anyway, I need to port it. Tried 2.7.3, or latest 3.x, it was the same result as above. Any solution or hint will be very helpful. Best Regards, Dmitry Stepanushkin |
Line 16: | Line 12: |
CategoryAskingForHelp | [[CategoryAskingForHelp|CategoryAskingForHelp]] P.S. I found solution by myself. |
Asking for Help: Embedding Python core to iOS application
I trying to make minimal part of Python to work as part (static library) of my iOS application for internal scripting. I used configure under Mac OS X(10.7) and it was successful. Then I got compilable and linkable XCode project very fast. The problem is, when I trying to use Python by Py_NoSiteFlag=1; Py_Initialize(); it fails with error "Fatal Python error: exceptions bootstrapping error." inside _PyExc_Init(). I tried to debug it, but unfortunately I cant understand why it fails. May be bacause I noob in Python source, but anyway, I need to port it. Tried 2.7.3, or latest 3.x, it was the same result as above. Any solution or hint will be very helpful.
Best Regards, Dmitry Stepanushkin
P.S. I found solution by myself.