471,349 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

Problem compiling an exe with py2exe and pyinstaller 1.3

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
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,
Nov 25 '07 #1
7 4000
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?
Nov 26 '07 #2
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
Also, make sure you are trying to run "fatture\distfatture\fatture.exe" not "fatture\buildfatture\fatture.exe"
Nov 26 '07 #4
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?
Nov 26 '07 #5
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
No problem Kaesar you did much. Is there anyone else who could help me?
Nov 26 '07 #7
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,
Nov 27 '07 #8

Post your reply

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

Similar topics

reply views Thread by RJS | last post: by
6 posts views Thread by Club-B42 | last post: by
13 posts views Thread by Thomas Heller | last post: by
2 posts views Thread by Jimmy Retzlaff | last post: by
10 posts views Thread by Vincent Delporte | last post: by
3 posts views Thread by Martin Evans | last post: by
2 posts views Thread by Marcus | last post: by
5 posts views Thread by msunderwd | last post: by
3 posts views Thread by Astan Chee | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.