GreyHound
12th April 2010, 19:44
Hi,
first of all, i hope i chose the right forum, but it thought i am having "installation" problems, so i might be right here.
I'm developing an Application (which is Qt based itself) .. with Python integration using boost::python.
At first i want to mention that i don't have any problems running PyQt4 code using my native python interpreter /somewhere/Python26/Python.exe
Now i try to have my script sourrounding understand pyqt4 so scripts can take usage of it. Unfortunatly i am getting
ImportError: DLL load failed: The specified procedure could not be found. errors when i try to run python code like
from PyQt4 import QtGui.
import PyQt4 or
from PyQt4 import * will pass without any errors, but not giving me access to anything inside the Module.
I spent a few hours on investigation by now and couldn't find anything related so far, the most issues about PyQt + embedding are about sharing objects, not about the installation process itself.
I guess i miss some setup required for my runtime python interpreter to know where to look for the dlls or something similar.
My current application folder setup is like this:
Application.exe
boost_python-vc90-mt-1_41.dll
python26.dll
QtCore4.dll
QtGui4.dll
Qt.pyd
QtCore.pyd
QtGui.pyd
TestFile.txt
I successfully read the TestFile.txt by reading "./TestFile.txt" via Python ... so the base path of the interpreter should find those modules as well?
I also tried placing all *.pyd files from my PyQt4 installation inside the application folder to be sure its not a problem because the qt system is not complete.
I've no idea how to get PyQt working inside my application and would be very grateful for any hint that might get me into the right direction.
Thanks
Gunnar
first of all, i hope i chose the right forum, but it thought i am having "installation" problems, so i might be right here.
I'm developing an Application (which is Qt based itself) .. with Python integration using boost::python.
At first i want to mention that i don't have any problems running PyQt4 code using my native python interpreter /somewhere/Python26/Python.exe
Now i try to have my script sourrounding understand pyqt4 so scripts can take usage of it. Unfortunatly i am getting
ImportError: DLL load failed: The specified procedure could not be found. errors when i try to run python code like
from PyQt4 import QtGui.
import PyQt4 or
from PyQt4 import * will pass without any errors, but not giving me access to anything inside the Module.
I spent a few hours on investigation by now and couldn't find anything related so far, the most issues about PyQt + embedding are about sharing objects, not about the installation process itself.
I guess i miss some setup required for my runtime python interpreter to know where to look for the dlls or something similar.
My current application folder setup is like this:
Application.exe
boost_python-vc90-mt-1_41.dll
python26.dll
QtCore4.dll
QtGui4.dll
Qt.pyd
QtCore.pyd
QtGui.pyd
TestFile.txt
I successfully read the TestFile.txt by reading "./TestFile.txt" via Python ... so the base path of the interpreter should find those modules as well?
I also tried placing all *.pyd files from my PyQt4 installation inside the application folder to be sure its not a problem because the qt system is not complete.
I've no idea how to get PyQt working inside my application and would be very grateful for any hint that might get me into the right direction.
Thanks
Gunnar