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

使用 python -m vnstation ,报错如下,请问如何解决?

D:\vnstudio>python -m vnstation
qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_ciphersuites
qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback
Traceback (most recent call last):
File "D:\vnstudio\lib\site-packages\vnstation\cli.py", line 90, in run_trader
module = importlib.import_module(d["module"])
File "D:\vnstudio\lib\importlib__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'vnpy.app.portfolio_strategy'

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

按照这份帖子,拷贝对应的dll到vnsdudio目录后,
安装完新的SSL
出现图片的报错对话框,后台报错:
D:\vnstudio>python -m vnstation
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed

description

description

description

description

description

description

Member
avatar
加入于:
帖子: 337
声望: 28

程序打不开是因为下面的ModuleNotFoundError报错,可以看一下vnpy/app下有没有portfolio_strategy模块。没有的话重新安装一下。
上面的qt报错是qt库的底层提示,不影响使用的。但是你替换了dll文件,出现了新的openssl问题,可参考此贴,先把openssl问题解决。

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

参考此贴以后,没有弹出报错窗口了,仍然有下面的错误提示,不影响对吗?
D:\vnstudio>python -m vnstation
qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_ciphersuites
qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback
qt.network.ssl: QSslSocket: cannot call unresolved function SSL_set_psk_use_session_callback

Member
avatar
加入于:
帖子: 337
声望: 28

是的,上面的错误不影响。

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

沪公网安备 31011502017034号

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