python 窗口被关闭报错
作者:互联网
['Traceback (most recent call last):\n', ' File "C:\\Python38\\lib\\site-packages\\pywinauto\\application.py", line 248, in __resolve_control\n ctrl = wait_until_passes(\n', ' File "C:\\Python38\\lib\\site-packages\\pywinauto\\timings.py", line 458, in wait_until_passes\n raise err\n', 'pywinauto.timings.TimeoutError\n', '\nDuring handling of the above exception, another exception occurred:\n\n', 'Traceback (most recent call last):\n', ' File "F:\\GZH\\easyquant\\easyquant\\strategy\\strategyTemplate.py", line 73, in run\n self.strategy(event)\n', ' File "F:\\GZH\\easyquant\\strategies\\策略1回调.py", line 53, in strategy\n get_positions_status = self.get_positions_status(data)\n', ' File "F:\\GZH\\easyquant\\strategies\\策略1回调.py", line 222, in get_positions_status\n positions = self.user.position\n', ' File "C:\\Python38\\lib\\site-packages\\easytrader\\clienttrader.py", line 146, in position\n self._switch_left_menus(["查询[F4]", "资金股票"])\n', ' File "C:\\Python38\\lib\\site-packages\\easytrader\\utils\\perf.py", line 18, in wrapper\n return f(*args, **kwargs)\n', ' File "C:\\Python38\\lib\\site-packages\\easytrader\\clienttrader.py", line 522, in _switch_left_menus\n self._get_left_menus_handle().get_item(path).select()\n', ' File "C:\\Python38\\lib\\site-packages\\pywinauto\\application.py", line 362, in __getattribute__\n ctrls = self.__resolve_control(self.criteria)\n', ' File "C:\\Python38\\lib\\site-packages\\pywinauto\\application.py", line 259, in __resolve_control\n raise e.original_exception\n', ' File "C:\\Python38\\lib\\site-packages\\pywinauto\\timings.py", line 436, in wait_until_passes\n func_val = func(*args, **kwargs)\n', ' File "C:\\Python38\\lib\\site-packages\\pywinauto\\application.py", line 201, in __get_ctrl\n dialog = self.backend.generic_wrapper_class(findwindows.find_element(**criteria[0]))\n', ' File "C:\\Python38\\lib\\site-packages\\pywinauto\\findwindows.py", line 87, in find_element\n raise ElementNotFoundError(kwargs)\n', "pywinauto.findwindows.ElementNotFoundError: {'title': '网上股票交易系统5.0', 'backend': 'win32', 'process': 332152}\n"]
标签:packages,窗口,python,py,site,报错,File,line,Python38 来源: https://www.cnblogs.com/gzhbk/p/15013764.html