473,379 Members | 1,250 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,379 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 4239
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

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

Similar topics

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- and ActivePython-2.2.1-222. In the sample below, commenting out...
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 =====================================================================...
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...
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...
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...
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)....
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...
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...
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...
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,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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...
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.