I am trying to connect to the serial ports a Raspberry Pi 3 Model B running Raspbian through Python.
import serial
works fine but ser = serial.Serial("dev/ttyAMA0", baudrate=9600)
yields this error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'Serial'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Serial'