Aug-23-2023, 05:26 PM
Hi there ! glad to discover this forum.
first, i am a beginner, i want to learn Python etc.
i was typing this program :
i tried the method
it does not help. i have an other error code
i am using Python3.x
first, i am a beginner, i want to learn Python etc.
i was typing this program :
import serial serial_port = serial.Serial(port = "COM3", baudrate = 9600) serial_port.readline()and i get this error code :
Error:File "c:\Users\Mérill\Desktop\pytharduino2\ardseri.py3", line 2, in <module>
serial_port = serial.Serial(port = "COM3", baudrate = 9600)
^^^^^^^^^^^^^
AttributeError: module 'serial' has no attribute 'Serial'
i tried to reinstall the pyserial library, uninstall the serial library, i tried the method
from serial import Serial
it does not help. i have an other error code
Error:File "c:\Users\Mérill\Desktop\pytharduino2\ardseri.py3", line 1, in <module>
from serial import Serial
^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'Serial' from 'serial' (unknown location)
so i tried a lot of different common solutions to fix this problem. But i am stuck 
i am using Python3.x