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.

Author JDev
Recipients JDev
Date 2020-08-04.02:46:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596509190.34.0.229885984319.issue41469@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-08-04 02:46:30JDevsetrecipients: + JDev
2020-08-04 02:46:30JDevsetmessageid: <1596509190.34.0.229885984319.issue41469@roundup.psfhosted.org>
2020-08-04 02:46:30JDevlinkissue41469 messages
2020-08-04 02:46:30JDevcreate