Python - AttributeError: module 'serial' has no attribute 'Serial'

preview_player
Показать описание
Python AttributeError: 'module' object has no attribute 'Serial'
Python AttributeError: 'module' object has no attribute 'Serial'

raspberry attributeerror 'module' object has no attribute 'serial'

from serial import serial importerror: cannot import name 'serial'

module serial has no attribute serial python

attributeerror: module 'serial' has no attribute 'serial' python3

no module named serial

cannot import serial from serial

from serial import *
Рекомендации по теме
Комментарии
Автор

thank you! we were having the hardest time figuring out what the problem was and all we needed to do was uninstall serial

shadowlink
Автор

In Linux Mint Mate, all I did was go to "Software Management", type in "pyserial", then "Install" and it works now! Thanks much!

VeryMuchBlessed
Автор

It didn't work for me. I've installed pyserial from the beginning and still get the same error. with this code. I'm trying to connect to a router so i can configure ssh with a script but can't get it working...


import serial
import time
import datetime
from serial import serial

console = serial.Serial(
port='COM10',
baudrate=9600,
parity="N",
stopbits=1,
bytesize=8,
timeout=8
)

hugje
welcome to shbcf.ru