Re: [pygame] Mailing List Discard Tweak
The only snag with sending reject replies is that it's then open to abuse. If I took a dislike to someone (not a subscriber), I could send hundreds of emails to the list, spoofing his email address as the sender. He'd then get his inbox swamped. It's some standard mailing list software which may or may not have the capability to rate-limit reject messages. Regards - Philip On 13/06/2015 20:25, tom arnall wrote: ditto. thanks Ian for the suggestion. On 6/12/15, Ian Mallett geometr...@gmail.com wrote: Hi all, I use GMail as my mailer client. The email associated with this account is *geometrianatgmail.com http://gmail.com*. However, I use GMail to send from my personal email *ianatgeometrian.com http://geometrian.com* (and this is the default). I am subscribed to the mailing list under the *first*. It seems that the pygame mailing list silently rejects emails from addresses that are not registered, to the effect that emails from my personal email are silently discarded. The effect is that I have been having one-sided conversations with myself for years, every time I forget to use *geometrianatgmail.com http://gmail.com*. *I propose that messages from emails not subscribed to the list be rejected with a message informing the sender of such*. I have unsubscribed the GMail address and subscribed the personal address, fixing the problem, hopefully. However, I still recommend the above action. Thanks, Ian
Re: [pygame] install instructions at pygame.org are missing
I flagged this the other day. There's a copy on the Internet Archive at https://web.archive.org/web/20140227121133/http://www.pygame.org/install.html but no guarantee it's up to date. Regards - Philip On 11/06/2015 08:20, tom arnall wrote: greetings! this address: http://www.pygame.org/install.html gets: 404 Not Found does pygame.org have install instructions at some other location? thanks in advance, tom arnall
Re: [pygame] Noob question: playing sounds
Hi Miriam - My problem seems to have been with the wav file I was using. I'd always assumed a wav file consisted of little more than raw binary samples, in what case there'd be very little to go wrong, but it seems the structure is more complicated than that. In particular, the file I was using was one of the standard Windows sounds taken from c:\Windows\media, which are in stereo. I imagine Pygame must be able to play stereo wav files, given the right settings, but not with the defaults. I eventually came across the GPIO Music Box at https://www.raspberrypi.org/learning/gpio-music-box/worksheet/ which contains a very simple demo program using the Sonic Pi sounds which are pre-installed in|/opt/sonic-pi/etc/samples/| Running my Pi headless and logging in with PuTTy I got an xcb_comection error message, which I got rid of by typing unset DISPLAY at the shell prompt before launching the Pygame program. Hope that helps. Regards - Philip On 05/06/2015 12:20, Miriam English wrote: Ah. Then by elimination it does seem that python/pygame on Raspberry Pi is the source of the problem somehow. Good luck. Let us know when you solve it. I have a Raspberry Pi too and though I haven't got around to playing with python and pygame on it yet, I hope to in the future. :) Cheers, - Miriam On 05/06/15 20:19, Philip Le Riche wrote: Thanks Miriam, but since I can play sounds with omxplayer that wouldn't seem to be the problem. Kind regards - Philip On 05/06/2015 09:52, Miriam English wrote: It just occurred to me that I recall reading somewhere that there are 2 sound outputs in the Raspberry Pi (the audio jack, and the HDMI connector) and that some people have had difficulty switching between them. You are probably trying to get sound from the audio jack. Did you check whether there was sound coming from the HDMI connector? Or if you're doing it the other way, did you check the audio jack? Just a thought. :) Good luck to you, - Miriam On 05/06/15 18:10, Philip Le Riche wrote: I got rid of the xcb_connection_has_error() by unsetting shell environment variable DISPLAY, which PuTTy was helpfully setting for me (for good reason in other circumstances). The line os.environ[SDL_VIDEODRIVER] = dummy still seems to be necessary. However, I still get no sound. I'll try the RPi forums and see what anyone can suggest there. Regards - Philip On 04/06/2015 20:45, Michael Lutinsky wrote: I can verify that running: $ python /usr/lib/python2.7/dist-packages/pygame/examples/sound.py plays without error on my Kubuntu distro (x86_64 Linux kernel 3.19.0-18, pulseaudio 6.0). Must be a RPi issue? ~ Michael On Wed : Jun 3, 2015 10:38:41 AM you wrote: Well, this is strange. In /usr/lib/python2.7/dist-packages/pygame/examples there is sound.py. This must have worked for someone once, and it doesn't include anything about creating a window. When I run it for the first time it makes a click but doesn't play the sound. It produces the xcb_connection_has_error() message but seems to ignore it. Adding pygame.display.set_mode((1,1)) to my program (which otherwise now is very similar to sound.py) doesn't help. This is driving me nuts! Regards - Philip On 02/06/2015 13:58, diliup gabadamudalige wrote: to do most things with pygame you need to initialize a pygame window. On Tue, Jun 2, 2015 at 3:50 AM, B W stabbingfin...@gmail.com mailto:stabbingfin...@gmail.com wrote: Hi, you cannot use the dummy video driver if you want sound. At least I have not figured out a way to do it. You need at least a 1x1 window. Gumm On Mon, Jun 1, 2015 at 2:11 PM, Philip Le Riche phi...@blueskylark.org mailto:phi...@blueskylark.org wrote: Just trying to get started with pygame and stuck at square 1. All I want to do is play sounds on a Raspberry Pi (Raspbian). No screen. Nothing visual. So I do: import pygame, os, sys from pygame.locals import * os.environ[SDL_VIDEODRIVER] = dummy pygame.mixer.init() sound = pygame.mixer.Sound(Exclamation.wav) sound.play(loops = 0) while pygame.mixer.music.get_busy() == True: continue Having saved it in file try.py, I do python try.py and get xcb_connection_has_error() returned true Yes, I've done an apt-get update and upgrade. I can make sounds with Sonic Pi but this produces nothing. Googling the error seemed to give no relevant results. Can someone give me a hint please? Regards - Philip http://www.diliupg.com http://soft.diliupg.com/ ** This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further
Re: [pygame] pygame.org broken link
I think that page was working last week. I certainly used a page looking remarkably like that. Regards - Philip On 08/06/2015 03:03, diliup gabadamudalige wrote: http://www.pygame.org/docs/ref/examples.html This link is totally off! Not a single example is in any link. On Sun, Jun 7, 2015 at 7:43 PM, Philip Le Riche phi...@blueskylark.org mailto:phi...@blueskylark.org wrote: The webmaster might like to note that pygame.org/docs http://pygame.org/docs contains a link to install.html which doesn't exist. According to archive.org http://archive.org it disappeared some time between Feb and July 2014. I tried install with a capital I and .htm instead of .html but without success. Regards - Philip --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- Diliup Gabadamudalige http://www.diliupg.com http://soft.diliupg.com/ ** This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. **
[pygame] pygame.org broken link
The webmaster might like to note that pygame.org/docs contains a link to install.html which doesn't exist. According to archive.org it disappeared some time between Feb and July 2014. I tried install with a capital I and .htm instead of .html but without success. Regards - Philip --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Re: [pygame] Noob question: playing sounds
I got rid of the xcb_connection_has_error() by unsetting shell environment variable DISPLAY, which PuTTy was helpfully setting for me (for good reason in other circumstances). The line os.environ[SDL_VIDEODRIVER] = dummy still seems to be necessary. However, I still get no sound. I'll try the RPi forums and see what anyone can suggest there. Regards - Philip On 04/06/2015 20:45, Michael Lutinsky wrote: I can verify that running: $ python /usr/lib/python2.7/dist-packages/pygame/examples/sound.py plays without error on my Kubuntu distro (x86_64 Linux kernel 3.19.0-18, pulseaudio 6.0). Must be a RPi issue? ~ Michael On Wed : Jun 3, 2015 10:38:41 AM you wrote: Well, this is strange. In /usr/lib/python2.7/dist-packages/pygame/examples there is sound.py. This must have worked for someone once, and it doesn't include anything about creating a window. When I run it for the first time it makes a click but doesn't play the sound. It produces the xcb_connection_has_error() message but seems to ignore it. Adding pygame.display.set_mode((1,1)) to my program (which otherwise now is very similar to sound.py) doesn't help. This is driving me nuts! Regards - Philip On 02/06/2015 13:58, diliup gabadamudalige wrote: to do most things with pygame you need to initialize a pygame window. On Tue, Jun 2, 2015 at 3:50 AM, B W stabbingfin...@gmail.com mailto:stabbingfin...@gmail.com wrote: Hi, you cannot use the dummy video driver if you want sound. At least I have not figured out a way to do it. You need at least a 1x1 window. Gumm On Mon, Jun 1, 2015 at 2:11 PM, Philip Le Riche phi...@blueskylark.org mailto:phi...@blueskylark.org wrote: Just trying to get started with pygame and stuck at square 1. All I want to do is play sounds on a Raspberry Pi (Raspbian). No screen. Nothing visual. So I do: import pygame, os, sys from pygame.locals import * os.environ[SDL_VIDEODRIVER] = dummy pygame.mixer.init() sound = pygame.mixer.Sound(Exclamation.wav) sound.play(loops = 0) while pygame.mixer.music.get_busy() == True: continue Having saved it in file try.py, I do python try.py and get xcb_connection_has_error() returned true Yes, I've done an apt-get update and upgrade. I can make sounds with Sonic Pi but this produces nothing. Googling the error seemed to give no relevant results. Can someone give me a hint please? Regards - Philip http://www.diliupg.com http://soft.diliupg.com/ ** This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. **
Re: [pygame] Noob question: playing sounds
I did try forcing output to the 3.5mm socket using raspi-config even though sound works with omxplayer, but with no effect. But thanks for posting anyway - your second link contains a link to a sound troubleshooting page which I'll follow up later. Regards - Philip On 05/06/2015 10:00, Miriam English wrote: I found this, which might help: https://www.raspberrypi.org/documentation/configuration/audio-config.md and this gives a little more: https://www.raspberrypi.org/forums/viewtopic.php?t=11086p=122466
Re: [pygame] Noob question: playing sounds
Thanks Miriam, but since I can play sounds with omxplayer that wouldn't seem to be the problem. Kind regards - Philip On 05/06/2015 09:52, Miriam English wrote: It just occurred to me that I recall reading somewhere that there are 2 sound outputs in the Raspberry Pi (the audio jack, and the HDMI connector) and that some people have had difficulty switching between them. You are probably trying to get sound from the audio jack. Did you check whether there was sound coming from the HDMI connector? Or if you're doing it the other way, did you check the audio jack? Just a thought. :) Good luck to you, - Miriam On 05/06/15 18:10, Philip Le Riche wrote: I got rid of the xcb_connection_has_error() by unsetting shell environment variable DISPLAY, which PuTTy was helpfully setting for me (for good reason in other circumstances). The line os.environ[SDL_VIDEODRIVER] = dummy still seems to be necessary. However, I still get no sound. I'll try the RPi forums and see what anyone can suggest there. Regards - Philip On 04/06/2015 20:45, Michael Lutinsky wrote: I can verify that running: $ python /usr/lib/python2.7/dist-packages/pygame/examples/sound.py plays without error on my Kubuntu distro (x86_64 Linux kernel 3.19.0-18, pulseaudio 6.0). Must be a RPi issue? ~ Michael On Wed : Jun 3, 2015 10:38:41 AM you wrote: Well, this is strange. In /usr/lib/python2.7/dist-packages/pygame/examples there is sound.py. This must have worked for someone once, and it doesn't include anything about creating a window. When I run it for the first time it makes a click but doesn't play the sound. It produces the xcb_connection_has_error() message but seems to ignore it. Adding pygame.display.set_mode((1,1)) to my program (which otherwise now is very similar to sound.py) doesn't help. This is driving me nuts! Regards - Philip On 02/06/2015 13:58, diliup gabadamudalige wrote: to do most things with pygame you need to initialize a pygame window. On Tue, Jun 2, 2015 at 3:50 AM, B W stabbingfin...@gmail.com mailto:stabbingfin...@gmail.com wrote: Hi, you cannot use the dummy video driver if you want sound. At least I have not figured out a way to do it. You need at least a 1x1 window. Gumm On Mon, Jun 1, 2015 at 2:11 PM, Philip Le Riche phi...@blueskylark.org mailto:phi...@blueskylark.org wrote: Just trying to get started with pygame and stuck at square 1. All I want to do is play sounds on a Raspberry Pi (Raspbian). No screen. Nothing visual. So I do: import pygame, os, sys from pygame.locals import * os.environ[SDL_VIDEODRIVER] = dummy pygame.mixer.init() sound = pygame.mixer.Sound(Exclamation.wav) sound.play(loops = 0) while pygame.mixer.music.get_busy() == True: continue Having saved it in file try.py, I do python try.py and get xcb_connection_has_error() returned true Yes, I've done an apt-get update and upgrade. I can make sounds with Sonic Pi but this produces nothing. Googling the error seemed to give no relevant results. Can someone give me a hint please? Regards - Philip http://www.diliupg.com http://soft.diliupg.com/ ** This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. **
Re: [pygame] Noob question: playing sounds
Thank you for that, but still no joy whatsoever. I also tried uninstalling python-pygame and installing python3-pygame instead, but that gave the same error and furthermore, wouldn't recognise the existence of my wav file. I also tried installing pulseaudio, python-alsaaudio and python-pyalsa, thinking that it looked like pygame was failing to connect to the underlying sound system, but nothing made any difference. Are people successfully using pygame on the Raspberry Pi, or is it just broken? Regards - Philip On 04/06/2015 06:21, diliup gabadamudalige wrote: This has happened to me too on several occasions. I have resolved this by 1.pygame.mixer.pre_init(44100, 16, 2, 4096) # setup mixer to avoid sound lag 2.pygame.init() 3.pygame.mixer.set_num_channels(64) Try deleting the name of the file completley and renaming it. Sometimes there are hidden characters and this too causes problems. Hope this helps. On Thu, Jun 4, 2015 at 4:41 AM, Greg Ewing greg.ew...@canterbury.ac.nz mailto:greg.ew...@canterbury.ac.nz wrote: Philip Le Riche wrote: Well, this is strange. In /usr/lib/python2.7/dist-packages/pygame/examples there is sound.py. This must have worked for someone once, It still works for me, using pygame 1.9.2 with Python 2.7 on MacOSX 10.6. -- Greg -- Diliup Gabadamudalige http://www.diliupg.com http://soft.diliupg.com/ ** This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. **
Re: [pygame] Noob question: playing sounds
Well, this is strange. In /usr/lib/python2.7/dist-packages/pygame/examples there is sound.py. This must have worked for someone once, and it doesn't include anything about creating a window. When I run it for the first time it makes a click but doesn't play the sound. It produces the xcb_connection_has_error() message but seems to ignore it. Adding pygame.display.set_mode((1,1)) to my program (which otherwise now is very similar to sound.py) doesn't help. This is driving me nuts! Regards - Philip On 02/06/2015 13:58, diliup gabadamudalige wrote: to do most things with pygame you need to initialize a pygame window. On Tue, Jun 2, 2015 at 3:50 AM, B W stabbingfin...@gmail.com mailto:stabbingfin...@gmail.com wrote: Hi, you cannot use the dummy video driver if you want sound. At least I have not figured out a way to do it. You need at least a 1x1 window. Gumm On Mon, Jun 1, 2015 at 2:11 PM, Philip Le Riche phi...@blueskylark.org mailto:phi...@blueskylark.org wrote: Just trying to get started with pygame and stuck at square 1. All I want to do is play sounds on a Raspberry Pi (Raspbian). No screen. Nothing visual. So I do: import pygame, os, sys from pygame.locals import * os.environ[SDL_VIDEODRIVER] = dummy pygame.mixer.init() sound = pygame.mixer.Sound(Exclamation.wav) sound.play(loops = 0) while pygame.mixer.music.get_busy() == True: continue Having saved it in file try.py, I do python try.py and get xcb_connection_has_error() returned true Yes, I've done an apt-get update and upgrade. I can make sounds with Sonic Pi but this produces nothing. Googling the error seemed to give no relevant results. Can someone give me a hint please? Regards - Philip -- Diliup Gabadamudalige http://www.diliupg.com http://soft.diliupg.com/ ** This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. **
[pygame] Noob question: playing sounds
Just trying to get started with pygame and stuck at square 1. All I want to do is play sounds on a Raspberry Pi (Raspbian). No screen. Nothing visual. So I do: import pygame, os, sys from pygame.locals import * os.environ[SDL_VIDEODRIVER] = dummy pygame.mixer.init() sound = pygame.mixer.Sound(Exclamation.wav) sound.play(loops = 0) while pygame.mixer.music.get_busy() == True: continue Having saved it in file try.py, I do python try.py and get xcb_connection_has_error() returned true Yes, I've done an apt-get update and upgrade. I can make sounds with Sonic Pi but this produces nothing. Googling the error seemed to give no relevant results. Can someone give me a hint please? Regards - Philip