|
|
2010-05-24
, 22:05
|
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#2
|
Py_Initialize();
PyRun_SimpleString("from PyQt4 import QtCore, QtGui");
if ( PyErr_Occurred() )
PyErr_Print();
Py_Finalize();

|
|
2010-05-24
, 23:14
|
|
Posts: 6 |
Thanked: 3 times |
Joined on May 2010
|
#3
|
So what now? Is there anything magic I don't know when using shared library runtime loading?
|
|
2010-05-25
, 19:30
|
|
Posts: 190 |
Thanked: 129 times |
Joined on Mar 2010
@ Bavaria, Germany
|
#4
|

I'm testing the python embedding with PyQt4 but unfortunately the loading in scratchbox fails with a strange message. The same code runs fine on Windows XP.
Traceback (most recent call last): File "/home/gri/web2sms-0.1.1/dist/providers/provider_test.py", line 22, in <module> from PyQt4 import QtCore, QtGui ImportError: /usr/lib/python2.5/site-packages/PyQt4/QtCore.so: undefined symbol: PyProperty_TypeSo maybe someone here knows why this error happens.
C++ source of python initialization
Source of python script