pyserial / pyserial-asyncio

asyncio extension package for pyserial
Other
251 stars 65 forks source link

Windows - coroutine issue #104

Closed mdeweerd closed 7 months ago

mdeweerd commented 7 months ago

I got the following error in python3.12 on windows:

  File "D:\mdeweerd\workspace\serial\captureSerial.py", line 101, in read_port        
    async with open_serial_connection(url=port, baudrate=115200) as (reader, _):      
TypeError: 'coroutine' object does not support the asynchronous context manager protocol

I'll try #91 .

mdeweerd commented 7 months ago

Tested without success #91 force installing from a requirements.txt with:

pyserial-asyncio @ git+https://github.com/hugh-manning/pyserial-asyncio.git@e27c5c5
mdeweerd commented 7 months ago

Apparently this stemmed from my code - reverting back to python3.10 gave me more usefull error messages . There was no proper 'await'.