|
楼主 |
发表于 2021-11-21 20:21:00
|
显示全部楼层
你应该是mac电脑吧, 我是windows的,详细报错信息如下:
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "D:\Python\lib\multiprocessing\queues.py", line 245, in _feed
obj = _ForkingPickler.dumps(obj)
File "D:\Python\lib\multiprocessing\reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <class '__main__.DuoJincheng'>: attribute lookup DuoJincheng on __main__ failed
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "D:\PyCharm 2021.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "D:\PyCharm 2021.1.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "F:/python123/迭代器/diedai.py", line 25, in <module>
duojincheng.main()
File "F:/python123/迭代器/diedai.py", line 20, in main
for i in result:
File "D:\Python\lib\concurrent\futures\process.py", line 559, in _chain_from_iterable_of_lists
for element in iterable:
File "D:\Python\lib\concurrent\futures\_base.py", line 608, in result_iterator
yield fs.pop().result()
File "D:\Python\lib\concurrent\futures\_base.py", line 438, in result
return self.__get_result()
File "D:\Python\lib\concurrent\futures\_base.py", line 390, in __get_result
raise self._exception
File "D:\Python\lib\multiprocessing\queues.py", line 245, in _feed
obj = _ForkingPickler.dumps(obj)
File "D:\Python\lib\multiprocessing\reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <class '__main__.DuoJincheng'>: attribute lookup DuoJincheng on __main__ failed |
|