docker-selenium icon indicating copy to clipboard operation
docker-selenium copied to clipboard

Is python 3.9.5 compatible with selenium image

Open rajesh9383 opened this issue 4 years ago • 2 comments

When we use this image in our environment the DTR scan show security vulnerabilities in python layer and asking to update to 3.9.2 or higher CVE-2021-29921. I tried to upgrade the python to 3.9.5 and I am getting these errors. Is selenium compatible with python 3.9.5? Any help or suggestions are highly appreciated.

Traceback (most recent call last): File "/usr/local/bin/supervisord", line 5, in from supervisor.supervisord import main File "/usr/local/lib/python3.9/site-packages/supervisor/supervisord.py", line 40, in from supervisor.options import ServerOptions File "/usr/local/lib/python3.9/site-packages/supervisor/options.py", line 54, in from supervisor import xmlrpc File "/usr/local/lib/python3.9/site-packages/supervisor/xmlrpc.py", line 25, in from supervisor.http import NOT_DONE_YET File "/usr/local/lib/python3.9/site-packages/supervisor/http.py", line 24, in from supervisor.medusa import default_handler File "/usr/local/lib/python3.9/site-packages/supervisor/medusa/default_handler.py", line 20, in from supervisor.medusa.util import html_repr File "/usr/local/lib/python3.9/site-packages/supervisor/medusa/util.py", line 1, in from cgi import escape ImportError: cannot import name 'escape' from 'cgi' (/usr/local/lib/python3.9/cgi.py) Traceback (most recent call last): File "/usr/local/bin/supervisord", line 5, in from supervisor.supervisord import main File "/usr/local/lib/python3.9/site-packages/supervisor/supervisord.py", line 40, in from supervisor.options import ServerOptions File "/usr/local/lib/python3.9/site-packages/supervisor/options.py", line 54, in from supervisor import xmlrpc File "/usr/local/lib/python3.9/site-packages/supervisor/xmlrpc.py", line 25, in from supervisor.http import NOT_DONE_YET File "/usr/local/lib/python3.9/site-packages/supervisor/http.py", line 24, in from supervisor.medusa import default_handler File "/usr/local/lib/python3.9/site-packages/supervisor/medusa/default_handler.py", line 20, in from supervisor.medusa.util import html_repr File "/usr/local/lib/python3.9/site-packages/supervisor/medusa/util.py", line 1, in from cgi import escape ImportError: cannot import name 'escape' from 'cgi' (/usr/local/lib/python3.9/cgi.py)

rajesh9383 avatar May 25 '21 02:05 rajesh9383

@elgalu I have upgraded python to 3.9.5 and supervisor version to 4.2. The tests are working fine but the live preview is not working. The containers shows disconnected .

rajesh9383 avatar Jun 08 '21 13:06 rajesh9383

Hi! I'm no longer actively working on this project, also not using it. You'll need to fix it and send a PR, or find someone who has time to fix it:)

elgalu avatar Jun 08 '21 13:06 elgalu