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

DeprecationWarning: distutils Version classes are deprecated #960

Open
brent-ridian opened this issue Mar 8, 2023 · 4 comments
Open

DeprecationWarning: distutils Version classes are deprecated #960

brent-ridian opened this issue Mar 8, 2023 · 4 comments

Comments

@brent-ridian
Copy link

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?

@wolframarnold
Copy link

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?

@brent-ridian
Copy link
Author

@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
Copy link
Author

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

@voidmain443
Copy link

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?

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

3 participants