Re: [pygame] arraydemo.py broken
Removed old pygame and rebuilt and arraydemo now works!! Thank guys!! Douglas On Tue, Jul 15, 2008 at 9:26 PM, Lenard Lindstrom [EMAIL PROTECTED] wrote: As it is arraydemo.py is trying to import pygame and failing because the package has been renamed. Reinstall pygame 1.8.1. This will create a new, clean, /usr/lib/python2.5/site-packages/pygame. Lenard Knapp wrote: I renamed that dir and tried arraydemo.py and get: Traceback (most recent call last): File arraydemo.py, line 13, in module raise ImportError, 'Error Importing Pygame/surfarray or Numeric' ImportError: Error Importing Pygame/surfarray or Numeric Looks like things are going well with the debugging. So then what must I do to get the lib back and using the current one? DEK On Tue, Jul 15, 2008 at 1:20 AM, René Dudfield [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: can you try removing the pygame directory? remove this one: /usr/lib/python2.5/site-packages/pygame On Tue, Jul 15, 2008 at 6:26 AM, Knapp [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On Mon, Jul 14, 2008 at 7:29 PM, Lenard Lindstrom [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Knapp wrote: Just to be clean I got and compiled the cvs version today and ran arraydemo.py. Here is the first error report. In the past I just commented out that line to get it to run farther but we should start at the top. [EMAIL PROTECTED]:~/pygame/trunk/examples$ python arraydemo.py Press the mouse button to advance image. Press the s key to save the current image. Traceback (most recent call last): File arraydemo.py, line 21, in module pygame.surfarray.use_arraytype (numeric) AttributeError: 'module' object has no attribute 'use_arraytype' It may be that the old 1.7 surfarray extension module, a shared library, is still present. This would hide the surfarray.py module that replaced it in Python 1.8. -- Lenard Lindstrom [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] So then what do I need to hunt down and remove? What is the name of it? Thanks for the idea. I am now running 1.8.1 and it still has this problem. -- Douglas E Knapp http://sf-journey-creations.wikispot.org/Front_Page
[pygame] 1.8 2.5.2 compatible?
Hi, newbie here. Has anyone had any problems running 1.8.0 for 2.5 against Python 2.5.2? 2.5.1? Thanks! DG
Re: [pygame] 1.8 2.5.2 compatible?
hello, works ok for me. Which OS are you on? cu, On Thu, Jul 17, 2008 at 9:28 AM, David Goldsmith [EMAIL PROTECTED] wrote: Hi, newbie here. Has anyone had any problems running 1.8.0 for 2.5 against Python 2.5.2? 2.5.1? Thanks! DG
Re: [pygame] Patch - Re-add music support for file-like objects
hi, Aliens took out my brain and inserted a pumpkin instead... makes it kind of hard to code. I meant to update all of the version checks before release... but forgot about it. That check should be 1.2.8 right? Since we're hoping that the goodies will be in 1.2.9. I guess that means a rc3 is needed once the new version checks are in... there's that pygame.movie bug report to check out too. cu, On Thu, Jul 17, 2008 at 6:16 AM, Forrest Voight [EMAIL PROTECTED] wrote: Rene: Why'd you change the version check and why did you change it like this? /* #if (MIX_MAJOR_VERSION*100*100 + MIX_MINOR_VERSION*100 + MIX_PATCHLEVEL) 010207 */ #if MIX_MAJOR_VERSION=1 MIX_MINOR_VERSION=2 MIX_PATCHLEVEL=8 What is going to happen when SDL_mixer 1.3.0 comes out? On Tue, Jul 15, 2008 at 12:35 AM, Brian Fisher [EMAIL PROTECTED] wrote: sweet, you rock. On Mon, Jul 14, 2008 at 9:27 PM, Forrest Voight [EMAIL PROTECTED] wrote: I submitted a patch to SDL_mixer to fix the mp3 problem. On Sat, Jul 12, 2008 at 7:29 PM, René Dudfield [EMAIL PROTECTED] wrote: hi, I changed the version check to 1.2.9 instead... since support is in sdl_mixer svn is getting better. The tests are disabled for loading from file-likes -- so all tests pass again (at least they do here). cheers, On Sun, Jul 13, 2008 at 6:58 AM, Forrest Voight [EMAIL PROTECTED] wrote: I'm also able to play FLAC audio. I think the problem is that SDL_mixer detects MP3 files through the first and second bytes (the first is '\xff'), and files with ID3 tags have a special header first, so SDL_mixer defaults to mikmod decoding, which determines it is invalid. So, some MP3 files work and some don't. I was able to find an MP3 file without tags and it worked. This is an SDL_mixer bug. On Sat, Jul 12, 2008 at 4:44 PM, Forrest Voight [EMAIL PROTECTED] wrote: Using SDL_mixer SVN, I'm able to load play WAV and OGG. MP3 gives me the 'Module format not recognized' error. I'm looking into that now... On Sat, Jul 12, 2008 at 3:58 PM, Brian Fisher [EMAIL PROTECTED] wrote: My automated build machines both use 1.2.8, and they both fail to load mp3 (what the test is currently trying) so it seems that 1.2.8 doesn't support MP3. This post seems to indicate that OGG and MOD should be supported: http://listas.apesol.org/pipermail/sdl-libsdl.org/2007-December/063633.html I tried OGG on my Mac though, and it just seemed to hang :( I don't have a mod file to try at the moment. So Forrest, what formats were you able to load when you were testing the patch? On Sat, Jul 12, 2008 at 12:13 PM, Forrest Voight [EMAIL PROTECTED] wrote: Rene: what version of SDL_mixer are you using? I think I was wrong... SDL_mixer 1.2.8 supports OGG, MP3, MID, and MOD music. Only SVN supports WAV. On Sat, Jul 12, 2008 at 1:40 PM, Brian Fisher [EMAIL PROTECTED] wrote: by svn version do you mean 1.3, or an upcoming bug-fix release of 1.2? On Sat, Jul 12, 2008 at 9:27 AM, Forrest Voight [EMAIL PROTECTED] wrote: The current sdl_mixer svn only supports mikmod. The svn version supports all of those formats. On Sat, Jul 12, 2008 at 4:55 AM, René Dudfield [EMAIL PROTECTED] wrote: hi, I just wrote a test for it (see test/mixer_test.py). Unfortunately it doesn't seem to be able to load from a file like object for mp3, ogg, or wav files. Any ideas? == ERROR: test_mixer_music__load (__main__.MixerModuleTest) -- Traceback (most recent call last): File test\mixer_test.py, line 207, in test_mixer_music__load pygame.mixer.music.load(open(musfn)) error: Module format not recognized cu, On Thu, Jul 10, 2008 at 11:33 PM, René Dudfield [EMAIL PROTECTED] wrote: Cool, thanks. Committed revision 1482. On Wed, Jul 9, 2008 at 12:39 PM, Forrest Voight [EMAIL PROTECTED] wrote: All we need to do is make RwopsFromPythonThreaded not try to make a standard rwop, because it shouldn't. And it is correct, RwopsFromPythonThreaded is obviously meant to be used like this (hence the threaded). Attached is the updated patch. Forrest On Tue, Jul 8, 2008 at 9:38 PM, René Dudfield [EMAIL PROTECTED] wrote: I guess we need to store a reference to the file object somewhere, and release the reference at cleanup. On Wed, Jul 9, 2008 at 9:40 AM, Brian Fisher [EMAIL PROTECTED] wrote: Hmmm... from looking at the patch, it seems that it does not fix the crash that Forrest discovered (where the file object falls out of scope and gets deleted so the rwobject ends up having bad
Re: [pygame] 1.8 2.5.2 compatible?
Asking re: Windows. Thanks! DG --- On Wed, 7/16/08, René Dudfield [EMAIL PROTECTED] wrote: From: René Dudfield [EMAIL PROTECTED] Subject: Re: [pygame] 1.8 2.5.2 compatible? To: pygame-users@seul.org Date: Wednesday, July 16, 2008, 4:38 PM hello, works ok for me. Which OS are you on? cu, On Thu, Jul 17, 2008 at 9:28 AM, David Goldsmith [EMAIL PROTECTED] wrote: Hi, newbie here. Has anyone had any problems running 1.8.0 for 2.5 against Python 2.5.2? 2.5.1? Thanks! DG
Re: [pygame] Patch - Re-add music support for file-like objects
I think it should be =1.2.8. There is support for MP3, OGG, MID, and MOD in 1.2.8. All 1.2.9 will add is WAV. On Wed, Jul 16, 2008 at 7:43 PM, René Dudfield [EMAIL PROTECTED] wrote: hi, Aliens took out my brain and inserted a pumpkin instead... makes it kind of hard to code. I meant to update all of the version checks before release... but forgot about it. That check should be 1.2.8 right? Since we're hoping that the goodies will be in 1.2.9. I guess that means a rc3 is needed once the new version checks are in... there's that pygame.movie bug report to check out too. cu, On Thu, Jul 17, 2008 at 6:16 AM, Forrest Voight [EMAIL PROTECTED] wrote: Rene: Why'd you change the version check and why did you change it like this? /* #if (MIX_MAJOR_VERSION*100*100 + MIX_MINOR_VERSION*100 + MIX_PATCHLEVEL) 010207 */ #if MIX_MAJOR_VERSION=1 MIX_MINOR_VERSION=2 MIX_PATCHLEVEL=8 What is going to happen when SDL_mixer 1.3.0 comes out? On Tue, Jul 15, 2008 at 12:35 AM, Brian Fisher [EMAIL PROTECTED] wrote: sweet, you rock. On Mon, Jul 14, 2008 at 9:27 PM, Forrest Voight [EMAIL PROTECTED] wrote: I submitted a patch to SDL_mixer to fix the mp3 problem. On Sat, Jul 12, 2008 at 7:29 PM, René Dudfield [EMAIL PROTECTED] wrote: hi, I changed the version check to 1.2.9 instead... since support is in sdl_mixer svn is getting better. The tests are disabled for loading from file-likes -- so all tests pass again (at least they do here). cheers, On Sun, Jul 13, 2008 at 6:58 AM, Forrest Voight [EMAIL PROTECTED] wrote: I'm also able to play FLAC audio. I think the problem is that SDL_mixer detects MP3 files through the first and second bytes (the first is '\xff'), and files with ID3 tags have a special header first, so SDL_mixer defaults to mikmod decoding, which determines it is invalid. So, some MP3 files work and some don't. I was able to find an MP3 file without tags and it worked. This is an SDL_mixer bug. On Sat, Jul 12, 2008 at 4:44 PM, Forrest Voight [EMAIL PROTECTED] wrote: Using SDL_mixer SVN, I'm able to load play WAV and OGG. MP3 gives me the 'Module format not recognized' error. I'm looking into that now... On Sat, Jul 12, 2008 at 3:58 PM, Brian Fisher [EMAIL PROTECTED] wrote: My automated build machines both use 1.2.8, and they both fail to load mp3 (what the test is currently trying) so it seems that 1.2.8 doesn't support MP3. This post seems to indicate that OGG and MOD should be supported: http://listas.apesol.org/pipermail/sdl-libsdl.org/2007-December/063633.html I tried OGG on my Mac though, and it just seemed to hang :( I don't have a mod file to try at the moment. So Forrest, what formats were you able to load when you were testing the patch? On Sat, Jul 12, 2008 at 12:13 PM, Forrest Voight [EMAIL PROTECTED] wrote: Rene: what version of SDL_mixer are you using? I think I was wrong... SDL_mixer 1.2.8 supports OGG, MP3, MID, and MOD music. Only SVN supports WAV. On Sat, Jul 12, 2008 at 1:40 PM, Brian Fisher [EMAIL PROTECTED] wrote: by svn version do you mean 1.3, or an upcoming bug-fix release of 1.2? On Sat, Jul 12, 2008 at 9:27 AM, Forrest Voight [EMAIL PROTECTED] wrote: The current sdl_mixer svn only supports mikmod. The svn version supports all of those formats. On Sat, Jul 12, 2008 at 4:55 AM, René Dudfield [EMAIL PROTECTED] wrote: hi, I just wrote a test for it (see test/mixer_test.py). Unfortunately it doesn't seem to be able to load from a file like object for mp3, ogg, or wav files. Any ideas? == ERROR: test_mixer_music__load (__main__.MixerModuleTest) -- Traceback (most recent call last): File test\mixer_test.py, line 207, in test_mixer_music__load pygame.mixer.music.load(open(musfn)) error: Module format not recognized cu, On Thu, Jul 10, 2008 at 11:33 PM, René Dudfield [EMAIL PROTECTED] wrote: Cool, thanks. Committed revision 1482. On Wed, Jul 9, 2008 at 12:39 PM, Forrest Voight [EMAIL PROTECTED] wrote: All we need to do is make RwopsFromPythonThreaded not try to make a standard rwop, because it shouldn't. And it is correct, RwopsFromPythonThreaded is obviously meant to be used like this (hence the threaded). Attached is the updated patch. Forrest On Tue, Jul 8, 2008 at 9:38 PM, René Dudfield [EMAIL PROTECTED] wrote: I guess we need to store a reference to the file object somewhere, and release the reference at cleanup. On Wed, Jul 9, 2008 at 9:40 AM, Brian Fisher [EMAIL PROTECTED] wrote: Hmmm... from looking at the
Re: [pygame] Patch - Re-add music support for file-like objects
ah ok. I haven't gotten anything to work so far with 1.2.8, so thought it was coming in 1.2.9. cu, On Thu, Jul 17, 2008 at 10:36 AM, Forrest Voight [EMAIL PROTECTED] wrote: I think it should be =1.2.8. There is support for MP3, OGG, MID, and MOD in 1.2.8. All 1.2.9 will add is WAV. On Wed, Jul 16, 2008 at 7:43 PM, René Dudfield [EMAIL PROTECTED] wrote: hi, Aliens took out my brain and inserted a pumpkin instead... makes it kind of hard to code. I meant to update all of the version checks before release... but forgot about it. That check should be 1.2.8 right? Since we're hoping that the goodies will be in 1.2.9. I guess that means a rc3 is needed once the new version checks are in... there's that pygame.movie bug report to check out too. cu, On Thu, Jul 17, 2008 at 6:16 AM, Forrest Voight [EMAIL PROTECTED] wrote: Rene: Why'd you change the version check and why did you change it like this? /* #if (MIX_MAJOR_VERSION*100*100 + MIX_MINOR_VERSION*100 + MIX_PATCHLEVEL) 010207 */ #if MIX_MAJOR_VERSION=1 MIX_MINOR_VERSION=2 MIX_PATCHLEVEL=8 What is going to happen when SDL_mixer 1.3.0 comes out? On Tue, Jul 15, 2008 at 12:35 AM, Brian Fisher [EMAIL PROTECTED] wrote: sweet, you rock. On Mon, Jul 14, 2008 at 9:27 PM, Forrest Voight [EMAIL PROTECTED] wrote: I submitted a patch to SDL_mixer to fix the mp3 problem. On Sat, Jul 12, 2008 at 7:29 PM, René Dudfield [EMAIL PROTECTED] wrote: hi, I changed the version check to 1.2.9 instead... since support is in sdl_mixer svn is getting better. The tests are disabled for loading from file-likes -- so all tests pass again (at least they do here). cheers, On Sun, Jul 13, 2008 at 6:58 AM, Forrest Voight [EMAIL PROTECTED] wrote: I'm also able to play FLAC audio. I think the problem is that SDL_mixer detects MP3 files through the first and second bytes (the first is '\xff'), and files with ID3 tags have a special header first, so SDL_mixer defaults to mikmod decoding, which determines it is invalid. So, some MP3 files work and some don't. I was able to find an MP3 file without tags and it worked. This is an SDL_mixer bug. On Sat, Jul 12, 2008 at 4:44 PM, Forrest Voight [EMAIL PROTECTED] wrote: Using SDL_mixer SVN, I'm able to load play WAV and OGG. MP3 gives me the 'Module format not recognized' error. I'm looking into that now... On Sat, Jul 12, 2008 at 3:58 PM, Brian Fisher [EMAIL PROTECTED] wrote: My automated build machines both use 1.2.8, and they both fail to load mp3 (what the test is currently trying) so it seems that 1.2.8 doesn't support MP3. This post seems to indicate that OGG and MOD should be supported: http://listas.apesol.org/pipermail/sdl-libsdl.org/2007-December/063633.html I tried OGG on my Mac though, and it just seemed to hang :( I don't have a mod file to try at the moment. So Forrest, what formats were you able to load when you were testing the patch? On Sat, Jul 12, 2008 at 12:13 PM, Forrest Voight [EMAIL PROTECTED] wrote: Rene: what version of SDL_mixer are you using? I think I was wrong... SDL_mixer 1.2.8 supports OGG, MP3, MID, and MOD music. Only SVN supports WAV. On Sat, Jul 12, 2008 at 1:40 PM, Brian Fisher [EMAIL PROTECTED] wrote: by svn version do you mean 1.3, or an upcoming bug-fix release of 1.2? On Sat, Jul 12, 2008 at 9:27 AM, Forrest Voight [EMAIL PROTECTED] wrote: The current sdl_mixer svn only supports mikmod. The svn version supports all of those formats. On Sat, Jul 12, 2008 at 4:55 AM, René Dudfield [EMAIL PROTECTED] wrote: hi, I just wrote a test for it (see test/mixer_test.py). Unfortunately it doesn't seem to be able to load from a file like object for mp3, ogg, or wav files. Any ideas? == ERROR: test_mixer_music__load (__main__.MixerModuleTest) -- Traceback (most recent call last): File test\mixer_test.py, line 207, in test_mixer_music__load pygame.mixer.music.load(open(musfn)) error: Module format not recognized cu, On Thu, Jul 10, 2008 at 11:33 PM, René Dudfield [EMAIL PROTECTED] wrote: Cool, thanks. Committed revision 1482. On Wed, Jul 9, 2008 at 12:39 PM, Forrest Voight [EMAIL PROTECTED] wrote: All we need to do is make RwopsFromPythonThreaded not try to make a standard rwop, because it shouldn't. And it is correct, RwopsFromPythonThreaded is obviously meant to be used like this (hence the threaded). Attached is the updated patch. Forrest On Tue, Jul 8, 2008 at 9:38 PM, René Dudfield [EMAIL PROTECTED] wrote: I guess we need to store a reference to the file
Re: [pygame] Patch - Re-add music support for file-like objects
I've tested loading MP3 and OGG as music from file-objects on both Windows and Mac OS X using pygame SDL_Mixer 1.2.8, and SDL_Mixer failed to load them. So if SDL_Mixer 1.2.8 is supposed to support them, then something else is broken. Forrest, you said earlier on this list you were able to load play Wav OGG with SDL_mixer SVN and that the current SDL_Mixer (1.2.8 at the time) only supports MikMod (meaning MOD), which matches my experience and indicates that the uncoming 1.2.9 is required for WAV OGG MP3 support... has something changed your mind since you posted about mixer's level of support? Also, can you confirm that you have successfully loaded MP3, OGG MID from a file using pygame over SDL_Mixer 1.2.8? If so, what platforms and what specific music files? On Wed, Jul 16, 2008 at 5:36 PM, Forrest Voight [EMAIL PROTECTED] wrote: I think it should be =1.2.8. There is support for MP3, OGG, MID, and MOD in 1.2.8. All 1.2.9 will add is WAV.
Re: [pygame] Patch - Re-add music support for file-like objects
I installed 1.2.8 and confirm OGG, MP3, MID and MOD are working. On Wed, Jul 16, 2008 at 9:09 PM, Brian Fisher [EMAIL PROTECTED] wrote: I've tested loading MP3 and OGG as music from file-objects on both Windows and Mac OS X using pygame SDL_Mixer 1.2.8, and SDL_Mixer failed to load them. So if SDL_Mixer 1.2.8 is supposed to support them, then something else is broken. Forrest, you said earlier on this list you were able to load play Wav OGG with SDL_mixer SVN and that the current SDL_Mixer (1.2.8 at the time) only supports MikMod (meaning MOD), which matches my experience and indicates that the uncoming 1.2.9 is required for WAV OGG MP3 support... has something changed your mind since you posted about mixer's level of support? Also, can you confirm that you have successfully loaded MP3, OGG MID from a file using pygame over SDL_Mixer 1.2.8? If so, what platforms and what specific music files? On Wed, Jul 16, 2008 at 5:36 PM, Forrest Voight [EMAIL PROTECTED] wrote: I think it should be =1.2.8. There is support for MP3, OGG, MID, and MOD in 1.2.8. All 1.2.9 will add is WAV.
Re: [pygame] Patch - Re-add music support for file-like objects
Sorry for lack of detail. All are tested on Linux. Test files: http://im.forre.st/sound.ogg http://im.forre.st/sound.mp3 http://im.forre.st/sound.mid http://im.forre.st/sound.mod I'm not sure what your problem is, but I had only looked in the ChangeLog, not the source for SDL_mixer 1.2.8. On Wed, Jul 16, 2008 at 9:55 PM, Forrest Voight [EMAIL PROTECTED] wrote: I installed 1.2.8 and confirm OGG, MP3, MID and MOD are working. On Wed, Jul 16, 2008 at 9:09 PM, Brian Fisher [EMAIL PROTECTED] wrote: I've tested loading MP3 and OGG as music from file-objects on both Windows and Mac OS X using pygame SDL_Mixer 1.2.8, and SDL_Mixer failed to load them. So if SDL_Mixer 1.2.8 is supposed to support them, then something else is broken. Forrest, you said earlier on this list you were able to load play Wav OGG with SDL_mixer SVN and that the current SDL_Mixer (1.2.8 at the time) only supports MikMod (meaning MOD), which matches my experience and indicates that the uncoming 1.2.9 is required for WAV OGG MP3 support... has something changed your mind since you posted about mixer's level of support? Also, can you confirm that you have successfully loaded MP3, OGG MID from a file using pygame over SDL_Mixer 1.2.8? If so, what platforms and what specific music files? On Wed, Jul 16, 2008 at 5:36 PM, Forrest Voight [EMAIL PROTECTED] wrote: I think it should be =1.2.8. There is support for MP3, OGG, MID, and MOD in 1.2.8. All 1.2.9 will add is WAV.