C:Python38libsite-packagespywinautoapplication.py:1062: UserWarning: 32-bit application should be automated using 32-bit Python (you use 64-bit Python)
warnings.warn(
C:Python38libsite-packagespywinautoapplication.py:1053: RuntimeWarning: Application is not loaded correctly (WaitForInputIdle failed)
warnings.warn('Application is not loaded correctly (WaitForInputIdle failed)', RuntimeWarning)
C:Python38libsite-packagespywinautoapplication.py:1062: UserWarning: 32-bit application should be automated using 32-bit Python (you use 64-bit Python)
warnings.warn(
2021-07-20 09:53:58,917 [ERROR] clienttrader.py 546: error occurred when trying to get left menus
Traceback (most recent call last):
File "C:Python38libsite-packageseasytraderclienttrader.py", line 542, in _get_left_menus_handle
handle.wait("ready", 2)
File "C:Python38libsite-packagespywinautoapplication.py", line 511, in wait
wait_until(timeout, retry_interval,
File "C:Python38libsite-packagespywinauto imings.py", line 375, in wait_until
raise err
pywinauto.timings.TimeoutError: timed out
2021-07-20 09:54:01,597 [ERROR] clienttrader.py 546: error occurred when trying to get left menus
Traceback (most recent call last):
File "C:Python38libsite-packageseasytraderclienttrader.py", line 542, in _get_left_menus_handle
handle.wait("ready", 2)
File "C:Python38libsite-packagespywinautoapplication.py", line 511, in wait
wait_until(timeout, retry_interval,
File "C:Python38libsite-packagespywinauto imings.py", line 375, in wait_until
raise err
pywinauto.timings.TimeoutError: timed out
Traceback (most recent call last):
File "C:Python38libsite-packagespywinautoapplication.py", line 248, in __resolve_control
ctrl = wait_until_passes(
File "C:Python38libsite-packagespywinauto imings.py", line 458, in wait_until_passes
raise err
pywinauto.timings.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:/GZH/easyquant/main.py", line 76, in <module>
m.load_strategy()
File "F:GZHeasyquanteasyquantmain_engine.py", line 189, in load_strategy
self.load(self._names, strategy_file)
File "F:GZHeasyquanteasyquantmain_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:GZHeasyquanteasyquantstrategystrategyTemplate.py", line 31, in __init__
self.init()
File "F:GZHeasyquantstrategies策略1股票.py", line 55, in init
self.positions_list = self.get_positions_all()
File "F:GZHeasyquantstrategies策略1股票.py", line 295, in get_positions_all
positions = self.user.position
File "C:Python38libsite-packageseasytraderclienttrader.py", line 146, in position
self._switch_left_menus(["查询[F4]", "资金股票"])
File "C:Python38libsite-packageseasytraderutilsperf.py", line 18, in wrapper
return f(*args, **kwargs)
File "C:Python38libsite-packageseasytraderclienttrader.py", line 522, in _switch_left_menus
self._get_left_menus_handle().get_item(path).select()
File "C:Python38libsite-packagespywinautoapplication.py", line 362, in __getattribute__
ctrls = self.__resolve_control(self.criteria)
File "C:Python38libsite-packagespywinautoapplication.py", line 259, in __resolve_control
raise e.original_exception
File "C:Python38libsite-packagespywinauto imings.py", line 436, in wait_until_passes
func_val = func(*args, **kwargs)
File "C:Python38libsite-packagespywinautoapplication.py", line 201, in __get_ctrl
dialog = self.backend.generic_wrapper_class(findwindows.find_element(**criteria[0]))
File "C:Python38libsite-packagespywinautofindwindows.py", line 87, in find_element
raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'title': '网上股票交易系统5.0', 'backend': 'win32', 'process': 508352}