python multiprocessing多进程 cannot pickle '_io.TextIOWrapper' object
2024-10-21 11:29:21
Python 3.9.6 在windows下使用multiprocessing多进程报如下错误,但linux下正常
Traceback (most recent call last):
File "D:\Studio\python\New\autoTest\cases\Zd\commDaping.py", line 324, in testDapingLianHuaShiYeOK
self.dapingLianHuaShiYeOK(driver, paramsIn, checkPoint)
File "D:\Studio\python\New\autoTest\cases\Zd\dapingLianHuaShiYe.py", line 40, in dapingLianHuaShiYeOK
t1.start()
File "D:\ProgramFiles\Python\Python39\lib\multiprocessing\process.py", line 121, in start
self._popen = self._Popen(self)
File "D:\ProgramFiles\Python\Python39\lib\multiprocessing\context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "D:\ProgramFiles\Python\Python39\lib\multiprocessing\context.py", line 327, in _Popen
return Popen(process_obj)
File "D:\ProgramFiles\Python\Python39\lib\multiprocessing\popen_spawn_win32.py", line 93, in __init__
reduction.dump(process_obj, to_child)
File "D:\ProgramFiles\Python\Python39\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle '_io.TextIOWrapper' object
最新文章
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- pv命令监控Linux命令的执行进度
- Linux登录验证机制、SSH Bruteforce Login学习
- RSA密钥的生成与配置
- winform学习之----Directory
- FileInputStream利用缓冲数组读取数据
- ajax正确返回数据,却进入了error分支
- BZOJ 1055 玩具取名
- MFC学习之程序执行过程梳理
- Hbiernate关联排序问题
- loadrunner 手工参数拼接与l oadrunner的url编码
- 优雅的H5下拉刷新【minirefresh】
- Spark环境搭建(二)-----------HDFS shell 常用操作
- (一)为什么要UML
- QT 实现图片旋转的两种方法
- selenium官方网站文档,testng官方网站文档
- Codeforces 327E Axis Walking 状压dp
- Chess (SG + 状态压缩预处理)
- Shiro学习笔记 三(认证授权)
- linux base shell 基础语法2