phusion / passenger

A fast and robust web server and application server for Ruby, Python and Node.js
https://www.phusionpassenger.com/
MIT License
5k stars 547 forks source link

Passenger python bug #2399

Open Raidm404 opened 2 years ago

Raidm404 commented 2 years ago

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

gabefair commented 1 year ago
image

Python 3.12 no longer has the imp module

CamJN commented 1 year ago

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

gabefair commented 1 year ago

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