Still tryin' to freeze my wxmpl matplotlib application.... sigh.
This is wxpython + wxmpl + matplotlib. This has turned into one hell of a fight - BUT I think I am about to win. You have to keep the faith :-}
Name the py2exe issue with freezing matplotlib / wxmpl and I have been there fought that. I have slayed many dragons...
I now have a problem that has been asked before on this list. I have tried the answer that was offered- it didnt help. I think I am in a postion to ask a simple solid question...
When I run my application I see this....
Fatal Python error: Call to API function without first calling import_libnumarray() in Src\_convmodule.c
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
I added import numarray all over the place... a previous post suggested that maybe Wxpython was calling numarray before I was... no I dont think wxpython and numarray ever need each other.
To help prove this I changed my application to this: (a boa app - so this code occurs early in execution but not before wxpython has been used...
def __init__(self, parent):
import numarray.numarrayall # desperate attempt to stop error api call without first calling import_libnumarray
self._init_ctrls(parent) # init wxpython controls
and bang my application no longer runs. If I comment out this print line, the application runs perfectly except when you click the button to draw the graph. Then you get the same error message as above.
BTW in the development environments - application works fine - and that's because the development environs are loading the modules from the python installation - is my call...
In my library file you can see that numarray is definitely included - it's there.
So my question is:
Q: How do you force the loading (not the inclusion) of the nummary module? Or how do you get import_libnumarray to run?
Can some one tell me more about the mechanism python uses to load the modules.. What triggers the load call? Where?
I know I am close. Rest of the application is 95% finished. Customer loves it. 2 week delay coz I cant freeze the @#$@$%@ thing.
BTW kudos to py2exe developers and maintainers - as I learn more about the challenges in identifying the modules and the packaging of them etc - I appreciate it. This is not a sucking up effort to get an answer - but if it helps.... :-}
PS I have cross posted this to matploblib and py2exe lists - I am desperate!
RedHat Certified Engineer
TBITC Pty Ltd
Professional Computer Support for Business
Mobile 0422 942 972
Office 85 662 016