How to fix DeprecationWarning from use of imp module?
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Chris
  2. 21.09.2020
  3.  Subscribe via email
I have installed a Python application using cPanel's "Setup Python App" feature on a CloudLinux server. Python version is 3.8.1.

I receive this warning message in the Passenger error.log file every time that a webpage in the app is visited:


/opt/passenger-5.3.7-4.el6.cloudlinux/src/helper-scripts/wsgi-loader.py:26: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

import sys, os, re, imp, threading, signal, traceback, socket, select, struct, logging, errno


Is there anything I can do to fix this and change imp to to importlib?
Rate this post:
  1. 21.09.2020 15:09:04
  2. # 1
Sergey Khristich Accepted Answer
Posts: 469
Joined: 20.05.2019
0
Votes
Undo
Hello Chris,
To help you with this question we need a little bit more information, please create a ticket here https://cloudlinux.zendesk.com/hc/en-us/requests/new and technical experts will help you asap.
If you have any other questions, feel free to ask here.
Thank you for contacting us.
Marketing Manager
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.