Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

找不到CSV文件 #21

Open
tingyeeh opened this issue Oct 12, 2017 · 0 comments
Open

找不到CSV文件 #21

tingyeeh opened this issue Oct 12, 2017 · 0 comments

Comments

@tingyeeh
Copy link

Windows 10 64bit,
Anaconda2-2.4.1-Windows 36bit
Python 2.7.11 |Anaconda 2.4.1 (32-bit)| (default, Dec 7 2015, 14:13:17) [MSC v.1500 32 bit (Intel)] on win32
运行测试代码thrSMA.py,显示如下错误,是不是我配置有问题。
C:\Users\Ting\pyalgotrade-cn>python C:\Users\Ting\pyalgotrade-cn\stratlib\thrSMA.py Traceback (most recent call last): File "C:\Users\Ting\pyalgotrade-cn\stratlib\thrSMA.py", line 166, in <module> testStrategy() File "C:\Users\Ting\pyalgotrade-cn\stratlib\thrSMA.py", line 123, in testStrategy barfeed.loadBars(instrument, market, fromDate, toDate, filepath) File "build\bdist.win32\egg\pyalgotrade\cn\csvfeed.py", line 37, in loadBars File "C:\Anaconda2\lib\site-packages\pandas\io\parsers.py", line 498, in parser_f return _read(filepath_or_buffer, kwds) File "C:\Anaconda2\lib\site-packages\pandas\io\parsers.py", line 275, in _read parser = TextFileReader(filepath_or_buffer, **kwds) File "C:\Anaconda2\lib\site-packages\pandas\io\parsers.py", line 590, in __init__ self._make_engine(self.engine) File "C:\Anaconda2\lib\site-packages\pandas\io\parsers.py", line 731, in _make_engine self._engine = CParserWrapper(self.f, **self.options) File "C:\Anaconda2\lib\site-packages\pandas\io\parsers.py", line 1103, in __init__ self._reader = _parser.TextReader(src, **kwds) File "pandas\parser.pyx", line 353, in pandas.parser.TextReader.__cinit__ (pandas\parser.c:3246) File "pandas\parser.pyx", line 591, in pandas.parser.TextReader._setup_parser_source (pandas\parser.c:6111) IOError: File ..\histdata\minute\600288SH.csv does not exist

@tingyeeh tingyeeh changed the title CSV文件存在,缺 找不到CSV文件 Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant