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

获取行业分类出错 #469

Open
kernel8liang opened this issue Sep 17, 2017 · 3 comments
Open

获取行业分类出错 #469

kernel8liang opened this issue Sep 17, 2017 · 3 comments

Comments

@kernel8liang
Copy link


In [4]: ts.__version__
Out[4]: '0.9.2'
In [1]: import tushare as ts

In [2]: ts.get_industry_classified()
HTTP Error 456:
[Getting data:]---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-12cde4a4f825> in <module>()
----> 1 ts.get_industry_classified()

/home/liang/anaconda2/lib/python2.7/site-packages/tushare/stock/classifying.pyc in get_industry_classified(standard)
     48     data = []
     49     ct._write_head()
---> 50     for row in df.values:
     51         rowDf =  _get_detail(row[0], retry_count=10, pause=0.01)
     52         rowDf['c_name'] = row[1]

AttributeError: 'NoneType' object has no attribute 'values'
@raymondmars
Copy link
Contributor

目前,最新版本是正常的,请升级到最新版本。尽量使用 Python 3.0 +

@jimmysoa
Copy link
Member

jimmysoa commented Oct 1, 2017

@robotJiang

@Leonardo-YXH
Copy link

这个函数有时候好好的,有时候又出现error456,怎么解释?我的Python2.7

@ffalq
Copy link

ffalq commented Nov 16, 2017

@Leonardo-YXH 我也碰到过,感觉是服务器对于频繁调用的保护机制,类似于屏蔽ddos攻击

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

5 participants