elgalu / docker-selenium

[NOT MAINTAINED] Please use <https://github.com/SeleniumHQ/docker-selenium>
https://github.com/SeleniumHQ/docker-selenium
Other
1.42k stars 334 forks source link

Is python 3.9.5 compatible with selenium image #413

Open rajesh9383 opened 3 years ago

rajesh9383 commented 3 years ago

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 commented 3 years ago

@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 .

elgalu commented 3 years ago

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:)