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

np.string_ was removed in the NumPy 2.0 release. Use np.bytes_ instead. #898

Open
youssef595 opened this issue Jan 25, 2025 · 1 comment

Comments

@youssef595
Copy link

youssef595 commented Jan 25, 2025

import soccerdata as sd

opta loader from soccer data

Setup a scraper for the 2021/2022 Premier League season

ws = sd.WhoScored(leagues="ENG-Premier League", seasons="2024-2025")

Scrape all games and return a OptaLoader object

api = ws.read_events(output_fmt='loader')

error : np.string_ was removed in the NumPy 2.0 release. Use np.bytes_ instead.
socceraction version : 1.5.3
numpy version : 1.26.4
python version : 3.10.16

@probberechts
Copy link
Member

This doesn't seem right. One the hand, you are claiming to be using numpy v1.26.4. On the other hand, you report a bug related to numpy v2.0. Also note that socceraction has the following version constraint: numpy = "^1.26.0".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants