Forum Xamarin.iOS

Embedding Python (native reference) Build -> Success -> Build -> Compile Error

AdamVenturellaAdamVenturella USMember ✭✭

So I can embed python and run my project, and it does indeed run. But then when I make some code changes and attempt to rebuild the project I get the following error:

/Users/myuser/Projects/Xamarin/MacAppDemo/MMP: Error MM0000: Unexpected error - Please file a bug report at (MM0000) (MacAppDemo)

If I clean the project and rebuild, everything runs again just fine.

Has anyone encountered this behavior before?

I'm embedding Python 3.4.3. and I just have a simple wrapper so far. Out of which I am just calling Py_Initialize() then PyRun_SimpleString() then Py_Finalize(). It's not the Python part that failing, it's the compilation on any change, then attempting to run the project again, without cleaning it first.

If I clean, again, it runs just fine.

public static class Python
        public static extern void Py_Initialize();

        public static extern int PyRun_SimpleString(string command);

        public static extern void Py_Finalize();

        public static extern void Py_SetPath(string path);

        public static extern void Py_SetPythonHome(string path);

        public static extern void Py_SetProgramName(string path);
Sign In or Register to comment.