kingofhawks / stocktrace

stock market analysis
5 stars 3 forks source link

run schedule should not touch mongodb #30

Closed kingofhawks closed 6 years ago

kingofhawks commented 12 years ago

when run realtimemonitorschedule.py will throw error: Traceback (most recent call last): File "E:\Dropbox\Workspace\stocktrace\src\cron\realtimemonitorschedule.py", line 23, in start(); File "E:\Dropbox\Workspace\stocktrace\src\cron\realtimemonitorschedule.py", line 14, in start from parse.sinaparser import getMyStock File "E:\Dropbox\Workspace\stocktrace\src\parse\sinaparser.py", line 84, in def downloadLatestData(quotes = findAllExistentTickers(),engine='sina'): File "E:\Dropbox\Workspace\stocktrace\src\dao\stockdao.py", line 273, in findAllExistentTickers connection = Connection() File "D:\Program Files\Python27\lib\site-packages\pymongo\connection.py", line 303, in init self.__find_node(seeds) File "D:\Program Files\Python27\lib\site-packages\pymongo\connection.py", line 666, in __find_node raise AutoReconnect(', '.join(errors)) pymongo.errors.AutoReconnect: could not connect to localhost:27017: [Errno 10061]