Re: [pygame] updated homebrew package for newer OSX versions?

2018-03-02 Thread illume
Hi Sean,

No one is, as far as I'm aware.
There used to be one, but homebrew removed all python packages I think.
You can probably find the previous maintainers with some searching.

Happy to help you out if you need it.

The mac homebrew compile instructions are here:
https://www.pygame.org/wiki/MacCompile#Installing%20from%20source%20with%20homebrew


Note, we currently recommend people use this to install stuff.
python3 -m pip -U install pygame --user

With a whole bunch of platform specific notes at:
https://www.pygame.org/wiki/GettingStarted

That doesn't install into the system folder, but into a user folder.
It's unfortunate that pip still destroys stuff by default.


ps. it looks like you need to sign up to the mailing list at:
https://www.pygame.org/wiki/info#Mailing%20List
Seems your post is just on the google mirror of the mailing list.
Sorry for the confusion.


On Sunday, February 18, 2018 at 4:07:59 AM UTC+1, SeanSF wrote:
>
> Hey all, so it appears that installing pygame on the newer OSX versions is 
> extremely problematic. On a friend's computer I tried pip and easy_install, 
> and both ran into conflicts with the system python and root/nonroot install 
> paths.
>
> Rather than get into the specific problem here, can I ask the simple 
> question -- is anybody working on or actively maintaining a an OSX homebrew 
> tap for pygame? If not, I might jump into the fray and give it a shot.
>
> This way we can get back to just 'brew install python-pygame' and you're 
> done.
>
> -- 
> A musician must make music, an artist must paint, a poet must write, if he 
> is to be ultimately at peace with himself.
> - Abraham Maslow
>


[pygame] Re: Stange behavior with sound or MPC

2018-03-01 Thread illume
Hello,

It looks like the google mailing list mirror isn't sending emails back to 
the pygame mailing list for you.

I wonder if it is because you are not signed up to here?
https://www.pygame.org/wiki/info#Mailing%20List

You should be able to send an email to majord...@seul.org with the body, 
subscribe pygame-users

   - subscribe pygame-users 
    


cheers,




On Thursday, February 22, 2018 at 9:49:58 AM UTC+1, Marius Liebenberg wrote:
>
> Hi
> I am using a Pi2 with Jessie setup to use a 2.8" TFT Touch display.
>
> Pygame come installed and I did update to the latest version.
>
> I installed two different internet radio players that make use of a 
> subprocess call to control MPC / MPD player. Here is the strange thing that 
> both applications experience.When loaded first time I can hear the sound 
> being activated but no sound is produced. The MPC output reports the app 
> functioning correctly and playing. If I quit the application the sound will 
> be produced. MPD is a daemon loaded at boot time and PMC is a frontend to 
> comtrol MPD. It has simple commands to play stop set volume etc. It reports 
> the successful actions as they are executed throughout. If I load the 
> python ap from a SSH terminal (remote) it now plays and controls the player 
> correctly. All the functions work on the first load but no sound is 
> produced. 
>
> The app is load with this script
>
> #!/bin/sh
> cd /home/pi/pi-radio
> sudo python radioplayer.py
>
> and I put a call to the script in the /etc/rc.local file at the end.
>
> Anyone that can shed some light please?
>


Re: [pygame] BUG: Mask.overlap_mask

2018-03-01 Thread illume
Hello,

Thanks for picking up the ball.
It must be muddy and old after five years on the ground.

It's cool that your students are messing around with
per pixel collision detection.An d even making videos about it.
That's pretty advanced!

So, what's next for getting this issue fixed?


You've already linked to some existing discussion on the issue,
that's a good start! There's even code in there. Brilliant.

But what even is a mask, and an overlap?


Another thing people can do is link to the relevant code in
the pygame source code. This means they don't need to look
themselves, and it helps them get to the task quicker.

Remember, the person fixing the code might never have seen
or even used the code before.

Documentation for mask overlap stuff lives here:
  https://www.pygame.org/docs/ref/mask.html#pygame.mask.Mask.overlap

Implementation of bitmask overlap (src/bitmask.c in pygame repo).
  https://github.com/pygame/pygame/blob/master/src/bitmask.c#L161

The unit test is here (test/mask_test.py in the pygame repo):
  https://github.com/pygame/pygame/blob/master/test/mask_test.py#L74


So, now they know where to look for what it does, and where in 
the code base they can write a test for it, or change the code.


But is it even a bug? Having your students writing a unit test
for their own code will help them check all their assumptions,
and also see if it's a problem with the mask overlap code or
a problem somewhere else.

Being able to reproduce the issue makes it easier for anyone
coming along to fix it. If not a unit test, then a short script,
or minimal working example pasted into the issue will help with that.

Sometimes a visual example with an explanation is best.

Screenshots, screenshots, and more screenshots.
Or a video, are all useful in helping people understand what's
going on.



Mostly people only get a hour or two here and there on weekends
or late nights to mess around with pygame, it really helps the
next person to not drop the ball again.

Anything to help them see how it's not working correctly will
help the next person fix it.


cheers,





