473,386 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Problem compiling an exe with py2exe and pyinstaller 1.3

luke14free
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
7 4240
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
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?
Greetings,
Luke
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,
Reguards,
Luke
Nov 27 '07 #8

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

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
6
by: Club-B42 | last post by:
i've compiled my programm using command "python setup.py py2exe >1" python script works fine, but .exe version fails with =====================================================================...
13
by: Thomas Heller | last post by:
I'm slowly getting tired maintaining py2exe. It is far from perfect, although it has interesting features (I would say). The problem, apart from the work, is that it is good enough for me - I...
2
by: Jimmy Retzlaff | last post by:
I am taking over the maintenance and support of py2exe from Thomas Heller. As he announced a few weeks ago he is looking to focus on other things. py2exe has been very useful to me over the years...
10
by: Vincent Delporte | last post by:
Hi I browsed the archives, but since some messages date back a bit, I wanted to make sure that - py2exe is still the best tool in town to compile Python scripts to run on a Windows host that...
3
by: Martin Evans | last post by:
I have converted a Python script using py2exe and have it set to not bundle or compress. The result is my exe and all the support files including library.zip (exactly as planned - nice job py2exe)....
2
by: Marcus | last post by:
Hi, I'm to the stage where I need to deploy the app I built with wxPython. I've been able to successfully build it w/py2exe into a binary (about 10MB size in total). What I'd like to do is...
5
by: msunderwd | last post by:
Having a problem with "compiling" a Tkinter/python program using py2exe (and pyinstaller, for that matter)... I have several dialogs that are derived from the tkSimpleDialog.Dialog class. These...
3
by: Astan Chee | last post by:
Hi, I was just wondering if there is a equivalent of py2exe on linux (centOS) and mac (OS X). I have a python script that uses wx and I dont want to install wx on linux/mac machines. What are my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.