This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Problem with serial communication
Type: resource usage Stage: resolved
Components: Versions: Python 3.8
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: JDev, xtreak
Priority: normal Keywords:

Created on 2020-08-04 02:46 by JDev, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg374788 - (view) Author: Jose Gabriel (JDev) Date: 2020-08-04 02:46
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
msg374792 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-08-04 03:56
This tracker is for issues related to CPython. Please report issues at the relevant repo https://github.com/pyserial/pyserial. Closing it as third party.
History
Date User Action Args
2022-04-11 14:59:34adminsetgithub: 85641
2020-08-04 03:56:55xtreaksetstatus: open -> closed

nosy: + xtreak
messages: + msg374792

resolution: third party
stage: resolved
2020-08-04 02:46:30JDevcreate