473,378 Members | 1,555 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,378 software developers and data experts.

py2exe issues

Since distutils is a recent topic (of sorts), I figured it was time to
post my quandary.

I have a utility I've written, and I wanted to create a standalone
executable from it. I tried using Installer (which I've used in the
past), with no success. Now I'm trying py2exe. I use the bdist_wininst
method (?) and it seems to create all the files. However, nothing
happens when I double-click the .exe file. I saw similar behavior from
Installer, so I'm inclined to think there's something wrong with the
script. It runs fine from my Python directory. I am currently
searching the code for any weird hard-coded pathnames or something like
that, but I don't think that should matter.

All that being said, I'm attaching the script for general perusal, in
the hopes that I might garner some insight from the educated masses.
Apologies in advance for any horrific violations of basic coding
principles, as I have no formal education in programming.

Some pertinent information: This is being run and built on WinXP, using
Python 2.3 and Tk 8.4 (through Tkinter). I will be happy to supply any
additional information required.

- Mark Daley

Jul 18 '05 #1
1 1292
Hello Mark,
Now I'm trying py2exe. I use the bdist wininst
method (?) and it seems to create all the files. I usually use "python setup.py py2exe" and it works fine.
However, nothing
happens when I double-click the .exe file. I saw similar behavior from
Installer, so I'm inclined to think there's something wrong with the
script. It runs fine from my Python directory. I am currently
searching the code for any weird hard-coded pathnames or something like
that, but I don't think that should matter.

Make sure py2exe create a console program and run it from a "cmd"
window.
If there any exception you'll be able to see them.

A wild guess whould be that your script is using some module that
wasn't detected by distutils and you get an ImportError, if this is
the case use the --force-import option of py2exe.

HTH.
Miki
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

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...
0
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
5
by: Ulrich Goertz | last post by:
Hello, I am trying to understand how py2exe 0.5.0 deals with data files. My application tries to access certain data files via sys.path (e.g. the file 'menus.def' which lies in the same path as...
5
by: Thomas Heller | last post by:
**py2exe 0.5.4** released =================================== py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without requiring...
2
by: kdahlhaus | last post by:
Is anyone aware of issues with Py2exe and extensions compiled with cygwin/mingw for Python 2.3? I have an extension that wraps access to some C DLLs. The generated executable always segfaults at...
9
by: Isaac Rodriguez | last post by:
Hi, I am looking for feedback from people that has used or still uses Py2Exe. I love to program in python, and I would like to use it to write support tools for our development team, but I...
5
by: Alexnb | last post by:
Hello I am sure most of you are familiar with py2exe. I am having a bit of a problem. See the program has a few pictures involved and the .ico it uses for the windows. However, the pictures are...
1
by: Paul Sijben | last post by:
I am trying to turn my application into a WinXP exe. Py2exe has packaged all my files up into one humongous executable. When trying to run the app, it complains that it can not find modules I just...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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$) { } ...
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...
1
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 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.