pygame.midi input/output not working

2022-12-21 Thread Patrick EGLOFF
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 : pegl...@gmail.com
Web page : http://www.egloff.eu
-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: pygame.midi input/output not working

2022-12-21 Thread Patrick EGLOFF
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

Le mer. 21 déc. 2022 à 23:27, Thomas Passin  a écrit :

> 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.
> --
> https://mail.python.org/mailman/listinfo/python-list
>


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


-- 
Patrick Egloff
email : pegl...@gmail.com
Web page : http://www.egloff.eu
-- 
https://mail.python.org/mailman/listinfo/python-list


Pyserial problem

2022-12-22 Thread Patrick EGLOFF
Hi all,

I use Python 3.10.9 and Pyserial 3.5 on a Win10 machine.

I'm sending datas via an USB port to a device that accept commands in the
form of  : cmd;
The device receives and reacts to the commands sent, and it should reply
with an ACK of the same kind.

But looking with a COM port sniffer, nothing is sent back.

I checked that everything is working with PUTTY and even MINITERM, and
everything is just fine, the device is responding correctly.

I have set the flow control to different values, as well as setting the RTS
and DTR high or low with no change.
Normally, the device works without any flow control, and CTS + DTR high.

I checked with MINITERM, that the flow control and control lines have the
same state.

I'm a bit surprised and stucked.
Can someone help ?
Thanks,
-- 
Patrick Egloff
email : pegl...@gmail.com
Web page : http://www.egloff.eu
-- 
https://mail.python.org/mailman/listinfo/python-list