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 接口问题报告 #4477

Closed
lwc87 opened this issue Jan 29, 2024 · 1 comment
Closed

AKShare 接口问题报告 #4477

lwc87 opened this issue Jan 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lwc87
Copy link

lwc87 commented Jan 29, 2024

遇到任何问题,请先确认您的 AKShare 版本是最新的

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

描述遇到的问题

  1. 操作系统版本:windows10
  2. Python 版本:3.10.13
  3. AKShare 版本:1.12.46
  4. 接口的名称和代码:get_receipt
  5. 接口报错的截图或代码:
    Traceback (most recent call last):
    File "C:\Users\L\miniconda3\envs\myenv\lib\site-packages\IPython\core\interactiveshell.py", line 3526, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
    File "", line 1, in
    runfile('C:\Users\L\PycharmProjects\trade\数据获取\AKShare\行情数据获取.py', wdir='C:\Users\L\PycharmProjects\trade\数据获取\AKShare')
    File "C:\Program Files\JetBrains\PyCharm 2022.3\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 198, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
    File "C:\Program Files\JetBrains\PyCharm 2022.3\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
    File "C:\Users\L\PycharmProjects\trade\数据获取\AKShare\行情数据获取.py", line 544, in
    task_download.receipt_data()
    File "C:\Users\L\PycharmProjects\trade\数据获取\AKShare\行情数据获取.py", line 248, in receipt_data
    data = ak.get_receipt(self.start, self.end)
    File "C:\Users\L\miniconda3\envs\myenv\lib\site-packages\akshare\futures\receipt.py", line 462, in get_receipt
    records = pd.concat([records, f(start_day, get_vars)])
    File "C:\Users\L\miniconda3\envs\myenv\lib\site-packages\akshare\futures\receipt.py", line 288, in get_czce_receipt_3
    temp_df = pd.read_excel(BytesIO(r.content))
    File "C:\Users\L\miniconda3\envs\myenv\lib\site-packages\pandas\io\excel_base.py", line 504, in read_excel
    io = ExcelFile(
    File "C:\Users\L\miniconda3\envs\myenv\lib\site-packages\pandas\io\excel_base.py", line 1567, in init
    raise ValueError(
    ValueError: Excel file format cannot be determined, you must specify an engine manually.
  6. 期望获得的正确结果
@lwc87 lwc87 added the bug Something isn't working label Jan 29, 2024
@lwc87
Copy link
Author

lwc87 commented Jan 29, 2024

已解决,我的代码问题,麻烦了

@lwc87 lwc87 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2024
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

1 participant