vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 25
声望: 0

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 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 "D:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\
init.py", line 9, in <module>
from .engine import CtaEngine
File "D:\vnstudio\lib\site-packages\vnpy\app\cta_strategy\engine.py", line 39, in <module>
from vnpy.trader.database import database_manager
File "D:\vnstudio\lib\site-packages\vnpy\trader\database\
init.py", line 12, in <module>
database_manager: "BaseDatabaseManager" = init(settings=settings)
File "D:\vnstudio\lib\site-packages\vnpy\trader\database\initialize.py", line 6, in init
driver = Driver(settings["driver"])
File "D:\vnstudio\lib\enum.py", line 309, in
call
return cls.
new(cls, value)
File "D:\vnstudio\lib\enum.py", line 543, in
new
return cls.missing(value)
File "D:\vnstudio\lib\enum.py", line 556, in missing
raise ValueError("%r is not a valid %s" % (value, cls.
name__))
ValueError: 'Sqlite' is not a valid Driver

description
MongoDB以前也没用过,运行张国平老师的“从IB接口获取历史数据”的代码,把“Sqlite”修改成MongoDB,其它地方未改。再运行出现上面的错误提示。
点关闭后,再点VN Trader Pro,提示已经在运行中。

description

英文水平太差,表示基本看不懂。请各位帮忙看是否需要重装VNStudio

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

上面提示信息是把MongoDB又改回Sqlite,也不行,点VN Trader Pro,还是提示已经在运行,最后提示ValueError: 'Sqlite' is not a valid Driver

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

把VNStudio卸载了重新装还是报同样的错。没办法了。

Administrator
avatar
加入于:
帖子: 4188
声望: 235

删除C:\users\administrator.vntrader目录即可,其中administrator是你的操作系统用户名

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

用Python的交易员 wrote:

删除C:\users\administrator.vntrader目录即可,其中administrator是你的操作系统用户名
好的,谢谢!

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