You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run into a problem with your version_information resource when moving to Python 3.8 under JupyterLab 2.1.2 (it's not giving the error when working in a simple IPython terminal window).
The error seems to be related to cgi.escape no longer being used in Python 3.8 Supervisor/supervisor#1257
Example of error is here:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/usr/local/Cellar/jupyterlab/2.1.2/libexec/lib/python3.8/site-packages/IPython/core/formatters.py in __call__(self, obj)
343 method = get_real_method(obj, self.print_method)
344 if method is not None:
--> 345 return method()
346 return None
347 else:
/usr/local/Cellar/jupyterlab/2.1.2/libexec/lib/python3.8/site-packages/version_information/version_information.py in _repr_html_(self)
126 html += "<tr><th>Software</th><th>Version</th></tr>"
127 for name, version in self.packages:
--> 128 _version = cgi.escape(version)
129 html += "<tr><td>%s</td><td>%s</td></tr>" % (name, _version)
130
AttributeError: module 'cgi' has no attribute 'escape'
Regards,
Bill Capehart
SD Mines
The text was updated successfully, but these errors were encountered:
cgi.escape is deprecated since Python version 3.2: This function is unsafe because quote is false by default, and therefore deprecated. html.escape() should be use instead.
Hello Robert:
I have run into a problem with your version_information resource when moving to Python 3.8 under JupyterLab 2.1.2 (it's not giving the error when working in a simple IPython terminal window).
The error seems to be related to cgi.escape no longer being used in Python 3.8
Supervisor/supervisor#1257
Example of error is here:
Regards,
Bill Capehart
SD Mines
The text was updated successfully, but these errors were encountered: