py
作者:互联网
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(
C:\Python38\lib\site-packages\pywinauto\application.py:1053: RuntimeWarning: Application is not loaded correctly (WaitForInputIdle failed)
warnings.warn('Application is not loaded correctly (WaitForInputIdle failed)', RuntimeWarning)
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(
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:\Python38\lib\site-packages\easytrader\clienttrader.py", line 542, in _get_left_menus_handle
handle.wait("ready", 2)
File "C:\Python38\lib\site-packages\pywinauto\application.py", line 511, in wait
wait_until(timeout, retry_interval,
File "C:\Python38\lib\site-packages\pywinauto\timings.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:\Python38\lib\site-packages\easytrader\clienttrader.py", line 542, in _get_left_menus_handle
handle.wait("ready", 2)
File "C:\Python38\lib\site-packages\pywinauto\application.py", line 511, in wait
wait_until(timeout, retry_interval,
File "C:\Python38\lib\site-packages\pywinauto\timings.py", line 375, in wait_until
raise err
pywinauto.timings.TimeoutError: timed out
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:
Traceback (most recent call last):
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 55, in init
self.positions_list = self.get_positions_all()
File "F:\GZH\easyquant\strategies\策略1股票.py", line 295, in get_positions_all
positions = self.user.position
File "C:\Python38\lib\site-packages\easytrader\clienttrader.py", line 146, in position
self._switch_left_menus(["查询[F4]", "资金股票"])
File "C:\Python38\lib\site-packages\easytrader\utils\perf.py", line 18, in wrapper
return f(*args, **kwargs)
File "C:\Python38\lib\site-packages\easytrader\clienttrader.py", line 522, in _switch_left_menus
self._get_left_menus_handle().get_item(path).select()
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 201, in __get_ctrl
dialog = self.backend.generic_wrapper_class(findwindows.find_element(**criteria[0]))
File "C:\Python38\lib\site-packages\pywinauto\findwindows.py", line 87, in find_element
raise ElementNotFoundError(kwargs)
pywinauto.findwindows.ElementNotFoundError: {'title': '网上股票交易系统5.0', 'backend': 'win32', 'process': 508352}
标签:Python38,py,site,File,line,packages 来源: https://www.cnblogs.com/gzhbk/p/15033434.html