From: Sharma, G. <gir...@wu...> - 2016-03-09 23:17:49
|
Dear Kloth, I thought that the exe was running fine but there is still a problem. Background: In my .py file I used Tkinter to make a GUI and take inputs. Then I use scipy, numpy functions to create some plots, which I produce using matplotlib. I thought the exe is running because there are no errors in the log file now and the Tkinter window opens, takes inputs but it fails to give me plots when I submit my inputs to the GUI (which I did not check earlier) Following will explain the current problem better: My computer Other computer Anaconda Yes No Python Yes No exe without the 2 DLLs Yes No exe with the 2 DLLs No* No* *(opens GUI but no plot or data file, gives no error in log file) This is my mainscript (Moment_Final.py) : https://github.com/girishsharma91/Python_github/blob/master/Moment_Final.py This is my set up file (setup.py) : https://github.com/girishsharma91/Python_github/blob/master/setup.py ________________________________________ From: Sharma, Girish <gir...@wu...> Sent: Wednesday, March 9, 2016 9:21 AM To: Jeremy Kloth Cc: py2...@li... Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers Dear Kloth, I cannot tell you how much helpful you were. Now, the exe is running on other computers. Thanks a lot Kloth. It would not be possible for me to get it done without your help. You are just awesome. - Girish Sharma ________________________________________ From: Jeremy Kloth <jer...@gm...> Sent: Wednesday, March 9, 2016 2:39 AM To: Sharma, Girish Cc: py2...@li... Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers On Tue, Mar 8, 2016 at 11:17 PM, Sharma, Girish <gir...@wu...> wrote: > Dear Kloth, > > But the users would not wish to download and install Anaconda Python 2.7 on their computers just to run my exe. I feel There is a small mistake, which I am not able to catch. Please have a look at my setup.py file, if that helps. In short, what you have done *should* work OOTB. However, there is a bug (edge case really) within py2exe that is preventing this from working. To get you up and running, you will need to add 'libiomp5md.dll' and 'mkl_core.dll' to your DIST directory. They are located in '<anacodadir>\Library\bin'. As for the bug in py2exe, it relates to the usage of Windows API function BindImageEx() on the 'mkl_intel_thread.dll' DLL. That function is not finding any modules to bind (perhaps already bound?). The fix for this would involve reading of the PE format directly to locate the imported modules. -- Jeremy Kloth ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ Py2exe-users mailing list Py2...@li... https://lists.sourceforge.net/lists/listinfo/py2exe-users |