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

stock_comment_em 接口问题报告 #5426

Closed
milk36 opened this issue Dec 15, 2024 · 2 comments
Closed

stock_comment_em 接口问题报告 #5426

milk36 opened this issue Dec 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@milk36
Copy link

milk36 commented Dec 15, 2024

  1. 操作系统版本:Windows 10 64
  2. Python 版本:Python 3.10.0
  3. AKShare 版本:1.15.47
  4. 接口的名称和相应的调用代码 : stock_comment_em
import akshare as ak

# 调用接口获取数据
stock_comment_em_df = ak.stock_comment_em()


# 将结果输出到CSV文件
stock_comment_em_df.to_csv("千股千评.csv", index=False,encoding=csv_encoding)
  1. 接口报错的截图或描述
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[3], line 5
      1 import akshare as ak
      2 # print(ak.__version__)
      3 
      4 # 调用接口获取数据
----> 5 stock_comment_em_df = ak.stock_comment_em()
      6 # stock_comment_em_df = ak.stock_comment_detail_zlkp_jgcyd_em(symbol="600000")
      7 
      8 # 将结果输出到CSV文件
      9 stock_comment_em_df.to_csv("千股千评.csv", index=False,encoding=csv_encoding)

File [~\AppData\Roaming\Python\Python310\site-packages\akshare\stock_feature\stock_comment_em.py:42](https://file+.vscode-resource.vscode-cdn.net/d%3A/GithubProjects/%E8%82%A1%E7%A5%A8/akShare/~/AppData/Roaming/Python/Python310/site-packages/akshare/stock_feature/stock_comment_em.py:42), in stock_comment_em()
     40 big_df = pd.DataFrame()
     41 tqdm = get_tqdm()
---> 42 for page in tqdm(range(1, total_page + 1), leave=False):
     43     params.update({"pageNumber": page})
     44     r = requests.get(url, params=params)

File [c:\Python310\lib\site-packages\tqdm\notebook.py:234](file:///C:/Python310/lib/site-packages/tqdm/notebook.py:234), in tqdm_notebook.__init__(self, *args, **kwargs)
    232 unit_scale = 1 if self.unit_scale is True else self.unit_scale or 1
    233 total = self.total * unit_scale if self.total else self.total
--> 234 self.container = self.status_printer(self.fp, total, self.desc, self.ncols)
    235 self.container.pbar = proxy(self)
    236 self.displayed = False

File [c:\Python310\lib\site-packages\tqdm\notebook.py:108](file:///C:/Python310/lib/site-packages/tqdm/notebook.py:108), in tqdm_notebook.status_printer(_, total, desc, ncols)
     99 # Fallback to text bar if there's no total
    100 # DEPRECATED: replaced with an 'info' style bar
    101 # if not total:
   (...)
    105 
    106 # Prepare IPython progress bar
    107 if IProgress is None:  # #187 #451 #558 #872
--> 108     raise ImportError(WARN_NOIPYW)
    109 if total:
    110     pbar = IProgress(min=0, max=total)

ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
@milk36 milk36 added the bug Something isn't working label Dec 15, 2024
@albertandking
Copy link
Collaborator

4. stock_comment_em

接口测试正常

@milk36
Copy link
Author

milk36 commented Dec 23, 2024

升级到: 1.15.51 版本 接口调用正常了...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants