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

AKShare 接口问题报告 #4905

Closed
ghmole opened this issue May 25, 2024 · 1 comment
Closed

AKShare 接口问题报告 #4905

ghmole opened this issue May 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ghmole
Copy link

ghmole commented May 25, 2024

欢迎加入《数据科学实战》知识星球,交流财经数据与量化投资相关内容,
详细信息参考:https://akshare.akfamily.xyz/learn.html

前提

遇到任何问题,请先将您的 AKShare 版本升级到最新版,可以通过如下命令升级:

pip install akshare --upgrade  # Python 版本需要大于等于 3.8

如何提交问题

提交问题的同时,请提交以下相关信息,以便于解决问题

详细描述遇到的问题

  1. 操作系统版本,目前只支持 64 位操作系统
    ubuntu 20.04

  2. Python 版本,目前只支持 3.8 以上的版本
    3.9

  3. AKShare 版本,请升级到最新版
    1.13.86

  4. 接口的名称和相应的调用代码

下载深证股票代码

stock_info_sz_name_code_df = ak.stock_info_sz_name_code(symbol="A股列表")

  1. 接口报错的截图或描述
    File "/media/LinuxWork/works/PyStock/download_minute_data.py", line 93, in download_minute_data
    stock_info_sz_name_code_df = ak.stock_info_sz_name_code(symbol="A股列表")
    File "/media/LinuxWork/diddle/anaconda3/envs/juchao/lib/python3.9/site-packages/akshare/stock/stock_info.py", line 44, in stock_info_sz_name_code
    temp_df = pd.read_excel(BytesIO(r.content))
    File "/media/LinuxWork/diddle/anaconda3/envs/juchao/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 495, in read_excel
    io = ExcelFile(
    File "/media/LinuxWork/diddle/anaconda3/envs/juchao/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 1554, in init
    raise ValueError(
    ValueError: Excel file format cannot be determined, you must specify an engine manually.

  2. 期望获得的正确结果
    深证股票信息

@ghmole ghmole added the bug Something isn't working label May 25, 2024
@albertandking
Copy link
Collaborator

欢迎加入《数据科学实战》知识星球,交流财经数据与量化投资相关内容,
详细信息参考:https://akshare.akfamily.xyz/learn.html

前提

遇到任何问题,请先将您的 AKShare 版本升级到最新版,可以通过如下命令升级:

pip install akshare --upgrade  # Python 版本需要大于等于 3.8

如何提交问题

提交问题的同时,请提交以下相关信息,以便于解决问题

详细描述遇到的问题

  1. 操作系统版本,目前只支持 64 位操作系统
    ubuntu 20.04
  2. Python 版本,目前只支持 3.8 以上的版本
    3.9
  3. AKShare 版本,请升级到最新版
    1.13.86
  4. 接口的名称和相应的调用代码

下载深证股票代码

stock_info_sz_name_code_df = ak.stock_info_sz_name_code(symbol="A股列表")

  1. 接口报错的截图或描述
    File "/media/LinuxWork/works/PyStock/download_minute_data.py", line 93, in download_minute_data
    stock_info_sz_name_code_df = ak.stock_info_sz_name_code(symbol="A股列表")
    File "/media/LinuxWork/diddle/anaconda3/envs/juchao/lib/python3.9/site-packages/akshare/stock/stock_info.py", line 44, in stock_info_sz_name_code
    temp_df = pd.read_excel(BytesIO(r.content))
    File "/media/LinuxWork/diddle/anaconda3/envs/juchao/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 495, in read_excel
    io = ExcelFile(
    File "/media/LinuxWork/diddle/anaconda3/envs/juchao/lib/python3.9/site-packages/pandas/io/excel/_base.py", line 1554, in init
    raise ValueError(
    ValueError: Excel file format cannot be determined, you must specify an engine manually.
  2. 期望获得的正确结果
    深证股票信息

接口正常

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