I've been learning Python Macros on OpenOffice and some trouble came to me.
First of all, Im trying to do this:
Code: Select all
import scipy.stats as st
#from scipy import stats as st
def RunMacro():
passSo I can see the Macro when I open OpenOffice Calc.
The problem comes when I run it: it freezes the Calc.
I've already tried the solution given here: http://forum.openoffice.org/en/forum/vi ... 20&t=55675 , by karolus.
But I have no sucess (you can see I've wrote and commented this solution on the code above).
I dont know if it's wrong when I just copy and paste the Numpy and Scipy lib folders on C:\Program Files (x86)\OpenOffice.org 3\Basis\program\python-core-2.6.1\lib\site-packages.
These Numpy and Scipy folders are the ones in my Python 2.6 installed in C:\Python26.
When I do this I guess Im installing it with sucess, since I can import those modules in the shell: C:\Program Files (x86)\OpenOffice.org 3\program\python.exe
Ex.:
Code: Select all
>>>import scipy.statsCode: Select all
import scipy
import numpy
def RunMacro():
passDoes anyone knows where should I go? What am I doing wrong? Is that possible to import scipy.stats to my OpenOffice Python Macro?