关于XP环境下pyserial,提示AttributeError: function 'CancelIoEx' not found错误的解决方法
来源:互联网 发布:unity3d 嵌入网页 编辑:程序博客网 时间:2024/06/05 09:09
调用指令,
pip pyserial install
安装最新版本的pyserial,程序运行时提示错误如下,
File "C:\Python27\lib\site-packages\serial\__init__.py", line 27, in <module> from serial.serialwin32 import Serial File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 15, in <module> from serial import win32 File "C:\Python27\lib\site-packages\serial\win32.py", line 182, in <module> CancelIoEx = _stdcall_libraries['kernel32'].CancelIoEx File "C:\Python27\lib\ctypes\__init__.py", line 375, in __getattr__ func = self.__getitem__(name) File "C:\Python27\lib\ctypes\__init__.py", line 380, in __getitem__ func = self._FuncPtr((name_or_ordinal, self))AttributeError: function 'CancelIoEx' not found
原因CancelIoEx函数,只在Vista及以上版本运行。
解决方法
下载低版本的pyserial,尝试是否兼容xp环境。
下载安装pyserial-3.0版本成功解决此问题。
pyserial-3.0下载地址
官方下载地址
1 0
- 关于XP环境下pyserial,提示AttributeError: function 'CancelIoEx' not found错误的解决方法
- Windows XP系统下pyserial,提示AttributeError: function 'CancelIoEx' not found
- linux下提示slice2cpp:command not found的解决方法
- 关于Delphi 7 “'System.pas' not found” 错误的解决方法
- eclipse关于"/struts-tags" not found错误的最新解决方法
- Linux下的 command not found错误(解决方法)
- crontab提示command not found的解决方法
- 关于安转zsh之后使用vim 的提示出现这个错误arguments:450: _vim_files: function definition file not found _arguments:450
- LINQ:row not found or changed.错误提示可能的解决方法之一
- RationalRose启动提示java.lang.class.not found Exception错误的解决方法
- eclipse-cpp提示"launch failed.Binary not found"错误的解决方法
- 关于eclipse提示class file editor source not found的解决方法
- Mac下cocos2dx-3.0打包Android时,提示"SimpleAudioEngine.h"not found的解决方法
- 关于myeclipse启动错误的解决方法 com.genuitec.myeclipse.product.ide could not be found
- 关于myeclipse启动错误的解决方法 com.genuitec.myeclipse.product.ide could not be found
- ise14.4+petalinux12.12下启动xsdk,出现GLIBCXX_3.4.9’not found的错误的解决方法
- image not found 错误解决方法
- IIS7.5 下:HTTP 错误 404.17 - Not Found 请求的内容似乎是脚本 解决方法
- MySQL系列教程(五)
- iOS UIWindow最上层添加视图或者其他控件
- Lightoj 1008【规律】
- Android之Service详解(一)
- 常用正则表达式(转载)
- 关于XP环境下pyserial,提示AttributeError: function 'CancelIoEx' not found错误的解决方法
- 索引组织表(IOT) compress参数优化存储空间
- 学习文章列表
- Linux下的压缩解压缩命令详解
- 4年产品点滴心路——谈谈形而上的3个产品素质
- java xlsx 07 ,03 excel的导出
- Redis和Memcache的区别分析
- springMVC 文件下载
- mysql多维数据仓库指南--第一篇第4章(2)