Unable to use third party module
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Hello everybody,
First of all, thanks a lot for this great tool !!!
I experience trouble when I try to use external python third party module.
In this example :
the first qWarning return the good information (Python 2.7.14). That inform that the "import sys" is working. But the second one return a invalid QVariant.
It seems that the "import imdb" was not successfull.
For information, imdb python module is well installed in the dist-packages python folder. And all is working when I use "import imdb" in a native python console.
Is there something particular to do to enable module import ?
Is the a way to debug what happens ?
Thanks in advance,
Slea18
Environnement :
- Debian Sid (x86_64)
- Default debian pythonqt package : PythonQt 3.2
- Qt version 5.9.1
Ok I found a (not the) solution :
I don't know why but now it works.
You have to call PythonQt::init without the IgnoreSiteModule flag, otherwise you can only import standard Python modules, nothing from site-packages.