Issue importing third party modules (scipy, numpy, etc)
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Hi,
Currently testing PythonQt for testing some scripting of functions in an application. In the scripting, some numerical methods are sometimes necessary (curve fitting, etc.).
At the moment I'm having some issues importing some third party modules like submodules of numpy and scipy from PythonQt. I use the evalFile() function.
For example:
Works as expected, however if the following is included:
...then the evalFile() function never returns (i.e. the thread that runs the function keeps blocking forever). Running "import scipy" works, but running "import scipy.optimize" does not.
Running the same python code directly in the python interpretter works as expected.
Has anybody else had similar problems?
Or has somebody else been able to use functions from numpy/scipy without issues?
Versions:
Qt 5.4.1
Python 2.7.10
PythonQt 3.0
Thanks!