Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pygame.midi input/output not working

46 views
Skip to first unread message

Patrick EGLOFF

unread,
Dec 21, 2022, 5:07:23 PM12/21/22
to
HI,
Some time ago I wrote a small software using pygame.midi
It worked just fine with Win10/ python 3.9 / SDL 2.0.14 / pygame 2.0.1

I had to change my computer and now I installed Win10 / Python 3.11.1 / SDL
2.0.18 / pygame 2.1.2

The following instructions don't work anymore, making the IDE stop
execution :

my_input = pygame.midi.Input(MidiDeviceIn)
midi_out = pygame.midi.Output(MidiDeviceOut)

Does someone have a suggestion?

Thanks,

--
Patrick Egloff
email : peg...@gmail.com
Web page : http://www.egloff.eu

Thomas Passin

unread,
Dec 21, 2022, 5:24:18 PM12/21/22
to
On 12/21/2022 4:32 PM, Patrick EGLOFF wrote:
> HI,
> Some time ago I wrote a small software using pygame.midi
> It worked just fine with Win10/ python 3.9 / SDL 2.0.14 / pygame 2.0.1
>
> I had to change my computer and now I installed Win10 / Python 3.11.1 / SDL
> 2.0.18 / pygame 2.1.2
>
> The following instructions don't work anymore, making the IDE stop
> execution :
>
> my_input = pygame.midi.Input(MidiDeviceIn)
> midi_out = pygame.midi.Output(MidiDeviceOut)
>
> Does someone have a suggestion?

The pygame web site says this:

"Pygame still does not run on Python 3.11"

Also from the same page:

"Make sure you install python with the "Add python to PATH" option
selected. This means that python, and pip will work for you from the
command line."

See https://www.pygame.org/wiki/GettingStarted#Pygame%20Installation

So what to do until pygame runs in Python 3.11? I'd install an earlier
version of Python. You can have several versions on your machine at the
same time. Remember, you have to install all the required packages with
each version of Python - they don't use each other's code or libraries.

Patrick EGLOFF

unread,
Dec 22, 2022, 12:33:42 AM12/22/22
to
Hi Thomas,

Thanks for the answer AND solution !
That was it... shame on me, I didn't notice this warning.

I uninstalled 3.11.1 and installed 3.10.9, and my software is back to live
!

Now I have to figure out another problem. I will make another post about
this serial weird behavior.

Thanks for making my day !
Patrick
> --
> https://mail.python.org/mailman/listinfo/python-list

Peter J. Holzer

unread,
Dec 22, 2022, 5:07:55 AM12/22/22
to
On 2022-12-21 17:23:47 -0500, Thomas Passin wrote:
> The pygame web site says this:
>
> "Pygame still does not run on Python 3.11"

This doesn't sound like "we haven't got around to preparing packages
yet" and more like "there's a serious incompatibility we haven't solved
yet".

Does anybody know what the issue is?

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | h...@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
signature.asc

Weatherby,Gerard

unread,
Dec 22, 2022, 8:09:33 AM12/22/22
to

Thomas Passin

unread,
Dec 22, 2022, 9:01:15 AM12/22/22
to
This issue thread on Github says that everyone is waiting on the
packaging maintainer, but nothing from him for some time.
0 new messages