pandas-datareader icon indicating copy to clipboard operation
pandas-datareader copied to clipboard

DeprecationWarning: distutils Version classes are deprecated

Open brent-ridian opened this issue 1 year ago • 4 comments

I am using the latest version of pandas-datareader (0.10.0).

I recently updated to Python 3.10, and rebuilt my project's virtual environment form scratch (from its requirements.txt file).

When I run certain modules now, pandas-datareader now causes a DeprecationWarning ro print:

...\virtualenvs\xxx-venv\lib\site-packages\pandas_datareader\compat\__init__.py:11
  ...\virtualenvs\xxx-venv\lib\site-packages\pandas_datareader\compat\__init__.py:11: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    PANDAS_VERSION = LooseVersion(pd.__version__)

Is this a known issue? I searched this project for "DeprecationWarning" but did not find anything.

Is there a fix or workaround for this issue?

Or, does pandas-datareader need to be updated?

brent-ridian avatar Mar 08 '23 22:03 brent-ridian

This has already been fixed in pull request #928 which was merged. A new release needs to be cut. cc @bashtage could you trigger that, please?

wolframarnold avatar Mar 14 '23 23:03 wolframarnold

@wolframarnold: thanks much for replying. I am thrilled that this issue has already been fixed. I will use the new version as soon as you release it, which will hopefully be soon now!

brent-ridian avatar Mar 16 '23 19:03 brent-ridian

Any idea, @wolframarnold or @bashtage, when the new release might come out?

brent-ridian avatar Mar 30 '23 15:03 brent-ridian

I heard the distutils is depreated and will be not used after 3.12 and I want to use pandas-datareader but i have a same problem with checking and using . Can't import the Package It is installed but it cant be run. When the merge can be in new release?

voidmain443 avatar Feb 02 '24 05:02 voidmain443