[QScintilla] dynamic module not initialized properly (qscintilla2
python binding)
Phil Thompson
phil at riverbankcomputing.com
Mon Dec 17 09:29:55 GMT 2007
On Monday 17 December 2007, Neal Becker wrote:
> I think I am on the track of the problem.
> In sipQscicmodule.cpp:
>
> sipModule = Py_InitModule((char *)sipModuleAPI_Qsci.em_name,sip_methods);
>
> (gdb) p sipModuleAPI_Qsci.em_name
> $7 = 0x2aaaaf889797 "PyQt4.Qsci"
>
> It was imported as "Qsci". I'm thinking that PyQt4.Qsci != Qsci is why we
> get the error here:
>
> In importdl.c:
> m = PyDict_GetItemString(PyImport_GetModuleDict(), name);
> if (m == NULL) {
> PyErr_SetString(PyExc_SystemError,
> "dynamic module not initialized properly");
What's the context for all this? QScintilla and the Python bindings build
without problems.
Phil
More information about the QScintilla
mailing list