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

Replace imp by importlib library #11434

Closed
amaltaro opened this issue Jan 11, 2023 · 0 comments · Fixed by #11530
Closed

Replace imp by importlib library #11434

amaltaro opened this issue Jan 11, 2023 · 0 comments · Fixed by #11530
Assignees
Labels
Enhancement Feature change Medium Priority Python3 Technical Debt Used to track issues that address technical needs internal to WM team

Comments

@amaltaro
Copy link
Contributor

Impact of the new feature
WMCore in general

Is your feature request related to a problem? Please describe.
While deploying a new agent, I saw this warning message:

/data/srv/wmagent/v2.1.6/sw/slc7_amd64_gcc630/cms/wmagentpy3/2.1.6/bin/wmagent-mod-config:14: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

Most of the WMCore codebase has already adopted importlib package, but there are still a few leftovers, mainly related to scripts and tests.

Describe the solution you'd like
Search for all usage of the imp library and replace it by importlib.

Describe alternatives you've considered
None

Additional context
Issue seen during WMAgent 2.1.6 deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Feature change Medium Priority Python3 Technical Debt Used to track issues that address technical needs internal to WM team
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants