Re: [pygame] py2exe, MSVCR71.dll and InnoSetup

2010-10-29 Thread Brian Fisher
There is no real problem here - this old concern of illegally distributing MSVCR71.dll with python has always been fear, uncertainty and doubt with no real foundation for concern. If you are distributing MSVCR71.dll along with python (which you are), the license that allows the python developers

[pygame] py2exe, MSVCR71.dll and InnoSetup

2010-10-25 Thread Johannes Charra
Hi, How do I distribute my Python game to Windows users without illegally distributing the MSVCR71.dll? As far as my research went, one might e.g. build an InnoSetup installer which will include the installation of the MS Visual C++ 2005 Redistributable package. I tried that, but my game

[pygame] py2exe oceangui problem

2009-04-07 Thread David Gustafson
I'm having a problem and I wonder if anyone has any insight. I have a program that works runs properly but when I use py2exe to create an executable and then attempt to run that executable from the dist dir I get: D:\code\test\disttwisted_ocean_client.exe

[pygame] py2exe and pygame font causes segfaults

2008-12-30 Thread Jake b
I have a game that I want to package using py2exe. I compile it, and seems fine, but I run it and I get: Fatal Python error: (pygame parachute) Segmentation Fault This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more

Re: [pygame] py2exe and pygame font causes segfaults

2008-12-30 Thread Ian Mallett
Using the pygame default font in py2exe doesn't work for some reason. You'll have to include the file in your distribution yourself and use pygame.font.Font(). Also remember to include *all* your data files in the distr folder py2exe makes too. Ian

Re: [pygame] py2exe and pygame font causes segfaults

2008-12-30 Thread pymike
Because the Font path is in the Python/lib/site-packages/pygame dir, so if Python isn't installed the font doesn't exist =) On Tue, Dec 30, 2008 at 1:11 PM, Ian Mallett geometr...@gmail.com wrote: Using the pygame default font in py2exe doesn't work for some reason. You'll have to include the

Re: [pygame] py2exe and pygame font causes segfaults

2008-12-30 Thread Jake b
On Tue, Dec 30, 2008 at 1:11 PM, Ian Mallett geometr...@gmail.com wrote: Using the pygame default font in py2exe doesn't work for some reason. You'll have to include the file in your distribution yourself and use pygame.font.Font(). Also remember to include *all* your data files in the distr

[pygame] py2exe

2008-05-12 Thread OsKaR
Hi all! Well I'm some relatively new on python and pygame but I've been working on a simple tanks game, but today I've tried to make an exe file with py2exe and everything seems ok but when I try to execute my .exe file appears a black window and then nothing, It simply closes and that's all.

Re: [pygame] py2exe

2008-05-12 Thread PyMike
Hi OsKaR First make sure there's no errors in the program. Check to see if there is a file called your_program's_name.exe.txt that has an error log in it. Another possible problem is that the exe is compiling it funny or something. Can you post your py2exe script? I've made a py2exe script

Re: [pygame] py2exe

2008-05-12 Thread OsKaR
Eeehm I think I've solved the problem, at least I've found the way to execute it. I've used your script to make the executable file before, but when I tried to see the help with my_program.exe --help It has been open and ran perfectly. I have to take a look at this but while I will using this

Re: [pygame] py2exe problems

2008-03-24 Thread Brian Fisher
Hey all, after a long period of frustration with PyOpenGL 3.x and py2exe not working, I solved my problems by building PyOpenGL 2.0.1.9 for Python 2.5 on windows (I labeled it as PyOpenGL 2.1.0 to be distinct): http://thorbrian.com/pyopengl/builds.php It has no numeric support, and it doesn't

Re: [pygame] py2exe problems

2008-03-24 Thread René Dudfield
Nice one. I think there is a way to disable the error checking with a flag somehow with 3.x... or if there isn't there should be. On Mon, Mar 24, 2008 at 7:02 PM, Brian Fisher [EMAIL PROTECTED] wrote: Hey all, after a long period of frustration with PyOpenGL 3.x and py2exe not working, I

Re: [pygame] py2exe problems

2008-03-24 Thread Brian Fisher
There's no flag - but you can register your own python error checking function with PyOpenGL 3.x: from OpenGL import error error.ErrorChecker.registerChecker( myAlternateFunction ) either an empty function or possibly None will disable the glGetError call. Note that depending on the

Re: [pygame] py2exe problems

2008-03-16 Thread Ken Seehart
Ian Mallett wrote: New problem. My program (which only uses pygame) doesn't run when py2exe'd. It says something about not being able to find the surfarray module when the .exe is run, but it closes almost instantly, so I can't really tell. I upgraded to pygame 1.8, if that makes a

Re: [pygame] py2exe problems

2008-03-16 Thread Ian Mallett
In this case, the error I get, using the py2exeeggs.py is: C:\Users\Ian\Desktop\OpenGL Test Program\distOpenGLTestProgram.exe Traceback (most recent call last): File OpenGL Test Program.py, line 2, in module File py2exeeggs.pyc, line 43, in loadEggs AttributeError: 'module' object has no

Re: [pygame] py2exe problems

2008-03-15 Thread Ian Mallett
New problem. My program (which only uses pygame) doesn't run when py2exe'd. It says something about not being able to find the surfarray module when the .exe is run, but it closes almost instantly, so I can't really tell. I upgraded to pygame 1.8, if that makes a difference. Ian

Re: [pygame] py2exe problems

2008-03-15 Thread FT
Run it at the DOS prompt or command line New problem. My program (which only uses pygame) doesn't run when py2exe'd. It says something about not being able to find the surfarray module when the .exe is run, but it closes almost instantly, so I can't really tell. I upgraded to pygame 1.8, if

Re: [pygame] py2exe problems

2008-03-15 Thread Ian Mallett
C:\dev\Python25\Projects\Pygame Programs\Parabola\4\distParabola4.exe Traceback (most recent call last): File Parabola 4.py, line 1, in module File pygame\__init__.pyc, line 159, in module File pygame\surfarray.pyc, line 68, in module File pygame\_numericsurfarray.pyc, line 12, in module

Re: [pygame] py2exe problems

2008-03-15 Thread FT
Ian, This error sounds like a wrong revision level or change in the data type structure, usually related to revision levels. So probably it was not compiled correctly or just the wrong revision level. Ian Sent: C:\dev\Python25\Projects\Pygame Programs\Parabola\4\distParabola4.exe

Re: [pygame] py2exe problems

2008-03-15 Thread Brian Fisher
That error looks very google-able now - I found this thread that seems related: http://www.gossamer-threads.com/lists/python/python/629815?page=last According to it, the problem seems to be that line 9 of numeric's precision.py: --- from multiarray import zeros --- imports numeric's multiarray

Re: [pygame] py2exe problems

2008-03-15 Thread Ian Mallett
--exclude ?

Re: [pygame] py2exe problems

2008-03-15 Thread Ian Mallett
--exclude Numeric,Numpy makes something that doesn't crash immediately. It cannot, however, find the default pygame font. Why?

Re: [pygame] py2exe problems

2008-03-15 Thread Brian Fisher
That problem has popped up on the mailing list a lot - a ton really... I don't know of a good way to solve this problem for people long term (i.e. make sure that py2exe includes the font - although if py2exe supported eggs I suppose they could do it), but I think if freesansbold.ttf was in your

Re: [pygame] py2exe problems

2008-03-15 Thread Brian Fisher
so do you use PyOpenGL from that program? does the program work completely now? On Sat, Mar 15, 2008 at 6:20 PM, Ian Mallett [EMAIL PROTECTED] wrote: I solved my problem by loading the font file from the program: Font = pygame.font.Font(freesansbold.ttf,12) or something, then adding the

Re: [pygame] py2exe problems

2008-03-15 Thread Ian Mallett
Nope. This is the parabola one: http://www.geometrian.com/Programs/Parabola4exe.zip It only uses pygame. OpenGL still doesn't work.

Re: [pygame] py2exe problems

