Skip to content

fix DeprecationWarning of imp#1896

Merged
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
njzjz:imp-warning
Sep 7, 2022
Merged

fix DeprecationWarning of imp#1896
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
njzjz:imp-warning

Conversation

@njzjz

@njzjz njzjz commented Sep 6, 2022

Copy link
Copy Markdown
Member

deepmd/env.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses

See also https://docs.python.org/3/library/imp.html#imp.reload

deepmd/env.py:8: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
See also https://docs.python.org/3/library/imp.html#imp.reload

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@github-actions github-actions Bot added the Python label Sep 6, 2022
@codecov-commenter

codecov-commenter commented Sep 6, 2022

Copy link
Copy Markdown

Codecov Report

Merging #1896 (ab1073f) into devel (0a15d19) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            devel    #1896   +/-   ##
=======================================
  Coverage   77.55%   77.55%           
=======================================
  Files         118      118           
  Lines        9824     9824           
=======================================
  Hits         7619     7619           
  Misses       2205     2205           
Impacted Files Coverage Δ
deepmd/env.py 75.67% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@njzjz

njzjz commented Sep 6, 2022

Copy link
Copy Markdown
Member Author

Python 3.12 will be released in October 2023.

@njzjz njzjz requested a review from wanghan-iapcm September 6, 2022 07:38
@wanghan-iapcm wanghan-iapcm merged commit d0b4a1d into deepmodeling:devel Sep 7, 2022
mingzhong15 pushed a commit to mingzhong15/deepmd-kit that referenced this pull request Jan 15, 2023
> deepmd/env.py:8: DeprecationWarning: the imp module is deprecated in
favour of importlib and slated for removal in Python 3.12; see the
module's documentation for alternative uses

See also https://docs.python.org/3/library/imp.html#imp.reload

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants