c:\python38\lib\site-packages\pywinauto\application.py:1062: userwarning: 32-bit application should be automated using 32-bit python (you use 64-bit python)
warnings.warn(
traceback (most recent call last):
file "c:\python38\lib\site-packages\pywinauto\application.py", line 248, in __resolve_control
ctrl = wait_until_passes(
file "c:\python38\lib\site-packages\pywinauto\timings.py", line 458, in wait_until_passes
raise err
pywinauto.timings.timeouterror
during handling of the above exception, another exception occurred:
file "f:/gzh/easyquant/main.py", line 76, in <module>
m.load_strategy()
file "f:\gzh\easyquant\easyquant\main_engine.py", line 189, in load_strategy
self.load(self._names, strategy_file)
file "f:\gzh\easyquant\easyquant\main_engine.py", line 155, in load
new_strategy = strategy_class(user=self.user, log_handler=self.log, main_engine=self, g_trade=self.g_trade)
file "f:\gzh\easyquant\easyquant\strategy\strategytemplate.py", line 31, in __init__
self.init()
file "f:\gzh\easyquant\strategies\政策1股票.py", line 53, in init
self.positions_list = self.get_positions_all()
file "f:\gzh\easyquant\strategies\政策1股票.py", line 293, in get_positions_all
positions = self.user.position
file "c:\python38\lib\site-packages\easytrader\clienttrader.py", line 148, in position
return self._get_grid_data(self._config.common_grid_control_id)
file "c:\python38\lib\site-packages\easytrader\clienttrader.py", line 490, in _get_grid_data
return self.grid_strategy_instance.get(control_id)
file "c:\python38\lib\site-packages\easytrader\grid_strategies.py", line 195, in get
self._trader.app.top_window().edit1.set_edit_text(temp_path)
file "c:\python38\lib\site-packages\pywinauto\application.py", line 362, in __getattribute__
ctrls = self.__resolve_control(self.criteria)
file "c:\python38\lib\site-packages\pywinauto\application.py", line 259, in __resolve_control
raise e.original_exception
file "c:\python38\lib\site-packages\pywinauto\timings.py", line 436, in wait_until_passes
func_val = func(*args, **kwargs)
file "c:\python38\lib\site-packages\pywinauto\application.py", line 220, in __get_ctrl
ctrl = self.backend.generic_wrapper_class(findwindows.find_element(**ctrl_criteria))
file "c:\python38\lib\site-packages\pywinauto\findwindows.py", line 84, in find_element
elements = find_elements(**kwargs)
file "c:\python38\lib\site-packages\pywinauto\findwindows.py", line 303, in find_elements
elements = findbestmatch.find_best_control_matches(best_match, wrapped_elems)
file "c:\python38\lib\site-packages\pywinauto\findbestmatch.py", line 533, in find_best_control_matches
raise matcherror(items = name_control_map.keys(), tofind = search_text)
pywinauto.findbestmatch.matcherror: could not find 'edit1' in 'dict_keys(['afxmdiframe42s', '資金餘額afxmdiframe42s', 'afxwnd42s', '', '0', '1', '2', 'ccustomtabctrl', '3', 'ccustomtabctrl0', 'ccustomtabctrl1', 'ccustomtabctrl2', 'hexinscrollwndafx:400000:0', 'afx:400000:0', 'hexinscrollwnd', 'afxwnd42s0', 'afxwnd42s1', 'afxwnd42s2', 'hexinscrollwnd2', 'hexinscrollwnd2afxwnd42s', '4', 'treeview', '5', 'scrollbar', '資金餘額#32770', '#32770', '6', 'ccustomtabctrl3', 'static', '資金餘額', '資金餘額static', 'static0', 'static1', 'static2', '當機金額static', '當機金額', 'static3', '可用金額', '可用金額static', 'static4', '1797.39', '1797.39static', 'static5', '1000.00static', '1000.00', 'static6', '797.39', '797.39static', 'static7', '可取金額static', '可取金額', 'static8', '股票市值static', '股票市值', 'static9', '總 資 産static', '總 資 産', 'static10', '797.390', '797.391', '797.392', '797.39static0', '797.39static1', '797.39static2', 'static11', '370.00static', '370.00', 'static12', '2167.39static', '2167.39', '修改成本價', '修改成本價button', 'button', 'static13', '797.39static3', 'static14', '現金資産', '現金資産static', 'static15', '1797.390', '1797.391', '1797.392', '1797.39static0', '1797.39static1', '1797.39static2', '現金資産ccustomtabctrl', '1797.39ccustomtabctrl', 'ccustomtabctrl4', 'static16', '國債逆回購為全部持倉中标準券逆回購部分的單列明細展示', '國債逆回購為全部持倉中标準券逆回購部分的單列明細展示static', 'static17', ' 預設為您開啟資産重新整理,持倉盈虧計算公式為(市價-保本價)*數量,其中保本價為計入賣出費用的成本價,該計算方式優先保障實時性,盈虧數值僅供參考,實際盈虧情況以對賬單為準。\n 若您須查詢對賬單盈虧資料,請前往“系統-系統設定-自動重新整理資産資料”菜單設定為否,并重新登入。static', ' 預設為您開啟資産重新整理,持倉盈虧計算公式為(市價-保本價)*數量,其中保本價為計入賣出費用的成本價,該計算方式優先保障實時性,盈虧數值僅供參考,實際盈虧情況以對賬單為準。\n 若您須查詢對賬單盈虧資料,請前往“系統-系統設定-自動重新整理資産資料”菜單設定為否,并重新登入。', 'hexinscrollwndafx:400000:00', 'hexinscrollwndafx:400000:01', 'hexinscrollwndafx:400000:02', 'afx:400000:00', 'afx:400000:01', 'afx:400000:02', 'hexinscrollwnd0', 'hexinscrollwnd1', 'hexinscrollwnd3', 'afxwnd42s3', 'hexinscrollwnd20', 'hexinscrollwnd21', 'hexinscrollwnd22', 'hexinscrollwnd2afxwnd42s0', 'hexinscrollwnd2afxwnd42s1', 'hexinscrollwnd2afxwnd42s2', 'custom1cvirtualgridctrl', 'cvirtualgridctrl', 'custom1', '現金資産scrollbar', 'scrollbar0', 'scrollbar1', 'scrollbar2', '7', 'toolbar', '8', '#327700', '#327701', '#327702', '9', 'combobox', '10', 'combobox0', 'combobox1', 'combobox2', '11', 'button0', 'button1', 'button2', '12', 'button3', '13', 'button4', '14', 'button5', 'statusbar', '完成statusbar', '完成'])'
process finished with exit code 1