andrewRowlinson / mplsoccer

Football pitch plotting library for matplotlib
MIT License
391 stars 80 forks source link

cannot import name 'docstring' from 'matplotlib' #96

Closed hadisotudeh closed 11 months ago

hadisotudeh commented 11 months ago

When running "from mplsoccer import VerticalPitch", I get:

image

OnlineAnalytics commented 11 months ago

Hi @hadisotudeh , try a roll back of Matplotlib to version 3.7 worked for me.

hadisotudeh commented 11 months ago

Hi @OnlineAnalytics,

Thanks, yes that fixes the issue :)

andrewRowlinson commented 11 months ago

It looks like matplotlib depreciated this feature. I was using it to copy docstrings to avoid rewriting them everywhere. I need to look for an alternative.

andrewRowlinson commented 11 months ago

This should be fixed now with version 1.2.2. Available now on pypi and conda-forge.