无法回测任何策略,点击回测就会报错
Translated Report (Full Report Below)
Process: Python [22185]
Path: /opt/homebrew/*/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.11.13 (3.11.13)
Code Type: ARM-64 (Native)
Parent Process: zsh [21754]
Responsible: Terminal [446]
User ID: 501
Date/Time: 2025-06-23 12:41:22.8019 +0800
OS Version: macOS 15.5 (24F74)
Report Version: 12
Anonymous UUID: EBB9C277-26E4-BF52-C22E-CEDC5F756D80
Sleep/Wake UUID: 788DE8D7-F6A1-4B6E-9AA5-0D66F59F40B3
Time Awake Since Boot: 98000 seconds
Time Since Wake: 4386 seconds
System Integrity Protection: enabled
/Users/lyz/Desktop/aitrader/quantstats/_plotting/core.py:306: UserWarning: Starting a Matplotlib GUI outside of the main thread will likely fail.
fig, ax = _plt.subplots(figsize=figsize)
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow should only be instantiated on the main thread!'