2008-03-12 Thread Ian Mallett
On 3/7/08, Brian Fisher [EMAIL PROTECTED] wrote: Getting py2exe to work with PyOpenGL is something I am very interested in, cause I haven't gotten it to work for me yet :( So what still doesn't work with PyOpenGL? What have you tried so far? had you tried this? No, but I will. How exactly

Re: [pygame] py2exe problems

2008-03-07 Thread Ian Mallett
Still doesn't work with PyOpenGL...

Re: [pygame] py2exe problems

2008-03-07 Thread Brian Fisher
Getting py2exe to work with PyOpenGL is something I am very interested in, cause I haven't gotten it to work for me yet :( So what still doesn't work with PyOpenGL? What have you tried so far? had you tried this?

Re: [pygame] py2exe problems

2008-01-22 Thread Brian Fisher
Is it python 2.5 with PyOpenGL 3.0? If so, I think the problem has to do with eggs. PyOpenGL 3.x is distributed using them, and py2exe doesn't support them. I haven't actually got things working for myself yet, but thereis a post by the PyOpenGL guy about it here: http://blog.vrplumber.com/1762

Re: [pygame] py2exe problems

2008-01-22 Thread DR0ID
hi you need setuptools. pkg_resources is part of setuptools (and easyinstall). ~DR0ID Brian Fisher schrieb: Is it python 2.5 with PyOpenGL 3.0? If so, I think the problem has to do with eggs. PyOpenGL 3.x is distributed using them, and py2exe doesn't support them. I haven't actually got

Re: [pygame] py2exe problems

2008-01-22 Thread FT
- From: René Dudfield [EMAIL PROTECTED] To: pygame-users@seul.org Sent: Monday, January 21, 2008 8:49 PM Subject: Re: [pygame] py2exe problems There is a way to tell py2exe to ignore modules. Try using that. Also have a look in the skellington frame work for its py2exe stuff: http

Re: [pygame] py2exe problems

2008-01-21 Thread Ian Mallett
On Jan 21, 2008 5:49 PM, René Dudfield [EMAIL PROTECTED] wrote: There is a way to tell py2exe to ignore modules. Try using that. python Setup.py py2exe --excludes=OpenGL doesn't work. What do I tell the command line? Ian

[pygame] PY2EXE and Modules

2007-12-22 Thread TW
I am now trying to make an executable and the PY2EXE has no tutorial to explain how to use it's commands. I have done a search and it seems there is none. Just a short example of one that just does the console and no imports of modules and such. Even the sub directory examples do not explain

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread Dave LeCompte (really)
Bruce asked about py2exe: Does anyone know of a tutorial or explanation of the commands and where they are used? I assume you've already grabbed the sample from the PyGame Wiki: http://www.pygame.org/wiki/WindowsExecutables_Py2Exe Are you having trouble with importing modules? Py2Exe has

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread TW
Hi Dave, The example I did download and use was the one for the console. I also downloaded the batch version, modified it so I can run and install things using just the batch file command line options. I noticed when looking at the examples that it has several commands to use for

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread Laura Creighton
In a message of Sat, 22 Dec 2007 09:22:06 PST, Dave LeCompte (really) writes: Bruce asked about py2exe: Does anyone know of a tutorial or explanation of the commands and where they are used? I assume you've already grabbed the sample from the PyGame Wiki:

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread TW
Hi Laura, I just got through reading the Allan Harris spin on the issue. Also another short sample and both use different variable names when asking for directories. One shows an include statement and another a PY_DIr name. It is so confusing to try and figure out who is right and

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread Luke Paireepinart
I think you're making it more complicated than it needs to be. I just took the example from the pygame website, and I took out all the crap that failed (presumably because it was for an older version of Pygame). Then I ran it, and out popped a Build directory with an EXE inside. Then I copied my

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread TW
Hi Luke I do not know either. All I know is that my main .py has several imports which are my other modules for specific tasks. The error comes at the very first import statement, line 12. Could it be because I use the from import statement? I can show you that file below. The batch

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread René Dudfield
check out skellington... It has a skeleton of a game set up. Including a setup file to make executables. I think the latest version is here: http://media.pyweek.org/static/skellington-11.zip On Dec 23, 2007 4:14 AM, TW [EMAIL PROTECTED] wrote: I am now trying to make an executable and the

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread TW
Hi! I will look at it. The one I got from Luke did run except it did not import my data. So the format for that is needed but I will experiment. I wrote a batch file below to make the executable with the original file that Luke gave me split in 2 files with just the file name and quotes

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread Luke Paireepinart
On Dec 22, 2007 2:33 PM, TW [EMAIL PROTECTED] wrote: Hi Luke I do not know either. All I know is that my main .py has several imports which are my other modules for specific tasks. The error comes at the very first import statement, line 12. Could it be because I use the from import

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread Luke Paireepinart
sorry, I didnt' refresh my browser page before I sent that last e-mail. Glad to see it worked! Yeah, the data isn't automatically copied, that's why I specified that I had to copy my data over. You can easily write a script that will copy your data over, using os functions, or shutil, or

