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

Deprecation warning: the imp module is deprecated in favour of importlib #191

Closed
Andromelus opened this issue Dec 19, 2022 · 0 comments · Fixed by #192
Closed

Deprecation warning: the imp module is deprecated in favour of importlib #191

Andromelus opened this issue Dec 19, 2022 · 0 comments · Fixed by #192

Comments

@Andromelus
Copy link
Contributor

Hello.
There is a deprecation warning coming from config.py at this line:

from imp import load_source

../../../../usr/local/lib/python3.9/site-packages/hdfs/config.py:15
/usr/local/lib/python3.9/site-packages/hdfs/config.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
from imp import load_source

According to the official documentation:

Deprecated since version 3.4, will be removed in version 3.12: The imp module is deprecated in favor of importlib.


Python 3.9
HdfsCLI 2.6.0 and 2.7.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

Successfully merging a pull request may close this issue.

1 participant