VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 2
声望: 0

Traceback (most recent call last):
File "E:/coding/Python/quant/51quant/main.py", line 58, in <module>
main()
File "E:/coding/Python/quant/51quant/main.py", line 37, in main
main_window = MainWindow(main_engine, event_engine)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\howtrader-2.2.3-py3.8.egg\howtrader\trader\ui\mainwindow.py", line 48, in init
self.init_ui()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\howtrader-2.2.3-py3.8.egg\howtrader\trader\ui\mainwindow.py", line 55, in init_ui
self.init_menu()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\howtrader-2.2.3-py3.8.egg\howtrader\trader\ui\mainwindow.py", line 113, in init_menu
ui_module = import_module(app.app_module + ".ui")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\howtrader-2.2.3-py3.8.egg\howtrader\app\cta_backtester\ui\
init.py", line 1, in <module>
from .widget import BacktesterManager
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\howtrader-2.2.3-py3.8.egg\howtrader\app\cta_backtester\ui\widget.py", line 7, in <module>
import pyqtgraph as pg
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyqtgraph\
init__.py", line 204, in <module>
from .graphicsItems.VTickGroup import *
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyqtgraph\graphicsItems\VTickGroup.py", line 7, in <module>
from .. import functions as fn
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyqtgraph\functions.py", line 17, in <module>
from . import debug
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyqtgraph\debug.py", line 11, in <module>
from . import ptime
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyqtgraph\ptime.py", line 24, in <module>
cstart = systime.clock() ### Required to start the clock in windows
AttributeError: module 'time' has no attribute 'clock'

Member
avatar
加入于:
帖子: 2
声望: 0

AttributeError: module 'time' has no attribute 'clock' 这个问题怎么解决啊

Member
avatar
加入于:
帖子: 101
声望: 8

Python3.8不再支持time.clock,将python降级到python3.7吧。

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】