Hi everyone.
I'm trying to create an exe for a simple pygame app on Win XP.
I think I've got the latest (python, py2exe, pygame) and my setup.py
file looks like this:
| from distutils.core import setup
| import glob
| import py2exe
|
| setup(name='pyD emo',
| windows=["pyDemo.py"],
| data_files=[("data",
| ["images/sensor.png", "images/start.png"])]
| )
Simple, eh? Well, all runs well, except for the following error:
| The following modules appear to be missing
| ['AppKit', 'Foundation', 'objc']
Since pyDemo doesn't use any of these libraries, I just ignored that.
When I try to run pyDemo.exe, I get the following error report from
the MS Visual C++ Runtime Library:
| Runtime error!
| Program: C:\mypath\pyDem o.exe
| This application has requestion the Runtime to terminate it in an unusual
way.
| Please contact the application's support team for more information.
Eeek! I've no idea where to go from here, so if anyone can help that
would be fantastic.
Thanks,
Sarah 4 2534
"Sarah Mount" <s.***********@ REALLYNOSPAMcov entry.ac.uk> writes: Hi everyone.
I'm trying to create an exe for a simple pygame app on Win XP. I think I've got the latest (python, py2exe, pygame) and my setup.py file looks like this:
| from distutils.core import setup | import glob | import py2exe | | setup(name='pyD emo', | windows=["pyDemo.py"], | data_files=[("data", | ["images/sensor.png", "images/start.png"])] | )
Simple, eh? Well, all runs well, except for the following error:
| The following modules appear to be missing | ['AppKit', 'Foundation', 'objc']
Since pyDemo doesn't use any of these libraries, I just ignored that.
When I try to run pyDemo.exe, I get the following error report from the MS Visual C++ Runtime Library:
| Runtime error! | Program: C:\mypath\pyDem o.exe | This application has requestion the Runtime to terminate it in an unusual way. | Please contact the application's support team for more information.
Eeek! I've no idea where to go from here, so if anyone can help that would be fantastic.
IIRC, pygame imports some of its modules from C code, and py2exe cannot
track these. You should try to include some (or all) of the pygame
modules explicitely with the --includes command line option. Or you
simply include the whole pygame package with '--packages pygame'.
HTH,
Thomas
"Thomas Heller" <th*****@python .net> wrote in message
news:ma******** *************** *************@p ython.org... IIRC, pygame imports some of its modules from C code, and py2exe cannot track these. You should try to include some (or all) of the pygame modules explicitely with the --includes command line option. Or you simply include the whole pygame package with '--packages pygame'.
Thanks Thomas, but sadly --packages didn't make any difference :-(
Installing pyObjc seems impossible on Windows as ffi support is missing
(doesn't wok with ctypes either) and py2exe isn't available for Linux!
:-(
Thanks anyway,
Sarah
"Sarah Mount" <s.***********@ REALLYNOSPAMcov entry.ac.uk> writes: "Thomas Heller" <th*****@python .net> wrote in message news:ma******** *************** *************@p ython.org...
IIRC, pygame imports some of its modules from C code, and py2exe cannot track these. You should try to include some (or all) of the pygame modules explicitely with the --includes command line option. Or you simply include the whole pygame package with '--packages pygame'.
Thanks Thomas, but sadly --packages didn't make any difference :-(
Installing pyObjc seems impossible on Windows as ffi support is missing (doesn't wok with ctypes either) and py2exe isn't available for Linux!
Now you've lost me. What has pyObjc and ctypes to do with pygame?
Confused,
Thomas
"Thomas Heller" <th*****@python .net> wrote in message
news:ma******** *************** *************@p ython.org... "Sarah Mount" <s.***********@ REALLYNOSPAMcov entry.ac.uk> writes:
"Thomas Heller" <th*****@python .net> wrote in message news:ma******** *************** *************@p ython.org...
IIRC, pygame imports some of its modules from C code, and py2exe cannot track these. You should try to include some (or all) of the pygame modules explicitely with the --includes command line option. Or you simply include the whole pygame package with '--packages pygame'.
Thanks Thomas, but sadly --packages didn't make any difference :-(
Installing pyObjc seems impossible on Windows as ffi support is missing (doesn't wok with ctypes either) and py2exe isn't available for Linux!
Now you've lost me. What has pyObjc and ctypes to do with pygame?
Sorry. The packages that are missing are "AppKit, objc, Foundation".
Googling for these, they seem to be part of pyObjc, which can't be
installed without libffi.
HTH,
Sarah This thread has been closed and replies have been disabled. Please start a new discussion. 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-2.3.3.1-Py22 and ActivePython-2.2.1-222.
In the sample below, commenting out "import numarray" allows the exe to
run. Left in, I get "4.exe has generated errors" etc.
I'm going around and around and there isn't much on Google.
py2exe output is last.
|
by: Marc |
last post by:
Hello,
I've fiddled with this for quite a while and thought I had the problem
solved. I had a version that would successfully compile and run. But
then I had to change the code to use a different module, and now it
will compile but not run again.
I know that functionality in this area is not fully supported yet, but
there has to be someone out there that has got this to work. I am
using Python2.3, with py2exe 0.4.2, and win32all 159....
|
by: Rene Olsthoorn |
last post by:
Dear readers,
py2exe has a problem including libxml2. Not at building time, but at
runtime. The libxml2.dll cannot be loaded... Is there anyone that NOT has
the problem? (and can you drop me your setup.py scipt, please).
Thanks in advance,
Rene O.
|
by: bapeterson |
last post by:
I'd like to use PY2EXE to "compile" a program using the
VPYTHON module (www.vpython.org). I have an example
where this was previously done to the demo script: Hanoi.py
(a towers of Hanoi demo) a couple of years back. When I try and duplicate
this I get the following warnings of missing modules:
warning: py2exe: **********************************
warning: py2exe: * The following modules were not found:
warning: py2exe: * Carbon.Folder
|
by: Lad |
last post by:
I try to make an exe file from my script with help of Py2exe but I am
not successfull.
I have my script
start.py that has only one command
###############
import rgs.py
##############
(rgs.py is the real program.)
| |
by: bwaha |
last post by:
First time trying to create an executable with py2exe. I have a small
program which makes use of python23 (2.3.5?), wxpython ('2.6.2.1'),
matplotlib ('0.83.2'), win32com (latest?), Numeric ('23.7') on Windows XP &
Win2000. The program runs without problem but as an exe it doesn't even get
to showing the GUI.
I get the following error log when I run the executable.
Traceback (most recent call last):
File "mpival3.py", line 1264, in ?
|
by: Michele Petrazzo |
last post by:
Hi list,
just found in this moment that my applications stop to work with win xp
and receive this error:
"""
This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.
"""
(Note that the same application with
|
by: Dave Lim |
last post by:
>On May 3, 1:29 pm, Dave Lim <diband... at yahoo.com>
wrote:
site:http://surguy.net/articles/speechrecognition.xml
used
out
tried
?
to
protection aroundhttp://mail.yahoo.com
I went and
|
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 work just fine if run through the interpreter. When I
"compile" this with py2exe, I don't see any errors, and when I execute
the resulting program, it "appears" to work fine until I invoke one of
the derived dialogs.
Then, I get the "body" of...
|
by: Kevin |
last post by:
Hi everyone,
I'm running Python 2.5.1 on an XP-Pro platform, with all the updates
(SP2, etc) installed. I have a program (send_file.py) that sends a
file to a service provider, using an ftp connection. The program
works properly, and I've created an 'exe' of it, using py2exe. It was
distrubuted to my user base a couple of weeks ago and seems to be
working well. None of the users have Python installed on their
machines, thus the need...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |