Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "C:\[...]\lib\site-packages\statsmodels\graphics\functional.py", line 32, in _pickle_method

if m.im_self is None:
AttributeError: 'function' object has no attribute 'im_self'

Traceback (most recent call last):


 "/opt/anaconda3/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3343, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)


 "<ipython-input-5-6b8e7ab113df>", line 1, in <module>

ak.index_stock_cons('399639')


 "/opt/anaconda3/lib/python3.8/site-packages/akshare/index/index_cons.py", line 93, in index_stock_cons

soup.find(attrs={"class": "table2"})
AttributeError: 'NoneType' object has no attribute 'find'
