nfl_data_py icon indicating copy to clipboard operation
nfl_data_py copied to clipboard

nfl.cache_pbp() doesn't work for the 2024 season

Open bendub21 opened this issue 4 months ago • 1 comments

Has anyone already reported this issue?

  • [x] I have searched the existing issues

Have you installed the latest version of nfl_data_py?

  • [x] I have installed the latest version of nfl_data_py

Add a description

Function call (include your input values): nfl.cache_pbp([2024], downcast=True, alt_path="data/pbp_cache") data_pbp = nfl.import_pbp_data([2024], downcast=True, cache=True, alt_path="data/pbp_cache")

Expectation: 2024 data gets downloaded/caches and then gets loaded into data frame

Actual result: (terminal output) DeprecationWarning: Caching failed for 2024, skipping. In nfl_data_py 1.0, this will raise an exception. Failure: HTTP Error 404: Not Found nfl.cache_pbp(years, downcast=True, alt_path="data/pbp_cache")

(comments) pbp_cache directory remains as it was before (e.g., no "season=2024" folder and no metadata/parquet files)

Full error message, if applicable: See above

Any other relevant info: 2023 works fine. And 2024 can be downloaded without caching--I'd just prefer to not spam the GitHub with requests while I'm developing/testing.

Environment

System Information:
- nfl_data_py version: 0.3.3 (latest available on PyPI)
- Python version: 3.12
- Operating System: Linux 6.8.0-71-generic
- Virtual environment: Yes (venv)

Error Details:
- Command: nfl.cache_pbp([2024], downcast=True, alt_path="data/pbp_cache")
- Error: HTTP Error 404: Not Found
- Expected: 2024 PBP data should be available since the season is complete
- Actual: Getting 404 error when trying to cache 2024 data

bendub21 avatar Aug 16 '25 00:08 bendub21

Has anyone worked on this yet? I would love to complete this task!

aledelaoo avatar Aug 30 '25 21:08 aledelaoo