serial communication

All other Source.Python topics and issues.
Junior Member
Posts: 1
Joined: Tue Aug 02, 2022 2:07 pm

serial communication

Postby roxanavremi » Tue Aug 02, 2022 2:13 pm


PLC engineer here, so my programming skills are not great.
So, I need to make a communication with an equipment which comunicates on usb.
This is the code I wrote

import serial
port = "COM4"
baudrate = 9600
ser = serial.Serial(port,baudrate,timeout=0.001)
while True:
data = ser.readline

I recived this Warning : ModuleNotFoundError: No module named 'serial'

It seems you're trying to use a module that doesn't come with our installer. Check this FAQ in our docs to learn how to do this.

I checked the FAQ and installed a thing called Miniconda, and followed the steps. After this, I recive the following error: ModuleNotFoundError: No module named 'serial'

Any sugestions ?

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests