passenger icon indicating copy to clipboard operation
passenger copied to clipboard

Passenger python bug

Open Raidm404 opened this issue 3 years ago • 3 comments

HI, I am using passenger 6.0.12 . There is a python warning bug with passenger python module. The imp module is depreciated. So if you use a python app with passenger your server log files will be filled with the following warning.

App 514754 output: /usr/share/passenger/helper-scripts/wsgi-loader.py:26: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
App 514754 output:   import sys, os, re, imp, threading, signal, traceback, socket, select, struct, logging, errno

Please some one can patch this module to use importlib instead of imp

Raidm404 avatar Dec 05 '21 09:12 Raidm404

image

Python 3.12 no longer has the imp module

gabefair avatar Oct 17 '23 02:10 gabefair

@gabefair the patch to fix this is already merged, it is just waiting on a release.

CamJN avatar Oct 17 '23 07:10 CamJN

Duplicate of #2501 and merged with https://github.com/phusion/passenger/pull/2502

gabefair avatar Oct 17 '23 16:10 gabefair