On Friday, March 2, 2018 at 7:46:13 AM UTC+1, ...@gmail.com wrote:
>
> I just found the Pygame Github repository.  I'll make sure the issue gets 
> reported there.
>
> On Thursday, March 1, 2018 at 11:42:40 PM UTC-7, rybeca...@gmail.com 
> wrote:
>>
>> So, *five years later* this bug still exists.  I use Pygame to teach a 
>> college video game course, and I have a student having what appears to be 
>> this exact same issue.  Sadly, the OP never bothered to file that bug 
>> report.
>>
>> I don't see any way to post a report at that link, which may be why the 
>> bug report was never filed.  I will explain what we are seeing though.
>>
>> My student started with a YouTube video, showing how to do pixel perfect 
>> collision detection with Pygame masks.  Several students have had success 
>> with this.  This particular student decided that he wanted to recolor one 
>> of the images, to display exactly where it is overlapping another image.  
>> Unfortunately, the recoloring behavior is totally erratic.  The parts of 
>> the image that are being recolored based on the overlap mask produced are 
>> very inconsistent.  Moving the top image even slightly can dramatically 
>> change what pixels are marked as colliding.  The only consistent thing is 
>> that pixels that are *not* colliding are never marked as colliding, 
>> however pixels that *are* colliding are not consistently marked as 
>> colliding.  When the mobile image is stationary, the pixels marked as 
>> colliding don't change, but a movement of 1 pixel in any direction can 
>> dramatically change what is marked as colliding and what is not.  Moving 
>> the mobile image rapidly back and forth over the stationary one appears to 
>> reveal vertical divisions, where pixels on one side are more likely to be 
>> marked as colliding than pixels on the other.  I did not observe horizontal 
>> divisions like this, though I could have missed them.
>>
>> Anyhow, someone *please* file a report for this bug!  It clearly should 
>> have been done 5 years ago, but someone obviously dropped the ball.
>>
>

[pygame] Re: Battery Life

2008-06-03 Thread illume
The method I mentioned above should be more power efficient for X11.

It just waits on the X11 socket for activity.

Also it might be worth only initialising the modules you use.

eg.  Instead of pygame.init() just do pygame.display.init() .



On Jun 4, 12:24 am, Doug Petkanics [EMAIL PROTECTED] wrote:
 What does strace show your process doing?

 While the process is idling it shows repeated:
 select(0,NULL, NULL, NULL, {0, 1}) = 0 (Timeout)
 select(5, [4], NULL, NULL, {0, 0})   = 0 (Timeout)
 select(0,NULL, NULL, NULL, {0, 1}) = 0 (Timeout)
 select(5, [4], NULL, NULL, {0, 0})   = 0 (Timeout)
 select(0,NULL, NULL, NULL, {0, 1}) = 0 (Timeout)
 select(5, [4], NULL, NULL, {0, 0})   = 0 (Timeout)

 ...and so on

 I assume this polling is the underlying pygame implementation of
 pygame.event.wait(). Wonder if there's any more efficient way?

 Thanks,
 Doug

 On Tue, Jun 3, 2008 at 7:18 AM, Marius Gedminas [EMAIL PROTECTED] wrote:
  On Mon, Jun 02, 2008 at 09:31:34PM -0700, The dob wrote:
   I'm running pygame on Maemo (linux on a mobile device). In my main
   game loop I am using pygame.event.wait() and sleeping all other
   running threads. To me this means that until there is an event, the
   process should not consume very much processor time. Unfortunately,
   the battery on the device still drains very quickly (about 4 hours
   when idle, as compared to 2 days while other applications are idle).

   Running 'top' does not indicate that the idle process is consuming
   very much processing power either.

  What does strace show your process doing?

  Marius Gedminas
  --
  It's not illegal to disagree with my opinions (*).
  [...]
  (*) Although it obviously _should_ be. Mwhaahahahahaaa... You unbelievers
  will all be shot when the revolution comes!
 -- Linus Torvalds

  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.6 (GNU/Linux)

  iD8DBQFIRShrkVdEXeem148RAlEFAJ0dYriqVXkQad+APqg0Y6gQ+GE+JACeME45
  zf5arVQY34yAVBAGRC8W2As=
  =gx5F
  -END PGP SIGNATURE-


[pygame] Re: pygame 1.8.0 problems

2008-05-12 Thread illume
hello,

is there anyway we can fix this in the installer?

Or maybe in the new surfarray somehow?

cheers,


On May 11, 5:53 am, Lenard Lindstrom [EMAIL PROTECTED] wrote:
 Jake b wrote:
  Hi. I'm trying to get ocempgui working, so I downloaded the newest
  version that removes numeric dependency. Then I installed the newest
  version of pygame. But import fails.

  I run:

  python.exe -i
  import ocempgui

  popup dialog:
  title: But I get python.exe - entry point not found
  error: The procedure entry pont SDL_GetKeyRepeat could not be located
  in the dynamic link libary SDL.dll

 [snip]
  What's wrong?

  == I have installed: ==
  python 2.5
  numpy
  pygame 1.8.0.win32-py2.5msi
  pygame 1.7.1.win32-py2.5
  OS: win32 / winXP

 You can't have both Pygame 1.7.1 and 1.8.0 installed at the same time.
 Try uninstalling Pygame, deleting directory
 C:\Python25\lib\site-packages\pygame if necessary, then reinstall Pygame
 1.8.0. I found no problems with OcempGUI and Pygame 1.8.1.

 --
 Lenard Lindstrom
 [EMAIL PROTECTED]


[pygame] test posting from google groups mailing list mirror.

2008-04-27 Thread illume
hi, this is a test message, please ignore.

cheers,


[pygame] google groups mirror of the mailing list.

2008-04-27 Thread illume
Hi,

The google groups mailing list mirror seems to work...

So for people with google accounts, you can now post to the REAL
pygame mailing list through the google groups web page.

Unfortunately their system doesn't allow importing of old messages -
so only new emails will show up in the mirror.

So this is really just good for people with a google account, who want
to read/post through the web page - rather than use their email
program.

Google groups pygame mailing list mirror:
http://groups.google.com/group/pygame-mirror-on-google-groups

Other ways to see the mailing list:
http://pygame.org/wiki/info


cu,