vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 16
声望: 0

哪位高手帮忙解答一下,已启动出现了以下问题,触发异常,请问是什么问题?

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 83, in run_trader
module = importlib.import_module(d["module"])
File "c:\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 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\vnstudio\lib\site-packages\vnpy\gateway\binance\
init.py", line 1, in <module>
from .binance_gateway import BinanceGateway
File "c:\vnstudio\lib\site-packages\vnpy\gateway\binance\binance_gateway.py", line 17, in <module>
from vnpy.api.rest import RestClient, Request
File "c:\vnstudio\lib\site-packages\vnpy\api\rest\
init__.py", line 1, in <module>
from .rest_client import Request, RequestStatus, RestClient
File "c:\vnstudio\lib\site-packages\vnpy\api\rest\rest_client.py", line 14, in <module>
requests.packages.urllib3.contrib.pyopenssl.extract_from_urllib3()
AttributeError: module 'urllib3.contrib' has no attribute 'pyopenssl'

Member
avatar
加入于:
帖子: 2364
声望: 148

请升级至2.1.9.1再试试看

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

好的,谢谢,我的pip没有升级,升级pip后,在升级到2.1.9.1就可以了。

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

沪公网安备 31011502017034号