By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,923 Members | 1,443 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,923 IT Pros & Developers. It's quick & easy.

Problem compiling an exe with py2exe and pyinstaller 1.3

luke14free
P: 79
Hello,
I'm working on a project and I need to compile it to run it on win as an exe.
I choose pyinstaller to build my exe but after several tries my result is always the same, from my console (win2k - py2.5/2.4) I type:
Expand|Select|Wrap|Line Numbers
  1. c:\>cd pyinstaller-1.3
  2. c:\pyinstaller-1.3>Makespec -w --noconsole ..\\fatture\\fatture.py
  3. [...]project compiled...now run Build to build (more or less)
  4. c:\pyinstaller-1.3>Build fatture\\fatture.spec
  5. [...]
  6. [...]
  7. Compiled successfully
  8.  
Then I try to execute my file and nothing happens. I thought it may have been a pyinstaller problem and i tried with py2exe, same result, when executing no window comes out.
My program has no sintax error, and I'm able to run it as a .py file.
Thanks in advance for help,
Luke
Nov 25 '07 #1
Share this Question
Share on Google+
7 Replies


luke14free
P: 79
Any idea ??
I've tried to comment secondaries class and function to see if it was a stupid problem of encoding but nothing...even if I cut them off...
Are there any other "compilers" to create exe from py?
Thanks,
Luke
Nov 26 '07 #2

KaezarRex
P: 52
Have you tried making the spec file without the -w and --noconsole options? If it works without them, try just using one or the other. -w and --noconsole do the same thing, so maybe using them both messes up the compiler.
Nov 26 '07 #3

KaezarRex
P: 52
Also, make sure you are trying to run "fatture\distfatture\fatture.exe" not "fatture\buildfatture\fatture.exe"
Nov 26 '07 #4

luke14free
P: 79
Yes of course i did, I've even tried to put debugging and what i get is
Error Loading python25.dll
[even after replacing it with python's original one]
-- and when tring to compile on my notebook i get(with debugging)--
RC: -1 from fatture
[where fatture is my python main file]
Do you know what it mean? I googled it but nothing,,,it's strange, I can execute my program and I'm not able to compile!
Do you need me to email you my code?
Greetings,
Luke
Nov 26 '07 #5

KaezarRex
P: 52
I have never encountered that error before. The only thing I could find online that seemed related was this page. It looks like the author got the same error as you did on your notebook. Sorry I cannot be of more help.
Nov 26 '07 #6

luke14free
P: 79
No problem Kaesar you did much. Is there anyone else who could help me?
Nov 26 '07 #7

luke14free
P: 79
Problem solved, it seems that importing 2 times the same lib [as written above] makes py2exe and pyinstaller crash.

import wx
from wx import *

This bug should be submitted somewhere, suddenly I've no time to do that, I hope will report that soon.
Thanks for help,
Reguards,
Luke
Nov 27 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.