Re: [pygame] PY2EXE and Modules

2007-12-22 Thread TW
sorry, I didn't refresh my browser page before I sent that last e-mail. Glad to see it worked! Yeah, the data isn't automatically copied, that's why I specified that I had to copy my data over. You can easily write a script that will copy your data over, using os functions, or shutil, or

Re: [pygame] Py2EXE Error Involving raw_input

2007-10-15 Thread Kris Schnee
Patrick Mullen wrote: On 10/13/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: In other words the raw_input command is doing something odd in EXE form, even before the program is able to display the prompt or accept input. Any

[pygame] Py2EXE Error Involving raw_input

2007-10-14 Thread kschnee
I tried to build the little graphics tool I recently mentioned -- the one that makes edge tiles -- into an EXE, and got a strange error. The program runs fine in IDLE and when run directly by double-clicking the source file, but the EXE crashes with the following error (automatically placed in a

Re: [pygame] py2exe / OpenGL Build Trouble

2007-08-01 Thread Kris Schnee
Dave LeCompte (really) wrote: Kris Schnee [EMAIL PROTECTED] wrote I just built an EXE using Pygame and PyOpenGL, and the EXE crashes with this message: I think it depends on what version of PyOpenGL and Py2EXE you have installed - the documentation here seems to think it's no longer a

Re: [pygame] py2exe / OpenGL Build Trouble

2007-07-29 Thread Dave LeCompte (really)
Kris Schnee [EMAIL PROTECTED] wrote I just built an EXE using Pygame and PyOpenGL, and the EXE crashes with this message: Traceback (most recent call last): File cubeland.py, line 13, in ? File OpenGL\__init__.pyc, line 18, in ? File OpenGL\__init__.pyc, line 14, in

[pygame] Py2exe

2007-07-03 Thread Ian Mallett
My program is saved as a .pyw file; opens without a console. When I compiled it with py2exe, it runs with a console window. I don't want one. Any ideas? Thanks, Geometrian

Re: [pygame] Py2exe

2007-07-03 Thread Dave LeCompte (really)
Ian Mallett [EMAIL PROTECTED] wrote: My program is saved as a .pyw file; opens without a console. When I compiled it with py2exe, it runs with a console window. I don't want one. Any ideas? Thanks, Geometrian You probably have a line like: setup(console=[{'script':'main.py'}]) in your

Re: [pygame] Py2exe

2007-07-03 Thread Will McGugan
Ian Mallett wrote: My program is saved as a .pyw file; opens without a console. When I compiled it with py2exe, it runs with a console window. I don't want one. Any ideas? Thanks, Geometrian You put the .pyw script in the 'windows' section in the call to setup. Something like this...

Re: [pygame] Py2exe

2007-07-03 Thread Ian Mallett
Thanks! That works! On 7/3/07, Will McGugan [EMAIL PROTECTED] wrote: Ian Mallett wrote: My program is saved as a .pyw file; opens without a console. When I compiled it with py2exe, it runs with a console window. I don't want one. Any ideas? Thanks, Geometrian You put the .pyw script