[New-bugs-announce] [issue41469] Problem with serial communication

Jose Gabriel report at bugs.python.org
Mon Aug 3 22:46:30 EDT 2020


New submission from Jose Gabriel <josegabriel.fagundesribeiro at gmail.com>:

I was doing a small serial communication system using pyserial. when I done the script on a .py file, it not worked. but when I opened
the python console and writed line by line the same code of the .py file, it worked.

the .py file:
import serial
ser = serial.Serial('com5')
ser.write('L'.encode())
ser.close()

it not worked.

on the python console:
python>> import serial
python>> ser = serial.Serial('com5')
python>> ser.write('L'.encode())
python>> ser.close()

It worked.

PySerial 3.4

----------
messages: 374788
nosy: JDev
priority: normal
severity: normal
status: open
title: Problem with serial communication
type: resource usage
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41469>
_______________________________________


More information about the New-bugs-announce mailing list