腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
0
回答
AttributeError
:“
Serial
”
对象
没有
属性
“”
in_waiting
python-2.7
、
raspberry-pi
、
python-3.4
response = connection.query(cmd) # send the command 当我开始运行代码时,我得到了这个错误:我该如何解决这个问题呢?
浏览 6
提问于2017-06-20
得票数 1
1
回答
Python3用pySerial进行非阻塞读取(无法获得pySerial的"
in_waiting
“
属性
)
python
、
raspberry-pi
、
pyserial
这是我的密码:print('
serial
port = ' + ser.name) #print the port used if (ser.in_waiting>0):ser.read(ser.in_waiting) 结果:
浏览 10
提问于2016-08-04
得票数 3
回答已采纳
8
回答
Python:“
AttributeError
”
对象
没有
“
Serial
”
属性
python
、
serial-port
、
raspberry-pi
我的脚本
serial
.py尝试导入pySerial:ser =
serial
.
Serial
('/dev/ttyAMA0', 9600)
AttributeError
: 'module' object has no attribute '
Serial
' 当我尝试在交互式Pyth
浏览 6
提问于2012-07-10
得票数 153
回答已采纳
2
回答
AttributeError
:“模块”
对象
没有
属性
“
Serial
”
python-2.7
、
arduino
、
pyserial
AttributeError
: 'module‘
对象
没有
属性
'
Serial
’。我的脚本名为rc_control_test.py import pygame class RCTest(object): pygame.init() self.ser =
serial
.
Serial<
浏览 0
提问于2018-01-29
得票数 0
1
回答
read_all()在macOS 11.6.1 m1硅片上的错误
python
、
python-3.x
、
pyserial
port_in_use =
serial
.
Serial
('port_name', 921600)观察行为 @property """Return the number of byt
浏览 12
提问于2022-03-14
得票数 0
2
回答
超时值在Windows上不起作用
python
、
windows
、
timeout
、
pyserial
以下是我对赢家的看法:>>> s =
serial
.
Serial
(3)>>> s>>> import
serial<
浏览 0
提问于2013-01-09
得票数 1
2
回答
Python 3
AttributeError
:模块'
serial
‘
没有
'
Serial
’
属性
python
、
python-3.x
、
pyserial
我在这里看到了很多有同样问题的问题,但我还
没有
找到一个有效的解决方案。我正在试着运行这个,但是我不能让它工作。我知道程序说它是为python2.7编写的,但据我所知,语言结构
没有
太大区别,对吧?然而,当我尝试运行下面的代码时,它抛出了一个
AttributeError
,就像我
没有
安装串行一样。我是不是漏掉了什么,或者读错了什么?任何帮助都将不胜感激。import sys arduino =
serial
.
Serial
('/dev
浏览 0
提问于2020-06-30
得票数 1
1
回答
pyserial库缺少`
Serial
`
属性
(带有python 2.7的ubuntu 16.04 )
python
、
pyserial
import
serial
print(Data) 错误:模块:‘
AttributeError
’
对象
没有
'
Serial
‘
属性
浏览 0
提问于2017-10-27
得票数 1
1
回答
AttributeError
:模块'
serial
‘
没有
属性
'
Serial
'- Python3.8
python-3.x
、
compiler-errors
这是我使用Python的第一个项目,我在Repl.it上写的(免责声明:我几乎
没有
编程经验),它应该在我收到消息时打开发光二极管,但当我运行它时出现这个错误(我在Windows10上运行它,64位)。import imaplibimport emailimport
serial
**ser=
serial
.
Serial
("COM3", 9600)** ser.close(
浏览 69
提问于2020-04-03
得票数 0
1
回答
Python :模块‘
attributeError
’
没有
属性
'
serial
‘
python
、
serial-port
、
pyserial
我使用以下行代码创建一个名为
serial
.py的文件:ser.write(b'mymessage')
attributeError
: module '
serial
' has no attribute '
Serial
' 对于他们的中的所有其他样本,这
浏览 1
提问于2017-06-23
得票数 1
回答已采纳
3
回答
pySerial
AttributeError
:模块“串行”
没有
属性
“
Serial
”
python
、
pyserial
、
python-module
我有windows 7 64位和Python 3.6<ipython-input-150-80ee8bd5f0f2> in <module>()
AttributeError
: module '
serial
浏览 4
提问于2017-11-08
得票数 5
1
回答
数据可用时未返回的串口read() (python/cygwin)
python
、
cygwin
、
pyserial
然后我查看了PySerial代码,看起来它
没有
在
对象
中设置正确的var (可能是错误的),所以我直接调用了'setInterCharTimeout‘方法。但结果还是一样。from lib.Hex import * s =
serial
.
Serial
(ports =
serial
.PosixPollS
浏览 4
提问于2017-05-01
得票数 0
1
回答
PySerial Python错误:
AttributeError
:'
Serial
‘
对象
没有
属性
'_port_handle’
android
、
python
、
tornado
、
pyserial
python -m pip install --upgrade tornado我从这一方面得到的例子的问题是:因为我从来
没有
用Python做过很多事情--我迷路了。
浏览 0
提问于2016-03-16
得票数 1
2
回答
Arduino到RPi串行通信
python
、
arduino
、
serial-port
、
raspberry-pi
但是当我运行Python代码时:import time 我怎么才能解决这个问题?
浏览 1
提问于2017-03-14
得票数 1
1
回答
尽管我使用python2.6,但io模块
对象
没有
属性
“RawIOBase”的原因
python
try:except ImportError: pass pass 我读到从Python2.6开始就支持RawI
浏览 1
提问于2014-05-09
得票数 4
回答已采纳
1
回答
如何解决
AttributeError
:模块'
serial
‘在pyserial中
没有
属性
'
Serial
’?
python
、
pyserial
我正在尝试使用pySerial通过串行
属性
连接到我的Arduino。ser =
serial
.
Serial
('COM4', 9600)
AttributeError
Tracebacktwilio.com/console
AttributeError
: module '
serial
' has no attribute '
Serial</em
浏览 27
提问于2019-11-15
得票数 0
1
回答
“模块”
对象
没有
属性
“
Serial
”
python
我使用下面的代码与一个arduino通信我的pc,但我得到了标题中提到的错误,模块objet
没有
属性
序列。import
serial
PuertoSerie =
serial
.
Serial
('/dev/ttyACM0', 9600) # Cream
浏览 7
提问于2015-05-15
得票数 2
回答已采纳
1
回答
AttributeError
:对于pi和arduino,“模块”
对象
没有
连接的
属性
“
Serial
”
python
、
arduino
、
pyserial
对Arduino来说,
Serial
.begin(9600);
Serial
.println("Hello Pi");} print ser.readline() 我安装了图书馆,也许我
浏览 3
提问于2019-11-27
得票数 0
1
回答
Raspberry Pi Arduino系列与Python
python
、
arduino
、
raspberry-pi
安装串行包(pip install
serial
、sudo apt-get install python-
serial
)后,我的脚本文件名为"arduino.py",代码为:我仍然得到相同的错误信息(
AttributeError
:'module‘
对象
没有
’
Ser
浏览 2
提问于2018-01-13
得票数 0
1
回答
pySerial运行命令以列出端口
pyserial
我使用pySerial运行这个命令,使用CMD列出可用的COM端口,并在找到时显示COM端口号:我知道,当我使用python -m标志时,命令行将导入串行模块,并且我可以访问其中的
对象
,因此它应该显示输出。但是,在使用空闲shell运行时,相同的命令无法工作:print(
serial
.tools.list_ports_common) 这将返回一个错误
AttributeError
:模块“串行”
没有</
浏览 4
提问于2021-10-08
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券