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

d:; cd 'd:\veighna_studio\Lib\site-packages\vnpy'; & 'd:\veighna_studio\python.exe' 'c:\Users\Administratorlb.vscode\extensions\ms-python.debugpy-2024.8.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '52655' '--' 'd:\veighna_studio\Lib\site-packages\vnpy\trader\engine.py'
Traceback (most recent call last):
File "d:\veighna_studio\Lib\site-packages\vnpy\trader\engine.py", line 3, in <module>
import smtplib
File "d:\veighna_studio\lib\smtplib.py", line 47, in <module>
import email.utils
File "d:\veighna_studio\lib\email\utils.py", line 33, in <module>
from email._parseaddr import quote
File "d:\veighna_studio\lib\email_parseaddr.py", line 16, in <module>
import time, calendar
File "d:\veighna_studio\lib\calendar.py", line 10, in <module>
import locale as _locale
File "d:\veighna_studio\Lib\site-packages\vnpy\trader\locale__init__.py", line 7, in <module>
translations: gettext.GNUTranslations = gettext.translation("vnpy", localedir=localedir, fallback=True)
File "d:\veighna_studio\lib\gettext.py", line 587, in translation
mofiles = find(domain, localedir, languages, all=True)
File "d:\veighna_studio\lib\gettext.py", line 558, in find
for nelang in _expand_lang(lang):
File "d:\veighna_studio\lib\gettext.py", line 213, in _expand_lang
loc = locale.normalize(loc)
AttributeError: partially initialized module 'locale' has no attribute 'normalize' (most likely due to a circular import)

Member
avatar
加入于:
帖子: 1653
声望: 121

不能直接运行engine.py文件,调试也要自己编写run.py作为主启动入口才能运行程序

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

沪公网安备 31011502017034号

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