Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Is python 3.9.5 compatible with selenium image #413

@rajesh9383

Description

@rajesh9383

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions