When I attempt to deploy a Flask app on a shared hosting site, using cPanel, the deployment fails with this message: "ModuleNotFoundError: No module named 'imp'." As other posts have indicated, the imp module has been removed from Python and a different module, importlib, should be used instead. However, the file named passenger_wsgi.py is generated automatically any edited version will always be overwritten. It is this file that needs to use the imp module. How can I deploy my Flask app on shared hosting, using cPanel to set up the app? . Continue reading...