ML-KULeuven / socceraction

Convert soccer event stream data to SPADL and value player actions using VAEP or xT
MIT License
605 stars 136 forks source link

ModuleNotFoundError: No module named 'socceraction.data' #57

Closed twhelan22 closed 2 years ago

twhelan22 commented 2 years ago

I am getting this error when running 1-load-and-convert-statsbomb-data.ipynb using the latest version. Here is the code from the notebook: from socceraction.data.statsbomb import StatsBombLoader Which gives an error.

The following works, however: from socceraction.socceraction.data.statsbomb import StatsBombLoader

This is an issue for all imports, e.g. StatsBombLoader requires: from socceraction.data.base import EventDataLoader, ParseError

probberechts commented 2 years ago

Thanks for your bug report! The socceraction.data module was not included in the latest pip release. It should be fixed if you upgrade:

pip install socceraction==1.1.1
twhelan22 commented 2 years ago

Yep works, thanks for the quick fix!