dsteenari - 2016-04-12

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:

import numpy as np
print np.linspace(0,10,32)
print np.random.normal()
print "Done"

Works as expected, however if the following is included:

from scipy.optimize import curve_fit 

...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!