Mailing List Archive

[issue41469] Problem with serial communication
New submission from Jose Gabriel <josegabriel.fagundesribeiro@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@bugs.python.org>
<https://bugs.python.org/issue41469>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue41469] Problem with serial communication [ In reply to ]
Karthikeyan Singaravelan <tir.karthi@gmail.com> added the comment:

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.

----------
nosy: +xtreak
resolution: -> third party
stage: -> resolved
status: open -> closed

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue41469>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com