载入文件: rb20190301.csv
Traceback (most recent call last):
File "D:\Program Files\load_csv.py", line 74, in <module>
run_load_csv()
File "D:\Program Files\load_csv.py", line 19, in run_load_csv
csv_load(file)
File "D:\Program Files\load_csv.py", line 68, in csv_load
database_manager.save_tick_data(ticks)
File "D:\Program Files\vnstudio\lib\site-packages\vnpy\database\mongodb\mongodb_database.py", line 219, in save_tick_data
DbTickData.objects(
File "D:\Program Files\vnstudio\lib\site-packages\mongoengine\queryset\manager.py", line 37, in get
queryset = queryset_class(owner, owner._get_collection())
File "D:\Program Files\vnstudio\lib\site-packages\mongoengine\document.py", line 214, in _get_collection
if cls._meta.get("auto_create_index", True) and db.client.is_primary:
File "D:\Program Files\vnstudio\lib\site-packages\pymongo\mongo_client.py", line 1031, in is_primary
return self._server_property('is_writable')
File "D:\Program Files\vnstudio\lib\site-packages\pymongo\mongo_client.py", line 856, in _server_property
writable_server_selector)
File "D:\Program Files\vnstudio\lib\site-packages\pymongo\topology.py", line 243, in select_server
address))
File "D:\Program Files\vnstudio\lib\site-packages\pymongo\topology.py", line 200, in select_servers
selector, server_timeout, address)
File "D:\Program Files\vnstudio\lib\site-packages\pymongo\topology.py", line 217, in _select_servers_loop
(self._error_message(selector), timeout, self.description))
pymongo.errors.ServerSelectionTimeoutError: 172.0.0.1:27017: timed out, Timeout: 30s, Topology Description: <TopologyDescription id: 607a9f7acaa2dde19fe3862f, topology_type: Single, servers: [<ServerDescription ('172.0.0.1', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('172.0.0.1:27017: timed out')>]>